1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
54
  
55
  
56
  
57
  
58
  
59
  
60
  
61
  
62
  
63
  
64
  
65
  
66
  
67
  
68
  
69
  
70
  
71
  
72
  
73
  
74
  
75
  
76
  
77
  
78
  
79
  
80
  
81
  
82
  
83
  
84
  
85
  
86
  
87
  
88
  
89
  
90
  
91
  
92
  
93
  
94
  
95
  
96
  
97
  
98
  
99
  
100
  
101
  
102
  
103
  
104
  
105
  
106
  
107
  
108
  
109
  
110
  
111
  
112
  
113
  
114
  
115
  
116
  
117
  
118
  
119
  
120
  
121
  
122
  
123
  
124
  
125
  
126
  
127
  
128
  
129
  
130
  
131
  
132
  
133
  
134
  
135
  
136
  
137
  
138
  
139
  
140
  
141
  
142
  
143
  
144
  
145
  
146
  
147
  
148
  
149
  
150
  
151
  
152
  
153
  
154
  
155
  
156
  
157
  
158
  
159
  
160
  
161
  
162
  
163
  
164
  
165
  
166
  
167
  
168
  
169
  
170
  
171
  
172
  
173
  
174
  
175
  
176
  
177
  
178
  
179
  
/* -*- C -*- */ 
not gtk210; 
require gnomeui; 
 
class Gnome2.DruidPageEdge; 
inherit Gnome2.DruidPage; 
 
/* 
member string title; 
member string text; 
member GDK2.Pixbuf logo_image; 
member GDK2.Pixbuf watermark_image; 
member GDK2.Pixbuf top_watermark_image; 
member GDK2.Color background_color; 
member GDK2.Color textbox_color; 
member GDK2.Color logo_background_color; 
member GDK2.Color title_color; 
member GDK2.Color text_color; 
member int position; 
*/ 
 
void create(int position, ?int anti_alias) 
//! Create a new Gnome2.DruidPageEdge, with optional anti-aliasing. 
{ 
  pgtk2_verify_not_inited(); 
  pgtk2_verify_setup(); 
  { 
    INT_TYPE pos,aa=0; 
    GtkWidget *gpe; 
    get_all_args(NULL,args,"%i.%i",&pos,&aa); 
 
    if (aa) 
      gpe=gnome_druid_page_edge_new_aa(pos); 
    else 
      gpe=gnome_druid_page_edge_new(pos); 
 
    THIS->obj=G_OBJECT(gpe); 
  } 
  pgtk2_pop_n_elems(args); 
  pgtk2__init_this_object(); 
} 
 
void set_bg_color(GDK2.Color color) 
//! This will set the background color. 
{ 
  pgtk2_verify_inited(); 
  { 
    GdkColor *color; 
    struct object *o1; 
    get_all_args(NULL,args,"%o",&o1); 
    color=(GdkColor *)get_gdkobject(o1,color); 
    gnome_druid_page_edge_set_bg_color(GNOME_DRUID_PAGE_EDGE(THIS->obj), 
                        color); 
  } 
  RETURN_THIS(); 
} 
 
void set_textbox_color(GDK2.Color color) 
//! Sets the color of the background in the main text area of the page. 
{ 
  pgtk2_verify_inited(); 
  { 
    GdkColor *color; 
    struct object *o1; 
    get_all_args(NULL,args,"%o",&o1); 
    color=(GdkColor *)get_gdkobject(o1,color); 
    gnome_druid_page_edge_set_textbox_color(GNOME_DRUID_PAGE_EDGE(THIS->obj), 
                        color); 
  } 
  RETURN_THIS(); 
} 
 
void set_logo_bg_color(GDK2.Color color) 
//! Sets the color behind the druid page's logo. 
{ 
  pgtk2_verify_inited(); 
  { 
    GdkColor *color; 
    struct object *o1; 
    get_all_args(NULL,args,"%o",&o1); 
    color=(GdkColor *)get_gdkobject(o1,color); 
    gnome_druid_page_edge_set_logo_bg_color(GNOME_DRUID_PAGE_EDGE(THIS->obj), 
                        color); 
  } 
  RETURN_THIS(); 
} 
 
