2
* * Copyright (C) 2009 Ali <aliov@xfce.org>
4
* Licensed under the GNU General Public License Version 2
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
#ifndef __XFPM_BRIGHTNESS_H
22
#define __XFPM_BRIGHTNESS_H
24
#include <glib-object.h>
28
#define XFPM_TYPE_BRIGHTNESS (xfpm_brightness_get_type () )
29
#define XFPM_BRIGHTNESS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XFPM_TYPE_BRIGHTNESS, XfpmBrightness))
30
#define XFPM_IS_BRIGHTNESS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), XFPM_TYPE_BRIGHTNESS))
34
XFPM_BRIGHTNESS_CONTROL_UNKNOWN,
35
XFPM_BRIGHTNESS_CONTROL_XRANDR,
36
XFPM_BRIGHTNESS_CONTROL_HAL
38
} XfpmBrightnessControl;
40
typedef struct XfpmBrightnessPrivate XfpmBrightnessPrivate;
45
XfpmBrightnessPrivate *priv;
51
GObjectClass parent_class;
53
} XfpmBrightnessClass;
55
GType xfpm_brightness_get_type (void) G_GNUC_CONST;
57
XfpmBrightness *xfpm_brightness_new (void);
59
gboolean xfpm_brightness_setup (XfpmBrightness *brightness);
61
gboolean xfpm_brightness_up (XfpmBrightness *brightness,
64
gboolean xfpm_brightness_down (XfpmBrightness *brightness,
67
gboolean xfpm_brightness_has_hw (XfpmBrightness *brightness);
69
gint xfpm_brightness_get_max_level (XfpmBrightness *brightness);
71
gboolean xfpm_brightness_get_level (XfpmBrightness *brightness,
74
gboolean xfpm_brightness_set_level (XfpmBrightness *brightness,
77
gboolean xfpm_brightness_dim_down (XfpmBrightness *brightness);
79
XfpmBrightnessControl xfpm_brightness_get_control (XfpmBrightness *brightness);
81
gboolean xfpm_brightness_in_hw (XfpmBrightness *brightness);
85
#endif /* __XFPM_BRIGHTNESS_H */