1
/* brightside-fb-level.h
3
Copyright (C) 2002, 2003 Bastien Nocera
5
The Gnome Library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public License as
7
published by the Free Software Foundation; either version 2 of the
8
License, or (at your option) any later version.
10
The Gnome Library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
15
You should have received a copy of the GNU Library General Public
16
License along with the Gnome Library; see the file COPYING.LIB. If not,
17
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
Boston, MA 02111-1307, USA.
20
Author: Bastien Nocera <hadess@hadess.net>
24
#include <glib-object.h>
26
#define BRIGHTSIDE_TYPE_FBLEVEL (brightside_fblevel_get_type ())
27
#define BRIGHTSIDE_FBLEVEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BRIGHTSIDE_TYPE_FBLEVEL, BrightsideFblevel))
28
#define BRIGHTSIDE_FBLEVEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BRIGHTSIDE_TYPE_FBLEVEL, BrightsideFblevelClass))
29
#define BRIGHTSIDE_IS_FBLEVEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BRIGHTSIDE_TYPE_FBLEVEL))
30
#define BRIGHTSIDE_FBLEVEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BRIGHTSIDE_TYPE_FBLEVEL, BrightsideFblevelClass))
32
typedef struct BrightsideFblevelPrivate BrightsideFblevelPrivate;
33
typedef struct BrightsideFblevel BrightsideFblevel;
34
typedef struct BrightsideFblevelClass BrightsideFblevelClass;
36
struct BrightsideFblevel {
40
BrightsideFblevelPrivate *_priv;
43
struct BrightsideFblevelClass {
47
GType brightside_fblevel_get_type (void);
48
int brightside_fblevel_get_level (BrightsideFblevel *self);
49
void brightside_fblevel_set_level (BrightsideFblevel *self, int val);
50
gboolean brightside_fblevel_get_dim (BrightsideFblevel *self);
51
void brightside_fblevel_set_dim (BrightsideFblevel *self,
53
BrightsideFblevel *brightside_fblevel_new (void);
54
gboolean brightside_fblevel_is_powerbook (void);