![]() |
![]() |
![]() |
eina Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
EinaDock; EinaDockClass; enum EinaDockFlag; EinaDockTab * eina_dock_add_widget (EinaDock *self
,const gchar *id
,GtkWidget *widget
,GtkWidget *label
,EinaDockFlag flags
); gboolean eina_dock_get_expanded (EinaDock *self
); guint eina_dock_get_n_widgets (EinaDock *self
); gchar ** eina_dock_get_page_order (EinaDock *self
); gboolean eina_dock_get_resizable (EinaDock *self
); EinaDock * eina_dock_new (void
); gboolean eina_dock_remove_widget (EinaDock *self
,EinaDockTab *tab
); void eina_dock_set_expanded (EinaDock *self
,gboolean expanded
); void eina_dock_set_page_order (EinaDock *self
,gchar **order
); void eina_dock_set_resizable (EinaDock *self
,gboolean resizable
); gboolean eina_dock_switch_widget (EinaDock *self
,EinaDockTab *tab
);
GObject +----GInitiallyUnowned +----GtkWidget +----GtkContainer +----GtkBox +----EinaDock
typedef struct { GtkBoxClass parent_class; void (*widget_add) (EinaDock *self, const gchar *id); void (*widget_remove) (EinaDock *self, const gchar *id); } EinaDockClass;
typedef enum { EINA_DOCK_FLAG_DEFAULT = 0, EINA_DOCK_FLAG_PRIMARY = 1 } EinaDockFlag;
Define how EinaDockTab are added to EinaDock
Add EinaDockTab whatever fits better | |
Add EinaDockTab as primary if possible |
EinaDockTab * eina_dock_add_widget (EinaDock *self
,const gchar *id
,GtkWidget *widget
,GtkWidget *label
,EinaDockFlag flags
);
self
: The EinaDock object
id
: A string identifying the widget, must be unique
widget
: The GtkWidget to add into the dock
label
: (allow-none): Optional label, if NULL a GtkLabel will be generated.
This widget can be used to represent a shortcut to the item.
flags
: EinaDockFlag to use when adding the widget
Adds a new widget to the dock
Returns : |
A EinaDockTab representing the widget. [transfer none] |
guint eina_dock_get_n_widgets (EinaDock *self
);
Gets the number of widgets in the dock
|
The EinaDock object |
Returns : |
Number of widgets in the dock |
gchar ** eina_dock_get_page_order (EinaDock *self
);
self
: The EinaDock object
Gets the value of the property 'page-order' as a NULL-terminated array of strings representing the order of the widgets based on they IDs
Returns : |
the page-order property value. [element-type utf8][transfer full] |
gboolean eina_dock_get_resizable (EinaDock *self
);
self
: The EinaDock object
Gets the value of the property 'resizable'
Returns : |
the resizable property value |
gboolean eina_dock_remove_widget (EinaDock *self
,EinaDockTab *tab
);
Removes the widget described by tab
from the EinaDock object.
|
The EinaDock object. |
|
A EinaDockTab representing the widget to remove. |
Returns : |
TRUE is operation is completed, FALSE otherwise. |
void eina_dock_set_page_order (EinaDock *self
,gchar **order
);
self
: The EinaDock object
order
: (transfer none): A NULL-terminated array of strings representing the order of
widgets based on they IDs
Sets the value of the property page-order
void eina_dock_set_resizable (EinaDock *self
,gboolean resizable
);
self
: The EinaDock object
resizable
: Value for the resizable property
Sets the value of the property 'resizable'
gboolean eina_dock_switch_widget (EinaDock *self
,EinaDockTab *tab
);
Forces the dock to show the widget represented by tab
.
|
The EinaDock object. |
|
A EinaDockTab object representing the widget. |
Returns : |
TRUE is successful, FALSE otherwise |