~ubuntu-branches/ubuntu/precise/nvidia-settings/precise-proposed

« back to all changes in this revision

Viewing changes to nvidia-settings-1.0/src/gtk+-2.x/ctkevent.h

  • Committer: Bazaar Package Importer
  • Author(s): Randall Donald
  • Date: 2004-07-03 19:09:17 UTC
  • Revision ID: james.westby@ubuntu.com-20040703190917-rqkze2s58ux5pamy
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * nvidia-settings: A tool for configuring the NVIDIA X driver on Unix
 
3
 * and Linux systems.
 
4
 *
 
5
 * Copyright (C) 2004 NVIDIA Corporation.
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or
 
8
 * modify it under the terms of Version 2 of the GNU General Public
 
9
 * License as published by the Free Software Foundation.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful, but
 
12
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See Version 2
 
14
 * of the GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the:
 
18
 *
 
19
 *           Free Software Foundation, Inc.
 
20
 *           59 Temple Place - Suite 330
 
21
 *           Boston, MA 02111-1307, USA
 
22
 *
 
23
 */
 
24
 
 
25
#ifndef __CTK_EVENT_H__
 
26
#define __CTK_EVENT_H__
 
27
 
 
28
#include <gtk/gtk.h>
 
29
 
 
30
#include "NvCtrlAttributes.h"
 
31
 
 
32
G_BEGIN_DECLS
 
33
 
 
34
#define CTK_TYPE_EVENT (ctk_event_get_type())
 
35
 
 
36
#define CTK_EVENT(obj) \
 
37
    (G_TYPE_CHECK_INSTANCE_CAST ((obj), CTK_TYPE_EVENT, CtkEvent))
 
38
 
 
39
#define CTK_EVENT_CLASS(klass) \
 
40
    (G_TYPE_CHECK_CLASS_CAST ((klass), CTK_TYPE_EVENT, CtkEventClass))
 
41
 
 
42
#define CTK_IS_EVENT(obj) \
 
43
    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CTK_TYPE_EVENT))
 
44
 
 
45
#define CTK_IS_EVENT_CLASS(class) \
 
46
    (G_TYPE_CHECK_CLASS_TYPE ((klass), CTK_TYPE_EVENT))
 
47
 
 
48
#define CTK_EVENT_GET_CLASS(obj) \
 
49
    (G_TYPE_INSTANCE_GET_CLASS ((obj), CTK_TYPE_EVENT, CtkEventClass))
 
50
 
 
51
 
 
52
typedef struct _CtkEvent       CtkEvent;
 
53
typedef struct _CtkEventClass  CtkEventClass;
 
54
typedef struct _CtkEventStruct CtkEventStruct;
 
55
 
 
56
struct _CtkEvent
 
57
{
 
58
    GtkObject               parent;
 
59
    NvCtrlAttributeHandle  *handle;
 
60
};
 
61
 
 
62
struct _CtkEventClass
 
63
{
 
64
    GtkObjectClass parent_class;
 
65
};
 
66
 
 
67
struct _CtkEventStruct
 
68
{
 
69
    gint attribute;
 
70
    gint value;
 
71
    guint display_mask;
 
72
};
 
73
 
 
74
GType       ctk_event_get_type  (void) G_GNUC_CONST;
 
75
GtkObject*  ctk_event_new       (NvCtrlAttributeHandle*);
 
76
 
 
77
#define CTK_EVENT_NAME(x) ("CTK_EVENT_" #x)
 
78
 
 
79
 
 
80
 
 
81
 
 
82
 
 
83
G_END_DECLS
 
84
 
 
85
#endif /* __CTK_EVENT_H__ */