|
The GnomeDockLayout widget is meant to make it simple for programmers to handle the layout of a GnomeDock widget.
GnomeDockLayout can contain an arbitrary number of GnomeDockItem widgets, each of them with its own placement information. It is possible to "extract" a layout from an existing GnomeDock widget, as well as adding the items present in a GnomeDockLayout to it. Moreover, GnomeDockLayout is able to create a layout configuration string that can be later used to re-construct the layout on a brand new GnomeDockLayout widget.
As a consequence, GnomeDockLayout is very useful to save and retrieve GnomeDock configurations into files. For example, GnomeApp uses GnomeDockLayout to create a default layout configuration, override it with the user-specific configuration file, and finally apply it to it GnomeDock.
struct GnomeDockLayoutItem { GnomeDockItem *item; GnomeDockPlacement placement; union { struct { gint x; gint y; GtkOrientation orientation; } floating; struct { gint band_num; gint band_position; gint offset; } docked; } position; }; |
GnomeDockLayout* gnome_dock_layout_new (void); |
Create a new GnomeDockLayout widget.
|
Add item to layout with the specified parameters.
|
Add item to layout as a floating item with the specified (x, y) position and orientation.
GnomeDockLayoutItem* gnome_dock_layout_get_item (GnomeDockLayout *layout, GnomeDockItem *item); |
Retrieve a layout item.
GnomeDockLayoutItem* gnome_dock_layout_get_item_by_name (GnomeDockLayout *layout, const |
Retrieve the dock item named name.
|
Remove the specified item from layout.
|
Remove the item named name from layout.
|
Generate a string describing the layout in layout.
|
Parse the layout string string, and move around the items in layout accordingly.
|
Add all the items in layout to the specified dock.