Toc Gallery Index Tree Gtk.GC

See Also

Description

This package provides a convenitn function to create a new graphic context. Such contexts are needed in several places in GtkAda, in particular for the drawing routines, and this function provides a convenient way to create them.

Subprograms

  • function Get (Depth : Gint; Colormap : Gdk.Gdk_Colormap; Values : Gdk.GC.Gdk_GC_Values; Values_Mask : Gdk.GC.Gdk_GC_Values_Mask) return Gdk_GC;
    Create a new GC with the matching attributes. If such a graphic context already exists, it is returned, which is much faster than creating a new one. Creating a new context requires a round-trip to the server (X11 for instance), and can be slow. You shouldn't modify the attributes of the returned context, since that might impact other parts of the code that have queried it.
  • procedure Release (Gc : Gdk_GC);
    Decrease the reference counting for the GC. If it reaches 0, then calling Get will create a new one the next time it is called with the same attributes.

Alphabetical Index