Synopsis
#include <gtk/gtk.h>
GtkPlug;
void gtk_plug_construct (GtkPlug *plug,
GdkNativeWindow socket_id);
void gtk_plug_construct_for_display (GtkPlug *plug,
GdkDisplay *display,
GdkNativeWindow socket_id);
GtkWidget* gtk_plug_new (GdkNativeWindow socket_id);
GtkWidget* gtk_plug_new_for_display (GdkDisplay *display,
GdkNativeWindow socket_id);
GdkNativeWindow gtk_plug_get_id (GtkPlug *plug);
gboolean gtk_plug_get_embedded (GtkPlug *plug);
GdkWindow* gtk_plug_get_socket_window (GtkPlug *plug);
Object Hierarchy
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkWindow
+----GtkPlug
DescriptionTogether with GtkSocket, GtkPlug 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 GtkSocket widget and, passes the ID of that widgets window to the other process, which then creates a GtkPlug with that window ID. Any widgets contained in the GtkPlug then will appear inside the first applications window. Detailsgtk_plug_construct ()void gtk_plug_construct (GtkPlug *plug, GdkNativeWindow socket_id);
Finish the initialization of
gtk_plug_construct_for_display ()void gtk_plug_construct_for_display (GtkPlug *plug, GdkDisplay *display, GdkNativeWindow socket_id);
Finish the initialization of
Since 2.2 gtk_plug_new ()GtkWidget* gtk_plug_new (GdkNativeWindow socket_id);
Creates a new plug widget inside the GtkSocket identified
by
gtk_plug_new_for_display ()GtkWidget* gtk_plug_new_for_display (GdkDisplay *display, GdkNativeWindow socket_id); Create a new plug widget inside the GtkSocket identified by socket_id.
Since 2.2 gtk_plug_get_id ()GdkNativeWindow gtk_plug_get_id (GtkPlug *plug);
Gets the window ID of a GtkPlug widget, which can then
be used to embed this window inside another window, for
instance with
gtk_plug_get_embedded ()gboolean gtk_plug_get_embedded (GtkPlug *plug); Determines whether the plug is embedded in a socket.
Since 2.14 Property DetailsThe
| ||||||||||||||||||||||||||||||||||||||||||
|
the object on which the signal was emitted |
|
user data set when the signal handler was connected. |