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

« back to all changes in this revision

Viewing changes to src/gtk+-2.x/ctkcursorshadow.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_CURSOR_SHADOW_H__
 
26
#define __CTK_CURSOR_SHADOW_H__
 
27
 
 
28
#include "NvCtrlAttributes.h"
 
29
#include "ctkconfig.h"
 
30
#include "ctkevent.h"
 
31
 
 
32
G_BEGIN_DECLS
 
33
 
 
34
#define CTK_TYPE_CURSOR_SHADOW (ctk_cursor_shadow_get_type())
 
35
 
 
36
#define CTK_CURSOR_SHADOW(obj) \
 
37
    (G_TYPE_CHECK_INSTANCE_CAST ((obj), CTK_TYPE_CURSOR_SHADOW, \
 
38
                                 CtkCursorShadow))
 
39
 
 
40
#define CTK_CURSOR_SHADOW_CLASS(klass) \
 
41
    (G_TYPE_CHECK_CLASS_CAST ((klass), CTK_TYPE_CURSOR_SHADOW, \
 
42
                              CtkCursorShadowClass))
 
43
 
 
44
#define CTK_IS_CURSOR_SHADOW(obj) \
 
45
    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CTK_TYPE_CURSOR_SHADOW))
 
46
 
 
47
#define CTK_IS_CURSOR_SHADOW_CLASS(class) \
 
48
    (G_TYPE_CHECK_CLASS_TYPE ((klass), CTK_TYPE_CURSOR_SHADOW))
 
49
 
 
50
#define CTK_CURSOR_SHADOW_GET_CLASS(obj) \
 
51
    (G_TYPE_INSTANCE_GET_CLASS ((obj), CTK_TYPE_CURSOR_SHADOW, \
 
52
                                CtkCursorShadowClass))
 
53
 
 
54
 
 
55
typedef struct _CtkCursorShadow       CtkCursorShadow;
 
56
typedef struct _CtkCursorShadowClass  CtkCursorShadowClass;
 
57
 
 
58
struct _CtkCursorShadow
 
59
{
 
60
    GtkVBox parent;
 
61
 
 
62
    NvCtrlAttributeHandle *handle;
 
63
    CtkConfig *ctk_config;
 
64
    CtkEvent *ctk_event;
 
65
    GtkWidget *scales[3];
 
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;
 
75
};
 
76
 
 
77
struct _CtkCursorShadowClass
 
78
{
 
79
    GtkVBoxClass parent_class;
 
80
};
 
81
 
 
82
GType       ctk_cursor_shadow_get_type  (void) G_GNUC_CONST;
 
83
GtkWidget*  ctk_cursor_shadow_new       (NvCtrlAttributeHandle *handle,
 
84
                                         CtkConfig *ctk_config,
 
85
                                         CtkEvent *ctk_event);
 
86
 
 
87
GtkTextBuffer *ctk_cursor_shadow_create_help(GtkTextTagTable *,
 
88
                                             CtkCursorShadow *);
 
89
 
 
90
G_END_DECLS
 
91
 
 
92
#endif /* __CTK_CURSOR_SHADOW_H__ */
 
93