void set_title_color(GDK2.Color color) 
//! Sets the color of the title text. 
{ 
  pgtk2_verify_inited(); 
  { 
    GdkColor *color; 
    struct object *o1; 
    get_all_args(NULL,args,"%o",&o1); 
    color=(GdkColor *)get_gdkobject(o1,color); 
    gnome_druid_page_edge_set_title_color(GNOME_DRUID_PAGE_EDGE(THIS->obj), 
                        color); 
  } 
  RETURN_THIS(); 
} 
 
void set_text_color(GDK2.Color color) 
//! Sets the color of the text in the body of the page. 
{ 
  pgtk2_verify_inited(); 
  { 
    GdkColor *color; 
    struct object *o1; 
    get_all_args(NULL,args,"%o",&o1); 
    color=(GdkColor *)get_gdkobject(o1,color); 
    gnome_druid_page_edge_set_text_color(GNOME_DRUID_PAGE_EDGE(THIS->obj), 
                        color); 
  } 
  RETURN_THIS(); 
} 
 
void set_text(sprintf_format text, sprintf_args ... fmt) 
//! Sets the contents of the text portion. 
{ 
  pgtk2_get_string_arg_with_sprintf(args); 
  pgtk2_verify_inited(); 
  gnome_druid_page_edge_set_text(GNOME_DRUID_PAGE_EDGE(THIS->obj),Pike_sp[-1].u.string->str); 
  pgtk2_return_this(1); 
} 
 
void set_title(string title); 
//! Sets the contents of the page's title text. 
 
void set_logo(?GDK2.Pixbuf logo) 
//! Sets a GDK2.Pixbuf as the logo in the top right corner.  If omitted, then no  
//! logo will be displayed. 
{ 
  pgtk2_verify_inited(); 
  if (args) { 
    struct object *o1; 
    get_all_args(NULL,args,"%o",&o1); 
    gnome_druid_page_edge_set_logo(GNOME_DRUID_PAGE_EDGE(THIS->obj), 
                        GDK_PIXBUF(get_gobject(o1))); 
  } else { 
    gnome_druid_page_edge_set_logo(GNOME_DRUID_PAGE_EDGE(THIS->obj),NULL); 
  } 
  RETURN_THIS(); 
} 
 
void set_watermark(?GDK2.Pixbuf watermark) 
//! Sets a GDK2.Pixbuf as the watermark on the left strip on the druid.  If 
//! watermark is omitted, it is reset to the normal color. 
{ 
  pgtk2_verify_inited(); 
  if (args) { 
    struct object *o1; 
    get_all_args(NULL,args,"%o",&o1); 
    gnome_druid_page_edge_set_watermark(GNOME_DRUID_PAGE_EDGE(THIS->obj), 
                        GDK_PIXBUF(get_gobject(o1))); 
  } else 
    gnome_druid_page_edge_set_watermark(GNOME_DRUID_PAGE_EDGE(THIS->obj),NULL); 
  RETURN_THIS(); 
} 
 
void set_top_watermark(?GDK2.Pixbuf watermark) 
//! Sets a GDK2.Pixbuf as the watermark on top of the top strip on the druid. 
//! If watermark is omitted, it is reset to the normal color. 
{ 
  pgtk2_verify_inited(); 
  if (args) { 
    struct object *o1; 
    get_all_args(NULL,args,"%o",&o1); 
    gnome_druid_page_edge_set_top_watermark(GNOME_DRUID_PAGE_EDGE(THIS->obj), 
                        GDK_PIXBUF(get_gobject(o1))); 
  } else 
    gnome_druid_page_edge_set_top_watermark( 
                        GNOME_DRUID_PAGE_EDGE(THIS->obj),NULL); 
  RETURN_THIS(); 
} 
 
endrequire; 
endnot;