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 __BRIGHTNESS_PROXY_H
22
#define __BRIGHTNESS_PROXY_H
24
#include <glib-object.h>
28
#define BRIGHTNESS_TYPE_PROXY (brightness_proxy_get_type () )
29
#define BRIGHTNESS_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), BRIGHTNESS_TYPE_PROXY, BrightnessProxy))
30
#define BRIGHTNESS_IS_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), BRIGHTNESS_TYPE_PROXY))
32
typedef struct BrightnessProxyPrivate BrightnessProxyPrivate;
37
BrightnessProxyPrivate *priv;
43
GObjectClass parent_class;
44
} BrightnessProxyClass;
46
GType brightness_proxy_get_type (void) G_GNUC_CONST;
47
BrightnessProxy *brightness_proxy_new (void);
49
gboolean brightness_proxy_set_level (BrightnessProxy *brightness,
52
guint brightness_proxy_get_level (BrightnessProxy *brightness);
54
guint brightness_proxy_get_max_level (BrightnessProxy *brightness) G_GNUC_PURE;
56
gboolean brightness_proxy_has_hw (BrightnessProxy *brightness) G_GNUC_PURE;
58
void brightness_proxy_reload (BrightnessProxy *brightness);
62
#endif /* __BRIGHTNESS_PROXY_H */