Top | ![]() |
![]() |
![]() |
![]() |
DzlDockManager *
dzl_dock_item_get_manager (DzlDockItem *self
);
Gets the dock manager for this dock item.
void dzl_dock_item_set_manager (DzlDockItem *self
,DzlDockManager *manager
);
Sets the dock manager for this DzlDockItem.
void
dzl_dock_item_present (DzlDockItem *self
);
This widget will walk the widget hierarchy to ensure that the dock item is visible to the user.
void dzl_dock_item_present_child (DzlDockItem *self
,DzlDockItem *child
);
gboolean dzl_dock_item_get_child_visible (DzlDockItem *self
,DzlDockItem *child
);
void dzl_dock_item_set_child_visible (DzlDockItem *self
,DzlDockItem *child
,gboolean child_visible
);
DzlDockItem *
dzl_dock_item_get_parent (DzlDockItem *self
);
Gets the parent DzlDockItem, or NULL
.
gchar *
dzl_dock_item_get_title (DzlDockItem *self
);
Gets the title for the DzlDockItem.
Generally, you want to use a DzlDockWidget which has a "title" property you can set. But this can be helpful for integration of various container widgets.
gchar *
dzl_dock_item_get_icon_name (DzlDockItem *self
);
Gets the icon_name for the DzlDockItem.
Generally, you want to use a DzlDockWidget which has a "icon-name" property you can set. But this can be helpful for integration of various container widgets.
gboolean
dzl_dock_item_get_can_close (DzlDockItem *self
);
If this dock item can be closed by the user, this virtual function should be
implemented by the panel and return TRUE
.
gboolean
dzl_dock_item_get_can_minimize (DzlDockItem *self
);
[virtual can_minimize]
gboolean
dzl_dock_item_close (DzlDockItem *self
);
This function will request that the dock item close itself.
gboolean dzl_dock_item_minimize (DzlDockItem *self
,DzlDockItem *child
,GtkPositionType *position
);
This requests that self
minimize child
if it knows how.
If not, it should suggest the gravity for child
if it knows how to
determine that. For example, a DzlDockBin might know if the widget was part
of the right panel and therefore may set position
to GTK_POS_RIGHT
.
self |
||
child |
A DzlDockItem that is a child of |
|
position |
A location for a GtkPositionType. |
[inout] |
void dzl_dock_item_release (DzlDockItem *self
,DzlDockItem *child
);
This virtual method should remove child
from self
if the
dock item knows how to do so. For example, the DzlDockStack
will remove child
from it's internal GtkStack.
After the virtual function has been executed, child tracking will be removed so that DzlDockItem implementations do not need to implement themselves.
void
dzl_dock_item_emit_presented (DzlDockItem *self
);
Emits the “presented” signal.
Containers should emit this when their descendant has been presented as the current visible child. This allows dock items to do lazy initialization of content once the widgetry is visible to the user.
Currently, this is best effort, as there are a number of situations that make covering all cases problematic.
Since: 3.30
typedef struct { GTypeInterface parent; void (*set_manager) (DzlDockItem *self, DzlDockManager *manager); DzlDockManager *(*get_manager) (DzlDockItem *self); void (*manager_set) (DzlDockItem *self, DzlDockManager *old_manager); void (*present_child) (DzlDockItem *self, DzlDockItem *child); void (*update_visibility) (DzlDockItem *self); gboolean (*get_child_visible) (DzlDockItem *self, DzlDockItem *child); void (*set_child_visible) (DzlDockItem *self, DzlDockItem *child, gboolean child_visible); gchar *(*get_title) (DzlDockItem *self); gchar *(*get_icon_name) (DzlDockItem *self); gboolean (*get_can_close) (DzlDockItem *self); gboolean (*can_minimize) (DzlDockItem *self, DzlDockItem *descendant); gboolean (*close) (DzlDockItem *self); gboolean (*minimize) (DzlDockItem *self, DzlDockItem *child, GtkPositionType *position); void (*release) (DzlDockItem *self, DzlDockItem *child); void (*presented) (DzlDockItem *self); } DzlDockItemInterface;