![]() |
![]() |
![]() |
eina Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
EinaWindow; EinaWindowClass; GtkActionGroup * eina_window_get_action_group (EinaWindow *self
); gboolean eina_window_get_persistant (EinaWindow *self
); GtkUIManager * eina_window_get_ui_manager (EinaWindow *self
); EinaWindow * eina_window_new (void
); void eina_window_set_persistant (EinaWindow *self
,gboolean persistant
);
GObject +----GInitiallyUnowned +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----EinaWindow
EinaWindow is the widget used for the main Eina's window. It's a regular GtkWindow plus a GtkUIManager and the associated GtkActionGroup. Aditionaly EinaWindow can be persistant, this is the ability to automatically do hide-on-delete.
If you want to add menus to main window use eina_window_get_ui_manager()
and
eina_window_get_action_group()
. For persistance features see
"persistant" property
See also: GtkWindow
typedef struct { GtkWindowClass parent_class; gboolean (*action_activate) (EinaWindow *self, GtkAction *action); } EinaWindowClass;
GtkActionGroup * eina_window_get_action_group (EinaWindow *self
);
Gets the GtkActionGroup for the main window
|
the EinaWindow |
Returns : |
GtkActionGroup for default window of EinaWindow. [transfer none] |
gboolean eina_window_get_persistant (EinaWindow *self
);
Gets the ::persistant property
|
An EinaWindow |
Returns : |
Value for the ::persistant property |
GtkUIManager * eina_window_get_ui_manager (EinaWindow *self
);
Gets the GtkUIManager for the main window
|
the EinaWindow |
Returns : |
A GtkUIManager. [transfer none] |
EinaWindow * eina_window_new (void
);
Creates a new EinaWindow
Returns : |
The EinaWindow. [transfer full] |
void eina_window_set_persistant (EinaWindow *self
,gboolean persistant
);
Sets the "persistant" property
|
An EinaWindow |
|
Value for the 'persistant' property |
"persistant"
property"persistant" gboolean : Read / Write
Tell window if must be hide on delete-event or just hide
Default value: FALSE
"action-activate"
signalgboolean user_function (EinaWindow *window,
GObject *action,
gpointer user_data) : Run Last
Emitted if some action is activated
|
The EinaWindow |
|
GtkAction that has been activated |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if action was handed by callback and stop processing,
FALSE if default handler need to be called. |