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_SLIMM_H__
26
#define __CTK_SLIMM_H__
30
#include "NvCtrlAttributes.h"
32
#include "ctkdisplaylayout.h"
33
#include "ctkconfig.h"
35
#include "XF86Config-parser/xf86Parser.h"
39
#define CTK_TYPE_SLIMM (ctk_slimm_get_type())
41
#define CTK_SLIMM(obj) \
42
(G_TYPE_CHECK_INSTANCE_CAST ((obj), CTK_TYPE_SLIMM, CtkSLIMM))
44
#define CTK_SLIMM_CLASS(klass) \
45
(G_TYPE_CHECK_CLASS_CAST ((klass), CTK_TYPE_SLIMM, CtkSLIMMClass))
47
#define CTK_IS_SLIMM(obj) \
48
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), CTK_TYPE_SLIMM))
50
#define CTK_IS_SLIMM_CLASS(class) \
51
(G_TYPE_CHECK_CLASS_TYPE ((klass), CTK_TYPE_SLIMM))
53
#define CTK_SLIMM_GET_CLASS(obj) \
54
(G_TYPE_INSTANCE_GET_CLASS ((obj), CTK_TYPE_SLIMM, CtkSLIMMClass))
56
typedef struct _CtkSLIMM CtkSLIMM;
57
typedef struct _CtkSLIMMClass CtkSLIMMClass;
63
NvCtrlAttributeHandle *handle;
64
CtkConfig *ctk_config;
66
GtkWidget *mnu_display_config;
67
GtkWidget *mnu_display_resolution;
68
GtkWidget *mnu_display_refresh;
69
GtkWidget *spbtn_hedge_overlap;
70
GtkWidget *spbtn_vedge_overlap;
71
GtkWidget *lbl_total_size;
72
GtkWidget *box_total_size;
73
GtkWidget *btn_save_config;
74
GtkWidget *cbtn_slimm_enable;
75
nvModeLinePtr *resolution_table;
76
nvModeLinePtr *refresh_table;
77
int resolution_table_len;
78
int refresh_table_len;
79
gboolean mnu_refresh_disabled;
80
nvModeLinePtr modelines;
81
nvModeLinePtr cur_modeline;
87
GtkVBoxClass parent_class;
90
GType ctk_slimm_get_type (void) G_GNUC_CONST;
91
GtkWidget* ctk_slimm_new (NvCtrlAttributeHandle *handle,
92
CtkEvent *ctk_event, CtkConfig *ctk_config);
94
GtkTextBuffer *ctk_slimm_create_help(GtkTextTagTable *, const gchar *);
98
#endif /* __CTK_SLIMM_H__ */