[Contents]   [Back]   [Prev]   [Up]   [Next]   [Forward]  


Package Gtk.Util

This package provides useful routines in conjunction with the run time loading of XML files. see section Package Gtk.Glade.

Types

type Callback is access procedure




type Private_Object is private;

Internal representation of a widget as given by the low level signal manager. Use Set_Object (see below) to "convert" this object to an appropriate widget.


Subprograms

procedure Set_Object           
  (Name               :        String_Ptr;
   Object             :        Gtk.Object.Gtk_Object);

Associate Object with the specified Name.
It is up to the caller to choose unique names.


function Get_Object            
  (Name               :        String_Ptr)
   return Gtk.Object.Gtk_Object;

Return an object associated (via a call to Set_Object) with Name.


procedure Set_Object           
  (Widget             : access Gtk.Widget.Gtk_Widget_Record;
   Object             : in     Private_Object);

Set the "internal" contents of a given widget.
This function is similar to Gdk.Set_Object, but specific to callback functions. Note that the caller must ensure that Widget has the right type when calling this procedure.


procedure Set_Signal           
  (Name               : in     String;
   Func               : in     Callback;
   Func_Data          : in     System.Address);

Associate a signal with the specified Name.
It is up to the caller to choose unique names. Signal is the address of a callback. Note that no check is performed on Signal.


procedure Get_Signal           
  (Name               : in     String;
   Func               : out    Callback;
   Func_Data          : out    System.Address);

Return Signal and Data associated (via a call to Set_Signal) with Name.



[Contents]   [Back]   [Prev]   [Up]   [Next]   [Forward]