Next: , Previous: Package_Gtk.Paned, Up: Top



Package Gtk.Plug

Note that this package is currently not supported under Win32 systems.

Together with Gtk_Socket, Gtk_Plug provides the ability to embed widgets from one process into another process in a fashion that is transparent to the user. One process creates a Gtk_Socket widget and, passes the XID of that widgets window to the other process, which then creates a Gtk_Plug window with that XID. Any widgets contained in the Gtk_Plug then will appear inside the first applications window.

Widget Hierarchy
     GObject                       (see Package_Glib.Object)
     Gtk_Object                    (see Package_Gtk.Object)
        \___ Gtk_Widget            (see Package_Gtk.Widget)
           \___ Gtk_Container      (see Package_Gtk.Container)
              \___ Gtk_Bin         (see Package_Gtk.Bin)
                 \___ Gtk_Window   (see Package_Gtk.Window)
                    \___ Gtk_Plug  (see Package_Gtk.Plug)
     

Subprograms
procedure Gtk_New (Plug : out Gtk_Plug; Socket_Id : Guint32);
Create a new plug widget inside the Gtk_Socket identified by socket_id.
Socket_Id is the XID of the socket's window.

function Get_Id (Plug : access Gtk_Plug_Record) return Guint32;
Return the low level window id associated with Plug.

function Get_Type return Gtk.Gtk_Type;
Return the internal value associated with a Gtk_Plug.