GtkHandleBox

GtkHandleBox

Widget for detachable window portions.

Object Hierarchy

GtkObject
`-- GtkWidget
       `-- GtkContainer
              `-- GtkBin
                     `-- GtkHandleBox

Direct subclasses

None.

Description

GtkHandleBox allows for widgets to be "torn out" of a window and to become their own floating window. The GtkHandleBox displays its child along with a handle that the user can drag to tear the widget out of its containing window and into its own float window. When the widget is torn out of the original window, its place is held by a thin ghost widget. By draging the float window back to the ghost widget and aligning the snap edge, the float window can be reattached.

GtkHandleBox is a decendant of GtkBin, which means that it may container only one child. If you would like to have more than one widget in the same float window, you must first add those widgets to a container capable of holding more than one child, such as a GtkVBox.

Constructor

-- Create a widget capable of being "torn out" of a window.

Methods

set_shadow_type()
  Set the shadow type that the float window will cast.
set_handle_position()
  Set the edge on which the handle will be shown.
set_snap_edge()
  Set the edge which must be aligned to reattach the float window.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.