PlumaApp

## PlumaApp PlumaApp |

## Synopsis

                        PlumaAppPrivate;
    struct              PlumaApp;
    enum                PlumaLockdownMask;
    PlumaApp *          pluma_app_get_default               (void);
    PlumaWindow *       pluma_app_create_window             (PlumaApp *app,
                                                             GdkScreen *screen);
    const GList *       pluma_app_get_windows               (PlumaApp *app);
    PlumaWindow *       pluma_app_get_active_window         (PlumaApp *app);
    GList *             pluma_app_get_documents             (PlumaApp *app);
    GList *             pluma_app_get_views                 (PlumaApp *app);
    PlumaLockdownMask   pluma_app_get_lockdown              (PlumaApp *app);

## Object Hierarchy

      GObject
       +----PlumaApp

## Properties

      "lockdown"                 PlumaLockdownMask     : Read

## Description

## Details

### PlumaAppPrivate

    typedef struct _PlumaAppPrivate PlumaAppPrivate;

### struct PlumaApp

    struct PlumaApp;

### enum PlumaLockdownMask

    typedef enum {
    	PLUMA_LOCKDOWN_COMMAND_LINE = 1 << 0,
    	PLUMA_LOCKDOWN_PRINTING		= 1 << 1,
    	PLUMA_LOCKDOWN_PRINT_SETUP = 1 << 2,
    	PLUMA_LOCKDOWN_SAVE_TO_DISK = 1 << 3,
    	PLUMA_LOCKDOWN_ALL		= 0xF
    } PlumaLockdownMask;

`PLUMA_LOCKDOWN_COMMAND_LINE` |
`PLUMA_LOCKDOWN_PRINTING` |
`PLUMA_LOCKDOWN_PRINT_SETUP` |
`PLUMA_LOCKDOWN_SAVE_TO_DISK` |
`PLUMA_LOCKDOWN_ALL` |

### pluma_app_get_default ()

    PlumaApp *          pluma_app_get_default               (void);

Returns the PlumaApp object. This object is a singleton and represents the running pluma instance.

Returns : | the PlumaApp pointer

### pluma_app_create_window ()

    PlumaWindow *       pluma_app_create_window             (PlumaApp *app,
                                                             GdkScreen *screen);

Create a new PlumaWindow part of `app`.

`app` : | the PlumaApp
Returns : | the new PlumaWindow

### pluma_app_get_windows ()

    const GList *       pluma_app_get_windows               (PlumaApp *app);

Returns all the windows currently present in PlumaApp.

`app` : | the PlumaApp
Returns : | the list of PlumaWindows objects. The list should not be freed

### pluma_app_get_active_window ()

    PlumaWindow *       pluma_app_get_active_window         (PlumaApp *app);

Retrives the PlumaWindow currently active.

`app` : | the PlumaApp
Returns : | the active PlumaWindow

### pluma_app_get_documents ()

    GList *             pluma_app_get_documents             (PlumaApp *app);

Returns all the documents currently open in PlumaApp.

`app` : | the PlumaApp
Returns : | a newly allocated list of PlumaDocument objects

### pluma_app_get_views ()

    GList *             pluma_app_get_views                 (PlumaApp *app);

Returns all the views currently present in PlumaApp.

`app` : | the PlumaApp
Returns : | a newly allocated list of PlumaView objects

### pluma_app_get_lockdown ()

    PlumaLockdownMask   pluma_app_get_lockdown              (PlumaApp *app);

Gets the lockdown mask (see PlumaLockdownMask) for the application. The lockdown mask determines which functions are locked down using the MATE-wise lockdown GSettings keys.

`app` : | a PlumaApp

## Property Details

### The `"lockdown"` property

      "lockdown"                 PlumaLockdownMask     : Read

The lockdown mask.