~ubuntu-branches/ubuntu/karmic/sanduhr/karmic

« back to all changes in this revision

Viewing changes to src/sand-window.h

  • Committer: Bazaar Package Importer
  • Author(s): Jochen Voss
  • Date: 2002-04-12 16:33:03 UTC
  • Revision ID: james.westby@ubuntu.com-20020412163303-xn0v3utm5xcyux60
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Generated by GOB (v1.0.12)   (do not edit directly) */
 
2
 
 
3
#include <gtk/gtk.h>
 
4
 
 
5
 
 
6
 
 
7
#include <gnome.h>
 
8
#include <libgnomeui/gnome-canvas.h>
 
9
 
 
10
#ifndef __SAND_WINDOW_H__
 
11
#define __SAND_WINDOW_H__
 
12
 
 
13
#ifdef __cplusplus
 
14
extern "C" {
 
15
#endif /* __cplusplus */
 
16
 
 
17
 
 
18
/*
 
19
 * Type checking and casting macros
 
20
 */
 
21
#define SAND_TYPE_WINDOW        (sand_window_get_type())
 
22
#define SAND_WINDOW(obj)        GTK_CHECK_CAST((obj), sand_window_get_type(), SandWindow)
 
23
#define SAND_WINDOW_CONST(obj)  GTK_CHECK_CAST((obj), sand_window_get_type(), SandWindow const)
 
24
#define SAND_WINDOW_CLASS(klass)        GTK_CHECK_CLASS_CAST((klass), sand_window_get_type(), SandWindowClass)
 
25
#define SAND_IS_WINDOW(obj)     GTK_CHECK_TYPE((obj), sand_window_get_type ())
 
26
 
 
27
#ifdef GTK_CHECK_GET_CLASS
 
28
#define SAND_WINDOW_GET_CLASS(obj)      GTK_CHECK_GET_CLASS((obj), sand_window_get_type(), SandWindowClass)
 
29
#else /* !GTK_CHECK_GET_CLASS */
 
30
#define SAND_WINDOW_GET_CLASS(obj)      ((SandWindowClass *)GTK_OBJECT(obj)->klass)
 
31
#endif /* GTK_CHECK_GET_CLASS */
 
32
 
 
33
/*
 
34
 * Main object structure
 
35
 */
 
36
#ifndef __TYPEDEF_SAND_WINDOW__
 
37
#define __TYPEDEF_SAND_WINDOW__
 
38
typedef struct _SandWindow SandWindow;
 
39
#endif
 
40
struct _SandWindow {
 
41
        GtkWindow __parent__;
 
42
        /*< public >*/
 
43
        int width;
 
44
        int height;
 
45
        gboolean decorations;
 
46
        GnomeWinLayer layer;
 
47
        GtkWidget * canvas;
 
48
        GnomeCanvasItem * back;
 
49
        GnomeCanvasItem * front;
 
50
        GnomeCanvasItem * mid;
 
51
        GdkImlibImage * sand;
 
52
        guint8 r;
 
53
        guint8 g;
 
54
        guint8 b;
 
55
        double ratio;
 
56
        /*< private >*/
 
57
        unsigned char * mask; /* protected */
 
58
        double A; /* protected */
 
59
        double B; /* protected */
 
60
        double fill; /* protected */
 
61
};
 
62
 
 
63
/*
 
64
 * Class definition
 
65
 */
 
66
typedef struct _SandWindowClass SandWindowClass;
 
67
struct _SandWindowClass {
 
68
        GtkWindowClass __parent__;
 
69
};
 
70
 
 
71
 
 
72
/*
 
73
 * Public methods
 
74
 */
 
75
GtkType sand_window_get_type    (void) G_GNUC_CONST;
 
76
GtkWidget *     sand_window_new (void);
 
77
GnomeWinLayer   sand_window_get_layer   (SandWindow * self);
 
78
void    sand_window_set_layer   (SandWindow * self,
 
79
                                        GnomeWinLayer layer);
 
80
void    sand_window_get_color   (SandWindow * self,
 
81
                                        guint8 * r,
 
82
                                        guint8 * g,
 
83
                                        guint8 * b);
 
84
void    sand_window_set_color   (SandWindow * self,
 
85
                                        guint8 r,
 
86
                                        guint8 g,
 
87
                                        guint8 b);
 
88
void    sand_window_flood       (SandWindow * self,
 
89
                                        double q);
 
90
 
 
91
/*
 
92
 * Argument wrapping macros
 
93
 */
 
94
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
 
95
#define SAND_WINDOW_ARG_DECORATIONS(arg)        "decorations",({gboolean z = (arg); z;})
 
96
#define SAND_WINDOW_GET_ARG_DECORATIONS(arg)    "decorations",({gboolean *z = (arg); z;})
 
97
#else /* __GNUC__ && !__STRICT_ANSI__ */
 
98
#define SAND_WINDOW_ARG_DECORATIONS(arg)        "decorations",(gboolean )(arg)
 
99
#define SAND_WINDOW_GET_ARG_DECORATIONS(arg)    "decorations",(gboolean *)(arg)
 
100
#endif /* __GNUC__ && !__STRICT_ANSI__ */
 
101
 
 
102
 
 
103
#ifdef __cplusplus
 
104
}
 
105
#endif /* __cplusplus */
 
106
 
 
107
#endif