## GcmBrightness

GcmBrightness — Object to allow setting the brightness using gnome-power-manager

## Synopsis

    struct              GcmBrightness;
    struct              GcmBrightnessClass;
    GcmBrightness *     gcm_brightness_new                  (void);
    gboolean            gcm_brightness_set_percentage       (GcmBrightness *brightness,
                                                             guint percentage,
                                                             GError **error);
    gboolean            gcm_brightness_get_percentage       (GcmBrightness *brightness,
                                                             guint *percentage,
                                                             GError **error);
                        GcmBrightnessPrivate;

## Object Hierarchy

      GObject
       +----GcmBrightness

## Properties

      "percentage"               guint                 : Read

## Description

This object sets the laptop panel brightness using gnome-power-manager.

## Details

### struct GcmBrightness

    struct GcmBrightness;

### struct GcmBrightnessClass

    struct GcmBrightnessClass {
    	GObjectClass parent_class;
    	/* padding for future expansion */
    	void (*_gcm_reserved1) (void);
    	void (*_gcm_reserved2) (void);
    	void (*_gcm_reserved3) (void);
    	void (*_gcm_reserved4) (void);
    	void (*_gcm_reserved5) (void);
    };

### gcm_brightness_new ()

    GcmBrightness *     gcm_brightness_new                  (void);

Returns : | a new GcmBrightness object.

Since 2.91.1

### gcm_brightness_set_percentage ()

    gboolean            gcm_brightness_set_percentage       (GcmBrightness *brightness,
                                                             guint percentage,
                                                             GError **error);

Since 2.91.1

### gcm_brightness_get_percentage ()

    gboolean            gcm_brightness_get_percentage       (GcmBrightness *brightness,
                                                             guint *percentage,
                                                             GError **error);

Since 2.91.1

### GcmBrightnessPrivate

    typedef struct _GcmBrightnessPrivate GcmBrightnessPrivate;

Private GcmBrightness data

## Property Details

### The `"percentage"` property

      "percentage"               guint                 : Read

Allowed values: <= 100

Default value: 0