| Gnome User Interface Library Reference Manual | |||
|---|---|---|---|
| <<< Previous Page | Home | Up | Next Page >>> | 
GnomeDockItem is a container widget that can be used to make widgets dockable. "Making a widget dockable" means that the widget gets a handle through which users can drag it around the dock widget or detach it so that it gets displayed into its own window (thus becoming a "floating" item).
| typedef enum
{
  GNOME_DOCK_ITEM_BEH_NORMAL = 0,
  GNOME_DOCK_ITEM_BEH_EXCLUSIVE = 1 << 0,
  GNOME_DOCK_ITEM_BEH_NEVER_FLOATING = 1 << 1,
  GNOME_DOCK_ITEM_BEH_NEVER_VERTICAL = 1 << 2,
  GNOME_DOCK_ITEM_BEH_NEVER_HORIZONTAL = 1 << 3,
  GNOME_DOCK_ITEM_BEH_LOCKED = 1 << 4
} GnomeDockItemBehavior; | 
This enumeration can be used to customize the behavior of a dock item. Every value represents a property bit, so that the properties can be combined together by using the OR (`|') operator.
The special value GNOME_DOCK_ITEM_BEH_NORMAL specifies the ``normal'' (default) behavior, and means to have all the properties disabled (and thus the corresponding bits set to zero).
GNOME_DOCK_ITEM_BEH_EXCLUSIVE specifies that the dock item is always the only one in its band.
GNOME_DOCK_ITEM_BEH_NEVER_FLOATING specifies that users cannot detach the dock item from the dock.
GNOME_DOCK_ITEM_BEH_NEVER_VERTICAL specifies that the dock item must be kept horizontal, and users cannot move it to a vertical band.
GNOME_DOCK_ITEM_BEH_NEVER_HORIZONTAL specifies that the dock item must be kept horizontal, and users cannot move it to a vertical band.
GNOME_DOCK_ITEM_BEH_LOCKED specifies that users cannot drag the item around.
| 
 | 
Create a new GnomeDockItem named name, with the specified behavior.
| 
 | 
Retrieve the child of item.
| char* gnome_dock_item_get_name (GnomeDockItem *dock_item); | 
Retrieve the name of item.
| void gnome_dock_item_set_shadow_type (GnomeDockItem *dock_item, | 
Set the shadow type for dock_item.
| 
 | 
Retrieve the shadow type of dock_item.
| 
 | 
Set the orientation for dock_item.
| 
 | 
Retrieve the orientation of dock_item.
| GnomeDockItemBehavior gnome_dock_item_get_behavior (GnomeDockItem *dock_item); | 
Retrieve the behavior of dock_item.
| void gnome_dock_item_attach (GnomeDockItem *item, | 
| void gnome_dock_item_drag_floating (GnomeDockItem *item, | 
| void        gnome_dock_item_handle_size_request
                                            (GnomeDockItem *item,
                                              | 
| void        gnome_dock_item_get_floating_position
                                            (GnomeDockItem *item,
                                              |