~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/ctkdisplaydevice.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_DISPLAYDEVICE_H__
 
26
#define __CTK_DISPLAYDEVICE_H__
 
27
 
 
28
#include "ctkevent.h"
 
29
#include "ctkconfig.h"
 
30
 
 
31
G_BEGIN_DECLS
 
32
 
 
33
#define CTK_TYPE_DISPLAY_DEVICE (ctk_display_device_get_type())
 
34
 
 
35
#define CTK_DISPLAY_DEVICE(obj) \
 
36
    (G_TYPE_CHECK_INSTANCE_CAST ((obj), CTK_TYPE_DISPLAY_DEVICE, \
 
37
                                 CtkDisplayDevice))
 
38
 
 
39
#define CTK_DISPLAY_DEVICE_CLASS(klass) \
 
40
    (G_TYPE_CHECK_CLASS_CAST ((klass), CTK_TYPE_DISPLAY_DEVICE, \
 
41
                              CtkDisplayDeviceClass))
 
42
 
 
43
#define CTK_IS_DISPLAY_DEVICE(obj) \
 
44
    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CTK_TYPE_DISPLAY_DEVICE))
 
45
 
 
46
#define CTK_IS_DISPLAY_DEVICE_CLASS(class) \
 
47
    (G_TYPE_CHECK_CLASS_TYPE ((klass), CTK_TYPE_DISPLAY_DEVICE))
 
48
 
 
49
#define CTK_DISPLAY_DEVICE_GET_CLASS(obj) \
 
50
    (G_TYPE_INSTANCE_GET_CLASS ((obj), CTK_TYPE_DISPLAY_DEVICE, \
 
51
                                CtkDisplayDeviceClass))
 
52
 
 
53
 
 
54
#define CTK_DISPLAY_DEVICE_CRT_MASK 0x000000FF
 
55
#define CTK_DISPLAY_DEVICE_TV_MASK  0x0000FF00
 
56
#define CTK_DISPLAY_DEVICE_DFP_MASK 0x00FF0000
 
57
 
 
58
 
 
59
typedef struct _CtkDisplayDevice       CtkDisplayDevice;
 
60
typedef struct _CtkDisplayDeviceClass  CtkDisplayDeviceClass;
 
61
 
 
62
struct _CtkDisplayDevice
 
63
{
 
64
    GtkVBox parent;
 
65
 
 
66
    NvCtrlAttributeHandle *handle;
 
67
    CtkConfig *ctk_config;
 
68
    
 
69
    unsigned int enabled_display_devices;
 
70
    
 
71
    int num_display_devices;
 
72
    char *display_device_names[24];
 
73
    
 
74
};
 
75
 
 
76
struct _CtkDisplayDeviceClass
 
77
{
 
78
    GtkVBoxClass parent_class;
 
79
};
 
80
 
 
81
GType       ctk_display_device_get_type  (void) G_GNUC_CONST;
 
82
GtkWidget*  ctk_display_device_new       (NvCtrlAttributeHandle *,
 
83
                                          CtkConfig *, CtkEvent *);
 
84
 
 
85
GtkTextBuffer *ctk_display_device_create_help(GtkTextTagTable *,
 
86
                                              CtkDisplayDevice *);
 
87
 
 
88
G_END_DECLS
 
89
 
 
90
#endif /* __CTK_DISPLAYDEVICE_H__ */