Top | ![]() |
![]() |
![]() |
![]() |
MxApplication * | mx_application_new () |
void | mx_application_run () |
void | mx_application_quit () |
MxWindow * | mx_application_create_window () |
MxApplicationFlags | mx_application_get_flags () |
void | mx_application_add_window () |
void | mx_application_remove_window () |
const GList * | mx_application_get_windows () |
void | mx_application_add_action () |
void | mx_application_remove_action () |
GList * | mx_application_get_actions () |
void | mx_application_invoke_action () |
gboolean | mx_application_is_running () |
gchar * | application-name | Read / Write / Construct Only |
guint | flags | Read / Write / Construct Only |
MxApplication * mx_application_new (gint *argc
,gchar ***argv
,const gchar *name
,MxApplicationFlags flags
);
Intialises everything needed to operate Clutter and use MxApplication.
See clutter_init()
.
void
mx_application_run (MxApplication *application
);
Run the main loop of the application and start processing events. This function will not return until the application is quit. If the application is single instance and an existing instance is already running, this will cause the existing instance to be raised and the function will complete immediately.
void
mx_application_quit (MxApplication *application
);
Stop the application from running and quit the main loop. This will cause
the call to mx_application_run()
to complete.
MxWindow *
mx_application_create_window (MxApplication *application
);
Creates a window and associates it with the application.
MxApplicationFlags
mx_application_get_flags (MxApplication *application
);
Get the application flags that where set on application
when created.
void mx_application_add_window (MxApplication *application
,MxWindow *window
);
Adds a window to the list of windows associated with application
. If this
is the first window, it will be treated as the primary window and used for
startup notification.
This function does not take a reference on window
.
application |
The MxApplication |
|
window |
The MxWindow to add to the application. |
[transfer full] |
void mx_application_remove_window (MxApplication *application
,MxWindow *window
);
Remove the specified window from the application. This will cause the window to be unreferenced and destroyed unless another reference is held on it.
const GList *
mx_application_get_windows (MxApplication *application
);
Retrieves all windows added to application
.
a list
of MxWindows. The returned list is owned by
application
and must not be altered.
[element-type MxWindow][transfer none]
void mx_application_add_action (MxApplication *application
,MxAction *action
);
Add an action to the application.
void mx_application_remove_action (MxApplication *application
,const gchar *name
);
Remove the action with the specified name from the application.
GList *
mx_application_get_actions (MxApplication *application
);
Retrieves all actions registered on application
.
a list
of MxActions. Use g_list_free()
on the returned list
when done.
[element-type Mx.Action][transfer container]
void mx_application_invoke_action (MxApplication *application
,const gchar *name
);
Run the named action for the application.
gboolean
mx_application_is_running (MxApplication *application
);
Query whether MxApplication is running. This will also return TRUE if the given MxApplication is single instance and there is an instance already running.
struct MxApplication;
The contents of this structure are private and should only be accessed through the public API.
struct MxApplicationClass { GObjectClass parent_class; /* vfuncs */ MxWindow* (*create_window) (MxApplication *application); void (*raise) (MxApplication *application); /* signals */ void (*actions_changed) (MxApplication *app); /* padding for future expansion */ void (*_padding_0) (void); void (*_padding_1) (void); void (*_padding_2) (void); void (*_padding_3) (void); void (*_padding_4) (void); };
“application-name”
property“application-name” gchar *
Name of the application.
Owner: MxApplication
Flags: Read / Write / Construct Only
Default value: ""
“flags”
property“flags” guint
Application Flags.
Owner: MxApplication
Flags: Read / Write / Construct Only
Allowed values: <= G_MAXINT
Default value: 0
“actions-changed”
signalvoid user_function (MxApplication *mxapplication, gpointer user_data)
Emitted when an action has been added or removed from the MxApplication.
Flags: Run Last