The HandleBox widget allows a portion of the window to be "torn-off".
It is a bin widget which displays its children and a handle that the
user can drag to tear off a separate window containing the child widget.
A thin ghost is drawn in the original location of the handlebox.
By dragging the separate window back to its original location it can
be reattached.
fireHandleBoxEvent
protected void fireHandleBoxEvent(HandleBoxEvent event)
getEventListenerClass
public Class getEventListenerClass(String signal)
- getEventListenerClass in interface Container
getEventType
public EventType getEventType(String signal)
- getEventType in interface Container
getHandlePosition
public PositionType getHandlePosition()
Retrieves the handle position.
getShadowType
public ShadowType getShadowType()
Retrieves the shadow type used by this widget.
getShapEdge
public PositionType getShapEdge()
Retrieves the snap edge of the widget.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface Bin
gtk_handle_box_get_handle_position
protected static final int gtk_handle_box_get_handle_position(Handle handle_box)
gtk_handle_box_get_shadow_type
protected static final int gtk_handle_box_get_shadow_type(Handle handle_box)
gtk_handle_box_get_snap_edge
protected static final int gtk_handle_box_get_snap_edge(Handle handle_box)
gtk_handle_box_get_type
protected static final int gtk_handle_box_get_type()
gtk_handle_box_new
protected static final Handle gtk_handle_box_new()
gtk_handle_box_set_handle_position
protected static final void gtk_handle_box_set_handle_position(Handle handle_box,
int position)
gtk_handle_box_set_shadow_type
protected static final void gtk_handle_box_set_shadow_type(Handle handle_box,
int type)
gtk_handle_box_set_snap_edge
protected static final void gtk_handle_box_set_snap_edge(Handle handle_box,
int edge)
setHandlePosition
public void setHandlePosition(PositionType position)
Sets the side of the handle box where the handle is drawn.
position
- Defines the position of the handle.
setShadowType
public void setShadowType(ShadowType type)
Set the shadow type to be drawn around the border of the
handle box.
type
- The ShadowType to use for the shadow.
setShapEdge
public void setShapEdge(PositionType edge)
Sets the snap edge of the handle box. The snap edge is the edge
of the detached child that must be aligned with the corresponding
edge of the ghost left behind when the child was detached to
reattach the torn-off window.
edge
- The side for the snap edge.