2
* nvidia-settings: A tool for configuring the NVIDIA X driver on Unix
5
* Copyright (C) 2004 NVIDIA Corporation.
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.
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.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the:
19
* Free Software Foundation, Inc.
20
* 59 Temple Place - Suite 330
21
* Boston, MA 02111-1307, USA
25
#ifndef __CTK_DISPLAYDEVICE_DFP_H__
26
#define __CTK_DISPLAYDEVICE_DFP_H__
29
#include "ctkconfig.h"
33
#define CTK_TYPE_DISPLAY_DEVICE_DFP (ctk_display_device_dfp_get_type())
35
#define CTK_DISPLAY_DEVICE_DFP(obj) \
36
(G_TYPE_CHECK_INSTANCE_CAST ((obj), CTK_TYPE_DISPLAY_DEVICE_DFP, \
39
#define CTK_DISPLAY_DEVICE_DFP_CLASS(klass) \
40
(G_TYPE_CHECK_CLASS_CAST ((klass), CTK_TYPE_DISPLAY_DEVICE_DFP, \
41
CtkDisplayDeviceDfpClass))
43
#define CTK_IS_DISPLAY_DEVICE_DFP(obj) \
44
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), CTK_TYPE_DISPLAY_DEVICE_DFP))
46
#define CTK_IS_DISPLAY_DEVICE_DFP_CLASS(class) \
47
(G_TYPE_CHECK_CLASS_TYPE ((klass), CTK_TYPE_DISPLAY_DEVICE_DFP))
49
#define CTK_DISPLAY_DEVICE_DFP_GET_CLASS(obj) \
50
(G_TYPE_INSTANCE_GET_CLASS ((obj), CTK_TYPE_DISPLAY_DEVICE_DFP, \
51
CtkDisplayDeviceDfpClass))
54
typedef struct _CtkDisplayDeviceDfp CtkDisplayDeviceDfp;
55
typedef struct _CtkDisplayDeviceDfpClass CtkDisplayDeviceDfpClass;
57
struct _CtkDisplayDeviceDfp
61
NvCtrlAttributeHandle *handle;
62
CtkConfig *ctk_config;
63
GtkWidget *image_sliders;
64
GtkWidget *reset_button;
66
GtkWidget *scaling_buttons[NV_CTRL_FLATPANEL_SCALING_ASPECT_SCALED+1];
67
GtkWidget *dithering_buttons[NV_CTRL_FLATPANEL_DITHERING_DISABLED+1];
69
unsigned int display_device_mask;
70
unsigned int active_attributes;
75
struct _CtkDisplayDeviceDfpClass
77
GtkVBoxClass parent_class;
80
GType ctk_display_device_dfp_get_type (void) G_GNUC_CONST;
81
GtkWidget* ctk_display_device_dfp_new (NvCtrlAttributeHandle *,
82
CtkConfig *, CtkEvent *,
83
unsigned int, char *);
85
GtkTextBuffer *ctk_display_device_dfp_create_help(GtkTextTagTable *,
86
CtkDisplayDeviceDfp *);
90
#endif /* __CTK_DISPLAYDEVICE_DFP_H__ */