MxApplication

MxApplication

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GApplication
        ╰── MxApplication

Implemented Interfaces

MxApplication implements GActionGroup and GActionMap.

Description

Functions

mx_application_new ()

MxApplication *
mx_application_new (const gchar *application_id,
                    GApplicationFlags flags);

Intialises everything needed to operate Clutter and use MxApplication. See clutter_init().

Parameters

argc

The number of arguments in argv.

[inout]

argv

A pointer to an array of arguments.

[array length=argc][inout][allow-none]

name

Unique application name.

 

flags

Application flags.

 

Returns

the MxApplication singleton.


mx_application_create_window ()

MxWindow *
mx_application_create_window (MxApplication *application,
                              const gchar *window_title);

Creates a new MxWindow and adds it to MxApplication. The application must be registered before this function is run.

Parameters

application

An MxApplication

 

window_title

Title for the new window

 

Returns

The newly created MxWindow


mx_application_add_window ()

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 .

Parameters

application

The MxApplication

 

window

The MxWindow to add to the application.

[transfer full]

mx_application_remove_window ()

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.

Parameters

application

an MxApplication

 

window

an MxWindow

 

mx_application_get_windows ()

const GList *
mx_application_get_windows (MxApplication *application);

Retrieves all windows added to application .

Parameters

application

an MxApplication

 

Returns

a list of MxWindows. The returned list is owned by application and must not be altered.

[element-type MxWindow][transfer none]

Types and Values

struct MxApplication

struct MxApplication;

The contents of this structure are private and should only be accessed through the public API.


struct MxApplicationClass

struct MxApplicationClass {
  GApplicationClass parent_class;

  /* padding for future expansion */
  void (*_padding_0) (void);
  void (*_padding_1) (void);
  void (*_padding_2) (void);
  void (*_padding_3) (void);
  void (*_padding_4) (void);
};