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_CURSOR_SHADOW_H__
26
#define __CTK_CURSOR_SHADOW_H__
28
#include "NvCtrlAttributes.h"
29
#include "ctkconfig.h"
34
#define CTK_TYPE_CURSOR_SHADOW (ctk_cursor_shadow_get_type())
36
#define CTK_CURSOR_SHADOW(obj) \
37
(G_TYPE_CHECK_INSTANCE_CAST ((obj), CTK_TYPE_CURSOR_SHADOW, \
40
#define CTK_CURSOR_SHADOW_CLASS(klass) \
41
(G_TYPE_CHECK_CLASS_CAST ((klass), CTK_TYPE_CURSOR_SHADOW, \
42
CtkCursorShadowClass))
44
#define CTK_IS_CURSOR_SHADOW(obj) \
45
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), CTK_TYPE_CURSOR_SHADOW))
47
#define CTK_IS_CURSOR_SHADOW_CLASS(class) \
48
(G_TYPE_CHECK_CLASS_TYPE ((klass), CTK_TYPE_CURSOR_SHADOW))
50
#define CTK_CURSOR_SHADOW_GET_CLASS(obj) \
51
(G_TYPE_INSTANCE_GET_CLASS ((obj), CTK_TYPE_CURSOR_SHADOW, \
52
CtkCursorShadowClass))
55
typedef struct _CtkCursorShadow CtkCursorShadow;
56
typedef struct _CtkCursorShadowClass CtkCursorShadowClass;
58
struct _CtkCursorShadow
62
NvCtrlAttributeHandle *handle;
63
CtkConfig *ctk_config;
66
GtkWidget *reset_button;
67
GtkWidget *color_selector_check_button;
68
GtkWidget *cursor_shadow_check_button;
69
GtkWidget *color_selector;
70
GtkWidget *color_selector_window;
71
gboolean reset_button_sensitivity;
72
NVCTRLAttributeValidValuesRec red_range;
73
NVCTRLAttributeValidValuesRec green_range;
74
NVCTRLAttributeValidValuesRec blue_range;
77
struct _CtkCursorShadowClass
79
GtkVBoxClass parent_class;
82
GType ctk_cursor_shadow_get_type (void) G_GNUC_CONST;
83
GtkWidget* ctk_cursor_shadow_new (NvCtrlAttributeHandle *handle,
84
CtkConfig *ctk_config,
87
GtkTextBuffer *ctk_cursor_shadow_create_help(GtkTextTagTable *,
92
#endif /* __CTK_CURSOR_SHADOW_H__ */