~ubuntu-branches/ubuntu/trusty/brightside/trusty

« back to all changes in this revision

Viewing changes to src/brightside-fb-level.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-03-14 12:55:57 UTC
  • Revision ID: james.westby@ubuntu.com-20050314125557-s7vle73vmcspbi8x
Tags: upstream-1.3.2
ImportĀ upstreamĀ versionĀ 1.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* brightside-fb-level.h
 
2
 
 
3
   Copyright (C) 2002, 2003 Bastien Nocera
 
4
 
 
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.
 
9
 
 
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.
 
14
 
 
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.
 
19
 
 
20
   Author: Bastien Nocera <hadess@hadess.net>
 
21
 */
 
22
 
 
23
#include <glib.h>
 
24
#include <glib-object.h>
 
25
 
 
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))
 
31
 
 
32
typedef struct BrightsideFblevelPrivate BrightsideFblevelPrivate;
 
33
typedef struct BrightsideFblevel BrightsideFblevel;
 
34
typedef struct BrightsideFblevelClass BrightsideFblevelClass;
 
35
 
 
36
struct BrightsideFblevel {
 
37
        GObject parent;
 
38
        int level;
 
39
        gboolean dim;
 
40
        BrightsideFblevelPrivate *_priv;
 
41
};
 
42
 
 
43
struct BrightsideFblevelClass {
 
44
        GObjectClass parent;
 
45
};
 
46
 
 
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,
 
52
                                                 gboolean val);
 
53
BrightsideFblevel *brightside_fblevel_new                       (void);
 
54
gboolean brightside_fblevel_is_powerbook                (void);
 
55