![]() |
![]() |
![]() |
eina Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
EinaApplication; EinaApplicationClass; gint * eina_application_get_argc (EinaApplication *self
); gchar *** eina_application_get_argv (EinaApplication *self
); gpointer eina_application_get_interface (EinaApplication *self
,const gchar *name
); GSettings * eina_application_get_settings (EinaApplication *self
,const gchar *domain
); EinaWindow * eina_application_get_window (EinaApplication *self
); GtkActionGroup * eina_application_get_window_action_group (EinaApplication *self
); GtkUIManager * eina_application_get_window_ui_manager (EinaApplication *self
); gboolean eina_application_launch_for_uri (EinaApplication *application
,const gchar *uri
,GError **error
); EinaApplication * eina_application_new (const gchar *application_id
); gboolean eina_application_set_interface (EinaApplication *self
,const gchar *name
,gpointer interface
); gpointer eina_application_steal_interface (EinaApplication *self
,const gchar *name
);
EinaApplication is the central point or the hub for Eina. Every component is
accesible from EinaApplication via the eina_application_get_interface()
call. Other functions for access main window interface, launch external
programs or single instance model are provides by this class.
gint * eina_application_get_argc (EinaApplication *self
);
Gets argc for current self
. The returned pointer is owned by
application
|
An EinaApplication |
Returns : |
argc. [transfer none] |
gchar *** eina_application_get_argv (EinaApplication *self
);
Gets argv for current self
. The returned pointer is owned by
application
|
An EinaApplication |
Returns : |
argv. [transfer none] |
gpointer eina_application_get_interface (EinaApplication *self
,const gchar *name
);
GSettings * eina_application_get_settings (EinaApplication *self
,const gchar *domain
);
Gets a GSettings for the domain, if it's not present it gets created.
|
the EinaApplication |
|
string representing a domain |
Returns : |
The GSettings object. [transfer none] |
EinaWindow * eina_application_get_window (EinaApplication *self
);
|
the EinaApplication |
Returns : |
Defaut window for EinaApplication. [transfer none] |
GtkActionGroup * eina_application_get_window_action_group
(EinaApplication *self
);
|
the EinaApplication |
Returns : |
GtkActionGroup for default window of EinaApplication. [transfer none] |
GtkUIManager * eina_application_get_window_ui_manager
(EinaApplication *self
);
|
the EinaApplication |
Returns : |
GtkUIManager for default window of EinaApplication. [transfer none] |
gboolean eina_application_launch_for_uri (EinaApplication *application
,const gchar *uri
,GError **error
);
Launches URI
|
An EinaApplication |
|
URI to open |
|
Location for error |
Returns : |
Successfull or not |
EinaApplication * eina_application_new (const gchar *application_id
);
Creates a new EinaApplication with application_id
as ID
|
ID for the application see gtk_application_new()
|
Returns : |
A new EinaApplication |
gboolean eina_application_set_interface (EinaApplication *self
,const gchar *name
,gpointer interface
);
Inserts an interface in the EinaApplication object.
If interface
is NULL
it is deleted from self
and all references are
cleared
|
An EinaApplication |
|
The inteface's name. Must be unique in self
|
|
Pointer to the interface. [transfer none][allow-none] |
Returns : |
TRUE if successfull, FALSE otherwise |
gpointer eina_application_steal_interface (EinaApplication *self
,const gchar *name
);
Gets and delete the interface from the EinaApplication. Its a combination of eina_application_get_interface(self, name) and eina_application_set_interface(self, name, NULL)
|
An EinaApplication |
|
The interface's name |
Returns : |
The pointer to the interface. [transfer full] |