| Top |
| GtkWidget * | gdl_dock_new () |
| GtkWidget * | gdl_dock_new_from () |
| void | gdl_dock_add_item () |
| void | gdl_dock_add_floating_item () |
| void | gdl_dock_hide_preview () |
| void | gdl_dock_show_preview () |
| void | gdl_dock_set_skip_taskbar () |
| GdlDockItem * | gdl_dock_get_item_by_name () |
| GList * | gdl_dock_get_named_items () |
| GdlDockPlaceholder * | gdl_dock_get_placeholder_by_name () |
| GdlDock * | gdl_dock_object_get_toplevel () |
| void | gdl_dock_xor_rect () |
| void | gdl_dock_xor_rect_hide () |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GdlDockObject ╰── GdlDock
A GdlDock is the toplevel widget which in turn hold a tree of GdlDockItem widgets.
Several dock widgets can exchange widgets if they share the same master.
GtkWidget * gdl_dock_new_from (GdlDock *original,gboolean floating);
Create a new dock widget having the same master than original
.
void gdl_dock_add_item (GdlDock *dock,GdlDockItem *item,GdlDockPlacement placement);
Dock in dock
, the widget item
at the position defined by placement
. The
function takes care of finding the right parent widget eventually creating
it if needed.
void gdl_dock_add_floating_item (GdlDock *dock,GdlDockItem *item,gint x,gint y,gint width,gint height);
Dock an item as a floating item. It creates a new window containing a new dock widget sharing the same master where the item is docked.
dock |
A GdlDock widget |
|
item |
A GdlDockItem widget |
|
x |
X coordinate of the floating item |
|
y |
Y coordinate of the floating item |
|
width |
width of the floating item |
|
height |
height of the floating item |
void
gdl_dock_hide_preview (GdlDock *dock);
Hide the preview window used to materialize the dock target.
void gdl_dock_show_preview (GdlDock *dock,GdkRectangle *rect);
Show a preview window used to materialize the dock target.
void gdl_dock_set_skip_taskbar (GdlDock *dock,gboolean skip);
Sets whether or not a floating dock window should be prevented from appearing in the system taskbar.
dock |
The dock whose property should be set. |
|
skip |
|
Since 3.6
GdlDockItem * gdl_dock_get_item_by_name (GdlDock *dock,const gchar *name);
Looks for an GdlDockItem widget bound to the master of the dock item. It does not search only in the children of this particular dock widget.
GList *
gdl_dock_get_named_items (GdlDock *dock);
Returns a list of all item bound to the master of the dock, not only the children of this particular dock widget.
A list of GdlDockItem. The list should be freedwith g_list_free(),
but the item still belong to the master.
[element-type GdlDockObject][transfer container]
GdlDockPlaceholder * gdl_dock_get_placeholder_by_name (GdlDock *dock,const gchar *name);
gdl_dock_get_placeholder_by_name has been deprecated since version 3.6 and should not be used in newly-written code.
This function is always returning NULL.
Looks for an GdlDockPlaceholder object bound to the master of the dock item. It does not search only in the children of this particular dock widget.
GdlDock *
gdl_dock_object_get_toplevel (GdlDockObject *object);
Get the top level GdlDock widget of object
or NULL if cannot be found.
void gdl_dock_xor_rect (GdlDock *dock,GdkRectangle *rect);
gdl_dock_xor_rect has been deprecated since version 3.6 and should not be used in newly-written code.
Use gdl_dock_show_preview instead.
Show a preview window used to materialize the dock target.
void
gdl_dock_xor_rect_hide (GdlDock *dock);
gdl_dock_xor_rect_hide has been deprecated since version 3.6 and should not be used in newly-written code.
Use gdl_dock_hide_preview instead.
Hide the preview window used to materialize the dock target.
“default-title” property“default-title” gchar *
Default title for the newly created floating docks.
Flags: Read / Write
Default value: NULL
“floating” property“floating” gboolean
Whether the dock is floating in its own window.
Flags: Read / Write / Construct Only
Default value: FALSE
“floatx” property“floatx” gint
X coordinate for a floating dock.
Flags: Read / Write / Construct
Default value: 0
“floaty” property“floaty” gint
Y coordinate for a floating dock.
Flags: Read / Write / Construct
Default value: 0
“height” property“height” gint
Height for the dock when it's of floating type.
Flags: Read / Write / Construct
Allowed values: >= -1
Default value: -1
“skip-taskbar” property“skip-taskbar” gboolean
Whether or not to prevent a floating dock window from appearing in the taskbar. Note that this only affects floating windows that are created after this flag is set; existing windows are not affected. Usually, this property is used when you create the dock.
Flags: Read / Write / Construct
Default value: TRUE
Since 3.6
“width” property“width” gint
Width for the dock when it's of floating type.
Flags: Read / Write / Construct
Allowed values: >= -1
Default value: -1