This package provides some basic Gtk+ functionalities such as getting the version number. This is the top level package of the Gtk widget hierarchy. For general GtkAda initializations, see section Package Gtk.Main.
Types |
---|
type Gtk_Notebook_Page is new Gdk.C_Proxy; | |
A page of the notebook.
It can contain a single child, and is also associated with a tab
label used to select that page in the notebook.
| |
type Gtk_Rc_Style is new Gdk.C_Proxy; | |
Type used to handle resource styles.
See package Gtk.Rc for more details.
| |
type Gtk_Type is new Guint; | |
This type describes an internal type in Gtk+.
You shouldn't have to use it in your own applications, however it might
be useful sometimes.
Every widget type is associated with a specific value, created
dynamically at run time the first time you instantiate a widget of that
type (thus if you have never used a Gtk_File_Selection, it won't have
any Gtk_Type associated with it).
You can get the exact type value for each type by using the functions
Get_Type provided in all the packages in GtkAda.
You can get the specific value for an existing widget by using the
function Gtk.Object.Get_Type.
| |
type Root_Type is tagged private; | |
The base type of the hierarchy in GtkAda. It basically gives access
to an underlying C object. This is not a controlled type, for efficiency
reasons, and because gtk+ takes care of memory management on its own.
|
Subprograms |
---|
function Major_Version return Guint; | ||
Return the major version number for Gtk+. | ||
function Minor_Version return Guint; | ||
Return the minor version number for Gtk+. | ||
function Micro_Version return Guint; | ||
Return the micro version number for Gtk+. | ||
function Gtk_Type_Gdk_Event return Gtk_Type; | ||
Return the type corresponding to a Gdk_Event. | ||
function Type_Name (Type_Num : in Gtk_Type) return String; | ||
Return the type name corresponding to a Gtk_Type. | ||
function Type_From_Name (Name : in String) return Gtk_Type; | ||
Convert a string to the matching type. | ||
function Is_Created (Object : in Root_Type'Class) return Boolean; | ||
Return True if the associated C object has been created, False if no | ||
Interfacing with C | ||
The following functions are made public so that one can easily create | ||
function Get_Object (Object : access Root_Type'Class) return System.Address; | ||
Access the underlying C pointer.
| ||
procedure Set_Object (Object : access Root_Type'Class; Value : in System.Address); | ||
Modify the underlying C pointer.
| ||
procedure Initialize_User_Data (Obj : access Root_Type'Class); | ||
Sets a user data field for the C object associated with Obj. | ||
function Get_User_Data (Obj : in System.Address; Stub : in Root_Type'Class) return Root_Type_Access; | ||
Get the user data that was set by GtkAda. | ||
function Count_Arguments (The_Type : Gtk_Type; Name : in String) return Guint; | ||
Return the number of arguments used in the handlers for the signal. | ||
function Argument_Type (The_Type : Gtk_Type; Name : in String; Num : in Gint) return Gtk_Type; | ||
Return the type of the num-th argument for the handlers of signal name. |