## CcPanel

CcPanel — An abstract class for Control Center panels

## Synopsis

                        CcPanel;
                        CcPanelClass;
    const gchar*        cc_panel_get_id                     (CcPanel *panel);
    CcShell*            cc_panel_get_shell                  (CcPanel *panel);
    const gchar*        cc_panel_get_display_name           (CcPanel *panel);
    void                cc_panel_set_display_name           (CcPanel *panel,
                                                             const gchar *display_name);
    gboolean            cc_panel_get_active                 (CcPanel *panel);
    void                cc_panel_set_active                 (CcPanel *panel,
                                                             gboolean is_active);

## Description

CcPanel is an abstract class used to implement panels for the shell. A panel contains a collection of related settings that are displayed within the shell window.

## Details

### CcPanel

    typedef struct {
    } CcPanel;

The contents of this struct are private should not be accessed directly.

### CcPanelClass

    typedef struct {
    } CcPanelClass;

The contents of this struct are private should not be accessed directly.

### cc_panel_get_id ()

    const gchar*        cc_panel_get_id                     (CcPanel *panel);

Get the value of the "id" property

`panel` : | A CcPanel
Returns : | value of the id property, owned by the panel

### cc_panel_get_shell ()

    CcShell*            cc_panel_get_shell                  (CcPanel *panel);

Get the shell that the panel resides in

`panel` : | A CcPanel
Returns : | a CcShell

### cc_panel_get_display_name ()

    const gchar*        cc_panel_get_display_name           (CcPanel *panel);

Get the value of the "display-name" property.

`panel` : | A CcPanel
Returns : | the display name, owned by the panel

### cc_panel_set_display_name ()

    void                cc_panel_set_display_name           (CcPanel *panel,
                                                             const gchar *display_name);

Set the value of the "display-name" property.

`panel` : | A CcPanel
`display_name` : | Display name of the panel

### cc_panel_get_active ()

    gboolean            cc_panel_get_active                 (CcPanel *panel);

Get the current value of the "active" property

`panel` : | A CcPanel
Returns : | TRUE if the panel is marked as active

### cc_panel_set_active ()

    void                cc_panel_set_active                 (CcPanel *panel,
                                                             gboolean is_active);

Mark the panel as active. This should only be called by CcShell implementations.

`panel` : | A CcPanel
`is_active` : | TRUE if the panel is now active