File: class-gtkstyle.html

package info (click to toggle)
python-gtk2-doc 2.5.2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,304 kB
  • ctags: 3,741
  • sloc: makefile: 38
file content (309 lines) | stat: -rw-r--r-- 122,371 bytes parent folder | download
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gtk.Style</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="previous" href="class-gtkstatusbar.html" title="gtk.Statusbar"><link rel="next" href="class-gtktable.html" title="gtk.Table"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gtk.Style</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkstatusbar.html">Prev</a></td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"><a accesskey="n" href="class-gtktable.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkstyle"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>gtk.Style</h2><p>gtk.Style &#8212; an object that hold style information for widgets</p></div><div class="refsect1" lang="en"><a name="id3511204"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.Style</span></span>(<span class="ooclass"><span class="classname"><a href="class-gobject.html" title="gobject.GObject">gobject.GObject</a></span></span>):
<code class="constructorsynopsis">    <span class="methodname"><a href="class-gtkstyle.html#constructor-gtkstyle" title="Constructor">gtk.Style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--copy" title="gtk.Style.copy">copy</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--attach" title="gtk.Style.attach">attach</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--detach" title="gtk.Style.detach">detach</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--set-background" title="gtk.Style.set_background">set_background</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--apply-default-background" title="gtk.Style.apply_default_background">apply_default_background</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>set_bg</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--lookup-icon-set" title="gtk.Style.lookup_icon_set">lookup_icon_set</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>stock_id</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--render-icon" title="gtk.Style.render_icon">render_icon</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>source</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>direction</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>size</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-hline" title="gtk.Style.paint_hline">paint_hline</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x1</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x2</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-vline" title="gtk.Style.paint_vline">paint_vline</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y1</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y2</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-shadow" title="gtk.Style.paint_shadow">paint_shadow</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-polygon" title="gtk.Style.paint_polygon">paint_polygon</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>points</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>fill</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-arrow" title="gtk.Style.paint_arrow">paint_arrow</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>arrow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>fill</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-diamond" title="gtk.Style.paint_diamond">paint_diamond</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-box" title="gtk.Style.paint_box">paint_box</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-flat-box" title="gtk.Style.paint_flat_box">paint_flat_box</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-check" title="gtk.Style.paint_check">paint_check</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-option" title="gtk.Style.paint_option">paint_option</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-tab" title="gtk.Style.paint_tab">paint_tab</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-shadow-gap" title="gtk.Style.paint_shadow_gap">paint_shadow_gap</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>gap_side</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>gap_x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>gap_width</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-box-gap" title="gtk.Style.paint_box_gap">paint_box_gap</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>gap_side</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>gap_x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>gap_width</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-extension" title="gtk.Style.paint_extension">paint_extension</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>gap_side</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-focus" title="gtk.Style.paint_focus">paint_focus</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-slider" title="gtk.Style.paint_slider">paint_slider</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>orientation</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-handle" title="gtk.Style.paint_handle">paint_handle</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>orientation</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-expander" title="gtk.Style.paint_expander">paint_expander</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>expander_style</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-layout" title="gtk.Style.paint_layout">paint_layout</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>use_text</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>layout</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkstyle.html#method-gtkstyle--paint-resize-grip" title="gtk.Style.paint_resize_grip">paint_resize_grip</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>edge</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3513164"></a><h2>Ancestry</h2><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="synopsis">+-- <a href="class-gobject.html" title="gobject.GObject">gobject.GObject</a>
  +-- <a href="class-gtkstyle.html" title="gtk.Style">gtk.Style</a>
</pre></td></tr></table></div><div class="refsect1" lang="en"><a name="attributes-gtkstyle"></a><h2>Attributes</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table cellpadding="5" width="100%" border="0"><colgroup><col><col><col></colgroup><tbody><tr valign="top"><td valign="top">"fg"</td><td valign="top">Read</td><td valign="top">An array of <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a>s to be
used for the foreground colors in each widget state.</td></tr><tr valign="top"><td valign="top">"bg"</td><td valign="top">Read</td><td valign="top">An array of <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a>s to be
used for the background colors in each widget state.</td></tr><tr valign="top"><td valign="top">"light"</td><td valign="top">Read</td><td valign="top">An array of <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a>s to be
used for the light colors in each widget state. The light colors are
slightly lighter than the bg colors and used for creating shadows.</td></tr><tr valign="top"><td valign="top">"dark"</td><td valign="top">Read</td><td valign="top">An array of <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a>s to be
used for the dark colors in each widget state. The dark colors are slightly
darker than the bg colors and used for creating shadows.</td></tr><tr valign="top"><td valign="top">"mid"</td><td valign="top">Read</td><td valign="top">An array of <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a>s to be
used for the  mid colors (between light and dark) in each widget
state</td></tr><tr valign="top"><td valign="top">"text"</td><td valign="top">Read</td><td valign="top">An array of <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a>s to be
used for the text colors in each widget state.</td></tr><tr valign="top"><td valign="top">"base"</td><td valign="top">Read</td><td valign="top">An array of <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a>s to be
used for the base colors in each widget state.</td></tr><tr valign="top"><td valign="top">"text_aa"</td><td valign="top">Read</td><td valign="top">An array of <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a>s to be
used for the anti-aliased text colors in each widget state.</td></tr><tr valign="top"><td valign="top">"black"</td><td valign="top">Read</td><td valign="top">A <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a> that is
used for the black color.</td></tr><tr valign="top"><td valign="top">"white"</td><td valign="top">Read</td><td valign="top">A <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a> that is
used for the white color.</td></tr><tr valign="top"><td valign="top">"font_desc"</td><td valign="top">Read</td><td valign="top">A <tt class="classname">pango.FontDescription</tt> used as
the default text font.</td></tr><tr valign="top"><td valign="top">"xthickness"</td><td valign="top">Read</td><td valign="top">The thickness of lines drawn vertically.</td></tr><tr valign="top"><td valign="top">"ythickness"</td><td valign="top">Read</td><td valign="top">The thickness of lines drawn horizontally.</td></tr><tr valign="top"><td valign="top">"fg_gc"</td><td valign="top">Read</td><td valign="top">An array of graphics contexts (<a href="class-gdkgc.html" title="gtk.gdk.GC"><tt class="classname">gtk.gdk.GC</tt></a>) for drawing
using the fg colors.</td></tr><tr valign="top"><td valign="top">"bg_gc"</td><td valign="top">Read</td><td valign="top">An array of graphics contexts (<a href="class-gdkgc.html" title="gtk.gdk.GC"><tt class="classname">gtk.gdk.GC</tt></a>) for drawing
using the bg colors.</td></tr><tr valign="top"><td valign="top">"light_gc"</td><td valign="top">Read</td><td valign="top">An array of graphics contexts (<a href="class-gdkgc.html" title="gtk.gdk.GC"><tt class="classname">gtk.gdk.GC</tt></a>) for drawing
using the light colors.</td></tr><tr valign="top"><td valign="top">"dark_gc"</td><td valign="top">Read</td><td valign="top">An array of graphics contexts (<a href="class-gdkgc.html" title="gtk.gdk.GC"><tt class="classname">gtk.gdk.GC</tt></a>) for drawing
using the dark colors.</td></tr><tr valign="top"><td valign="top">"mid_gc"</td><td valign="top">Read</td><td valign="top">An array of graphics contexts (<a href="class-gdkgc.html" title="gtk.gdk.GC"><tt class="classname">gtk.gdk.GC</tt></a>) for drawing
using the mid colors.</td></tr><tr valign="top"><td valign="top">"text_gc"</td><td valign="top">Read</td><td valign="top">An array of graphics contexts (<a href="class-gdkgc.html" title="gtk.gdk.GC"><tt class="classname">gtk.gdk.GC</tt></a>) for drawing
using the text colors.</td></tr><tr valign="top"><td valign="top">"base_gc"</td><td valign="top">Read</td><td valign="top">An array of graphics contexts (<a href="class-gdkgc.html" title="gtk.gdk.GC"><tt class="classname">gtk.gdk.GC</tt></a>) for drawing
using the base colors.</td></tr><tr valign="top"><td valign="top">"text_aa_gc"</td><td valign="top">Read</td><td valign="top">An array of graphics contexts (<a href="class-gdkgc.html" title="gtk.gdk.GC"><tt class="classname">gtk.gdk.GC</tt></a>) for drawing
using the anti-aliased text colors.</td></tr><tr valign="top"><td valign="top">"black_gc"</td><td valign="top">Read</td><td valign="top">A graphics context (<a href="class-gdkgc.html" title="gtk.gdk.GC"><tt class="classname">gtk.gdk.GC</tt></a>) for drawing
using the black color.</td></tr><tr valign="top"><td valign="top">"white_gc"</td><td valign="top">Read</td><td valign="top">A graphics context (<a href="class-gdkgc.html" title="gtk.gdk.GC"><tt class="classname">gtk.gdk.GC</tt></a>) for drawing
using the white color.</td></tr><tr valign="top"><td valign="top">"bg_pixmap"</td><td valign="top">Read</td><td valign="top">An array of <a href="class-gdkpixmap.html" title="gtk.gdk.Pixmap"><tt class="classname">gtk.gdk.Pixmap</tt></a> to
be used for the background stippling in each widget state.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id3513839"></a><h2>Description</h2><p>A <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a> object
encapsulates the information that provides the look and feel for a widget.
Each <a href="class-gtkwidget.html" title="gtk.Widget"><tt class="classname">gtk.Widget</tt></a> has an
associated <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a> object that
is used when rendering that widget. Usually the <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a> for a
widget is the same as the default style that is set by GTK and modified the
theme engine. A <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a> holds
information for the five possible widget states though not every widget
supports all five states:</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><tt class="literal">gtk.STATE_NORMAL</tt></span></td><td>The state of a sensitive widget that is not active and
does not have the focus</td></tr><tr><td><span class="term"><tt class="literal">gtk.STATE_ACTIVE</tt></span></td><td>The state of a sensitive widget when it is active e.g. a
button that is pressed but not yet released</td></tr><tr><td><span class="term"><tt class="literal">gtk.STATE_PRELIGHT</tt></span></td><td>The state of a sensitive widget that has the focus e.g. a
button that has the mouse pointer over it.</td></tr><tr><td><span class="term"><tt class="literal">gtk.STATE_SELECTED</tt></span></td><td>The state of a widget that is selected e.g. selected text
in a <a href="class-gtkentry.html" title="gtk.Entry"><tt class="classname">gtk.Entry</tt></a>
widget</td></tr><tr><td><span class="term"><tt class="literal">gtk.STATE_INSENSITIVE</tt></span></td><td>The state of a widget that is insensitive and will not
respond to any events e.g. cannot be activated, selected or
prelit.</td></tr></tbody></table><p>A <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a> contains
the read-only attributes described in the above <a href="class-gtkstyle.html#attributes-gtkstyle" title="Attributes">section</a>.</p><p>Usually applications should not need to use or modify the <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a> of their
widgets.</p></div><div class="refsect1" lang="en"><a name="constructor-gtkstyle"></a><h2>Constructor</h2><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.Style</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a new <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a>
object</td></tr></tbody></table><p>Creates a new <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a>
object.</p></div><div class="refsect1" lang="en"><a name="id3514082"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkstyle--copy"></a><h3>gtk.Style.copy</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">copy</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a copy of the <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a>
object</td></tr></tbody></table><p>The <tt class="methodname">copy</tt>() method returns a copy of the
style object.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--attach"></a><h3>gtk.Style.attach</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">attach</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gtkwindow.html" title="gtk.Window"><tt class="classname">gtk.Window</tt></a>.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a>
object</td></tr></tbody></table><p>The <tt class="methodname">attach</tt>() method adapts a style to
the specified <i class="parameter"><tt>window</tt></i>. This process allocates the
colors and creates the graphics contexts for the style specializing them to
a particular visual and colormap. A new <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a> may be
created if the style has already been adapted to a window with a different
style and colormap.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--detach"></a><h3>gtk.Style.detach</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">detach</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">detach</tt>() method detaches the style and frees its resources if it is no longer attached.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--set-background"></a><h3>gtk.Style.set_background</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_background</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr></tbody></table><p>The <tt class="methodname">set_background</tt>() method sets the
background of <i class="parameter"><tt>window</tt></i> to the background color or
pixmap of the style for the widget state specified by
<i class="parameter"><tt>state_type</tt></i>.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--apply-default-background"></a><h3>gtk.Style.apply_default_background</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">apply_default_background</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>set_bg</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>set_bg</tt></b>:</span></td><td>if <tt class="literal">TRUE</tt> use the bg_pixmap
for the widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>the widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>the clipping area</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height</td></tr></tbody></table><p>The <tt class="methodname">apply_default_background</tt>() method
sets the background of the specified <i class="parameter"><tt>window</tt></i> in the
area specified by <i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>,
<i class="parameter"><tt>width</tt></i> and <i class="parameter"><tt>height</tt></i>. The
background color is derived from the bg_gc of the style with the state
specified by <i class="parameter"><tt>state_type</tt></i>. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> it specifies a
clipping area for the application of the background.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--lookup-icon-set"></a><h3>gtk.Style.lookup_icon_set</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">lookup_icon_set</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>stock_id</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>stock_id</tt></b>:</span></td><td>a stock ID</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a <a href="class-gtkiconset.html" title="gtk.IconSet"><tt class="classname">gtk.IconSet</tt></a></td></tr></tbody></table><p>The <tt class="methodname">lookup_icon_set</tt>() method looks in
the <a href="class-gtkiconfactory.html" title="gtk.IconFactory"><tt class="classname">gtk.IconFactory</tt></a>
list associated with the style and the default icon factory for the stock
icon specified by <i class="parameter"><tt>stock_id</tt></i>. If the stock icon iconset
is found it is returned.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--render-icon"></a><h3>gtk.Style.render_icon</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">render_icon</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>source</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>direction</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>size</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span><span class="initializer">=None</span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>source</tt></b>:</span></td><td>the <a href="class-gtkiconsource.html" title="gtk.IconSource"><tt class="classname">gtk.IconSource</tt></a>
specifying the icon to render</td></tr><tr><td><span class="term"><b class="parameter"><tt>direction</tt></b>:</span></td><td>a text direction</td></tr><tr><td><span class="term"><b class="parameter"><tt>state</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>size</tt></b>:</span></td><td>the size to render the icon at. A size of -1
means render at the size of the source and don't scale.</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a style detail</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a <a href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><tt class="classname">gtk.gdk.Pixbuf</tt></a></td></tr></tbody></table><p>The <tt class="methodname">render_icon</tt>() method renders the
icon specified by <i class="parameter"><tt>source</tt></i> at the specified
<i class="parameter"><tt>size</tt></i> for the specified widget
<i class="parameter"><tt>state</tt></i> according to the given parameters and returns
the result in a <a href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><tt class="classname">gtk.gdk.Pixbuf</tt></a>.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-hline"></a><h3>gtk.Style.paint_hline</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_hline</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x1</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x2</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>the rectangle that clips the
output</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>x1</tt></b>:</span></td><td>the starting x coordinate</td></tr><tr><td><span class="term"><b class="parameter"><tt>x2</tt></b>:</span></td><td>the ending x coordinate</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y coordinate</td></tr></tbody></table><p>The <tt class="methodname">paint_hline</tt>() method draws a
horizontal line from (<i class="parameter"><tt>x1</tt></i>, <i class="parameter"><tt>y</tt></i>)
to (<i class="parameter"><tt>x2</tt></i>, <i class="parameter"><tt>y</tt></i>) in
<i class="parameter"><tt>window</tt></i> using the specified
<i class="parameter"><tt>state_type</tt></i> of the style. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> the line is
clipped by the rectangle specified by <i class="parameter"><tt>area</tt></i>.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-vline"></a><h3>gtk.Style.paint_vline</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_vline</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y1</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y2</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>the rectangle to which the output is
clipped</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>y1</tt></b>:</span></td><td>the starting y coordinate</td></tr><tr><td><span class="term"><b class="parameter"><tt>y2</tt></b>:</span></td><td>the ending y coordinate</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x coordinate</td></tr></tbody></table><p>The <tt class="methodname">paint_vline</tt>() method draws a
vertical line from (<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y1</tt></i>) to
(<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y2</tt></i>) in
<i class="parameter"><tt>window</tt></i> using the specified
<i class="parameter"><tt>state_type</tt></i> of the style. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> the line is
clipped by the rectangle specified by <i class="parameter"><tt>area</tt></i>.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-shadow"></a><h3>gtk.Style.paint_shadow</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_shadow</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a>*</td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>shadow_type</tt></b>:</span></td><td>a type of shadow - one of:
<tt class="literal">gtk.SHADOW_NONE</tt>, <tt class="literal">gtk.SHADOW_IN</tt>,
<tt class="literal">gtk.SHADOW_OUT</tt>, <tt class="literal">gtk.SHADOW_ETCHED_IN</tt>,
<tt class="literal">gtk.SHADOW_ETCHED_OUT</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>the rectangle to which the output is
clipped</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height</td></tr></tbody></table><p>The <tt class="methodname">paint_shadow</tt>() method draws a
shadow of the specified <i class="parameter"><tt>shadow_type</tt></i> on the specified
<i class="parameter"><tt>window</tt></i> with the size specified by
<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>,
<i class="parameter"><tt>width</tt></i> and <i class="parameter"><tt>height</tt></i>. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> the shadow is
clipped to the rectangle' area. <i class="parameter"><tt>state_type</tt></i> specifies
the style state to use for drawing.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-polygon"></a><h3>gtk.Style.paint_polygon</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_polygon</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>points</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>fill</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>shadow_type</tt></b>:</span></td><td>a shadow type - one of:
<tt class="literal">gtk.SHADOW_NONE</tt>, <tt class="literal">gtk.SHADOW_IN</tt>,
<tt class="literal">gtk.SHADOW_OUT</tt>, <tt class="literal">gtk.SHADOW_ETCHED_IN</tt>,
<tt class="literal">gtk.SHADOW_ETCHED_OUT</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a clipping rectangle</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>points</tt></b>:</span></td><td>a list or tuple containing point (x, y)
tuples</td></tr><tr><td><span class="term"><b class="parameter"><tt>fill</tt></b>:</span></td><td>if <tt class="literal">TRUE</tt> the polygon should
be filled</td></tr></tbody></table><p>The <tt class="methodname">paint_polygon</tt>() method draws a
polygon on the specified <i class="parameter"><tt>window</tt></i> with the shadow type
specified by <i class="parameter"><tt>shadow_type</tt></i> connecting the points
specified by <i class="parameter"><tt>points</tt></i>. If <i class="parameter"><tt>area</tt></i>
is not <tt class="literal">None</tt> it specifies a clipping rectangle. The style
state specified by <i class="parameter"><tt>state_type</tt></i> determines the graphics
context to use while drawing.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-arrow"></a><h3>gtk.Style.paint_arrow</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_arrow</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>arrow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>fill</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>the widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>shadow_type</tt></b>:</span></td><td>a shadow type - one of:
<tt class="literal">gtk.SHADOW_NONE</tt>, <tt class="literal">gtk.SHADOW_IN</tt>,
<tt class="literal">gtk.SHADOW_OUT</tt>, <tt class="literal">gtk.SHADOW_ETCHED_IN</tt>,
<tt class="literal">gtk.SHADOW_ETCHED_OUT</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a clipping rectangle</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>arrow_type</tt></b>:</span></td><td>an arrow type - one of:
<tt class="literal">gtk.ARROW_UP</tt>, <tt class="literal">gtk.ARROW_DOWN</tt>,
<tt class="literal">gtk.ARROW_LEFT</tt>,
<tt class="literal">gtk.ARROW_RIGHT</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>fill</tt></b>:</span></td><td>if <tt class="literal">TRUE</tt> the arrow should be
filled</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height</td></tr></tbody></table><p>The<tt class="methodname"> paint_arrow</tt>() method draws an arrow
of the type specified by <i class="parameter"><tt>arrow_type</tt></i> on the specified
<i class="parameter"><tt>window</tt></i> with the shadow type specified by
<i class="parameter"><tt>shadow_type</tt></i> with the location and size specified by
<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>,
<i class="parameter"><tt>width</tt></i> and <i class="parameter"><tt>height</tt></i>. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> it specifies a
clipping rectangle. The widget state specified by
<i class="parameter"><tt>state_type</tt></i> determines the graphics context to use
while drawing.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-diamond"></a><h3>gtk.Style.paint_diamond</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_diamond</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>shadow_type</tt></b>:</span></td><td>a shadow type - one of:
<tt class="literal">gtk.SHADOW_NONE</tt>, <tt class="literal">gtk.SHADOW_IN</tt>,
<tt class="literal">gtk.SHADOW_OUT</tt>, <tt class="literal">gtk.SHADOW_ETCHED_IN</tt>,
<tt class="literal">gtk.SHADOW_ETCHED_OUT</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a clipping rectangle</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height</td></tr></tbody></table><p>The <tt class="methodname">paint_diamond</tt>() method draws a
diamond on the specified <i class="parameter"><tt>window</tt></i> with the shadow type
specified by <i class="parameter"><tt>shadow_type</tt></i> and the location and size
specified by <i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>,
<i class="parameter"><tt>width</tt></i> and <i class="parameter"><tt>height</tt></i>. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> it specifies a
clipping rectangle. The widget state specified by
<i class="parameter"><tt>state_type</tt></i> determines the graphics context to use
while drawing.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-box"></a><h3>gtk.Style.paint_box</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_box</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>shadow_type</tt></b>:</span></td><td>a shadow type - one of:
<tt class="literal">gtk.SHADOW_NONE</tt>, <tt class="literal">gtk.SHADOW_IN</tt>,
<tt class="literal">gtk.SHADOW_OUT</tt>, <tt class="literal">gtk.SHADOW_ETCHED_IN</tt>,
<tt class="literal">gtk.SHADOW_ETCHED_OUT</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a clipping rectangle</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height</td></tr></tbody></table><p>The <tt class="methodname">paint_box</tt>() method draws a box on
the specified <i class="parameter"><tt>window</tt></i> with the shadow type specified
by <i class="parameter"><tt>shadow_type</tt></i> and the location and size specified by
<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>,
<i class="parameter"><tt>width</tt></i> and <i class="parameter"><tt>height</tt></i>. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> it specifies a
clipping rectangle. The widget state specified by
<i class="parameter"><tt>state_type</tt></i> determines the graphics context to use
while drawing.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-flat-box"></a><h3>gtk.Style.paint_flat_box</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_flat_box</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>shadow_type</tt></b>:</span></td><td>a shadow type - one of:
<tt class="literal">gtk.SHADOW_NONE</tt>, <tt class="literal">gtk.SHADOW_IN</tt>,
<tt class="literal">gtk.SHADOW_OUT</tt>, <tt class="literal">gtk.SHADOW_ETCHED_IN</tt>,
<tt class="literal">gtk.SHADOW_ETCHED_OUT</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a clipping rectangle</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height</td></tr></tbody></table><p>The <tt class="methodname">paint_flat_box</tt>() method draws a
flat box (no shadow) on the specified <i class="parameter"><tt>window</tt></i> with
the location and size specified by <i class="parameter"><tt>x</tt></i>,
<i class="parameter"><tt>y</tt></i>, <i class="parameter"><tt>width</tt></i> and
<i class="parameter"><tt>height</tt></i>. If <i class="parameter"><tt>area</tt></i> is not
<tt class="literal">None</tt> it specifies a clipping rectangle. The style state
specified by <i class="parameter"><tt>state_type</tt></i> determines the graphics
context to use while drawing.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-check"></a><h3>gtk.Style.paint_check</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_check</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>shadow_type</tt></b>:</span></td><td>a shadow type - one of:
<tt class="literal">gtk.SHADOW_NONE</tt>, <tt class="literal">gtk.SHADOW_IN</tt>,
<tt class="literal">gtk.SHADOW_OUT</tt>, <tt class="literal">gtk.SHADOW_ETCHED_IN</tt>,
<tt class="literal">gtk.SHADOW_ETCHED_OUT</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a clipping rectangle</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height</td></tr></tbody></table><p>The <tt class="methodname">paint_check</tt>() method draws a check
on the specified <i class="parameter"><tt>window</tt></i> with the shadow type
specified by <i class="parameter"><tt>shadow_type</tt></i> and the location and size
specified by <i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>,
<i class="parameter"><tt>width</tt></i> and <i class="parameter"><tt>height</tt></i>. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> it specifies a
clipping rectangle. The widget state specified by
<i class="parameter"><tt>state_type</tt></i> determines the graphics context to use
while drawing.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-option"></a><h3>gtk.Style.paint_option</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_option</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>shadow_type</tt></b>:</span></td><td>a shadow type - one of:
<tt class="literal">gtk.SHADOW_NONE</tt>, <tt class="literal">gtk.SHADOW_IN</tt>,
<tt class="literal">gtk.SHADOW_OUT</tt>, <tt class="literal">gtk.SHADOW_ETCHED_IN</tt>,
<tt class="literal">gtk.SHADOW_ETCHED_OUT</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a clipping rectangle</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height</td></tr></tbody></table><p>The <tt class="methodname">paint_option</tt>() method draws an
option menu item on the specified <i class="parameter"><tt>window</tt></i> with the
shadow type specified by <i class="parameter"><tt>shadow_type</tt></i> and the location
and size specified by <i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>,
<i class="parameter"><tt>width</tt></i> and <i class="parameter"><tt>height</tt></i>. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> it specifies a
clipping rectangle. The widget state specified by
<i class="parameter"><tt>state_type</tt></i> determines the graphics context to use
while drawing.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-tab"></a><h3>gtk.Style.paint_tab</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_tab</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>shadow_type</tt></b>:</span></td><td>a shadow type - one of:
<tt class="literal">gtk.SHADOW_NONE</tt>, <tt class="literal">gtk.SHADOW_IN</tt>,
<tt class="literal">gtk.SHADOW_OUT</tt>, <tt class="literal">gtk.SHADOW_ETCHED_IN</tt>,
<tt class="literal">gtk.SHADOW_ETCHED_OUT</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a clipping rectangle</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height</td></tr></tbody></table><p>The <tt class="methodname">paint_tab</tt>() method draws a tab on
the specified <i class="parameter"><tt>window</tt></i> with the shadow type specified
by <i class="parameter"><tt>shadow_type</tt></i> and the location and size specified by
<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>,
<i class="parameter"><tt>width</tt></i> and <i class="parameter"><tt>height</tt></i>. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> it specifies a
clipping rectangle. The widget state specified by
<i class="parameter"><tt>state_type</tt></i> determines the graphics context to use
while drawing.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-shadow-gap"></a><h3>gtk.Style.paint_shadow_gap</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_shadow_gap</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>gap_side</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>gap_x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>gap_width</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>shadow_type</tt></b>:</span></td><td>a shadow type - one of:
<tt class="literal">gtk.SHADOW_NONE</tt>, <tt class="literal">gtk.SHADOW_IN</tt>,
<tt class="literal">gtk.SHADOW_OUT</tt>, <tt class="literal">gtk.SHADOW_ETCHED_IN</tt>,
<tt class="literal">gtk.SHADOW_ETCHED_OUT</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a clipping rectangle</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height</td></tr><tr><td><span class="term"><b class="parameter"><tt>gap_side</tt></b>:</span></td><td>a position - one of:
<tt class="literal">gtk.POS_LEFT</tt>, <tt class="literal">gtk.POS_RIGHT</tt>,
<tt class="literal">gtk.POS_TOP</tt>,
<tt class="literal">gtk.POS_BOTTOM</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>gap_x</tt></b>:</span></td><td>the x position of the gap</td></tr><tr><td><span class="term"><b class="parameter"><tt>gap_width</tt></b>:</span></td><td>the gap width</td></tr></tbody></table><p>The <tt class="methodname">paint_shadow_gap</tt>() method draws a
shadow with a gap on the specified <i class="parameter"><tt>window</tt></i> with the
shadow type specified by <i class="parameter"><tt>shadow_type</tt></i> and the location
and size specified by <i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>,
<i class="parameter"><tt>width</tt></i> and <i class="parameter"><tt>height</tt></i>. The gap
position and width is specified by <i class="parameter"><tt>gap_side</tt></i>,
<i class="parameter"><tt>gap_x</tt></i> and <i class="parameter"><tt>gap_width</tt></i>. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> it specifies a
clipping rectangle. The widget state specified by
<i class="parameter"><tt>state_type</tt></i> determines the graphics context to use
while drawing.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-box-gap"></a><h3>gtk.Style.paint_box_gap</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_box_gap</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>gap_side</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>gap_x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>gap_width</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>shadow_type</tt></b>:</span></td><td>a shadow type - one of:
<tt class="literal">gtk.SHADOW_NONE</tt>, <tt class="literal">gtk.SHADOW_IN</tt>,
<tt class="literal">gtk.SHADOW_OUT</tt>, <tt class="literal">gtk.SHADOW_ETCHED_IN</tt>,
<tt class="literal">gtk.SHADOW_ETCHED_OUT</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a clipping rectangle</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height</td></tr><tr><td><span class="term"><b class="parameter"><tt>gap_side</tt></b>:</span></td><td>a position - one of:
<tt class="literal">gtk.POS_LEFT</tt>, <tt class="literal">gtk.POS_RIGHT</tt>,
<tt class="literal">gtk.POS_TOP</tt>,
<tt class="literal">gtk.POS_BOTTOM</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>gap_x</tt></b>:</span></td><td>the x position of the gap</td></tr><tr><td><span class="term"><b class="parameter"><tt>gap_width</tt></b>:</span></td><td>the gap width</td></tr></tbody></table><p>The <tt class="methodname">paint_box_gap</tt>() method draws a box
with a gap on the specified <i class="parameter"><tt>window</tt></i> with the shadow
type specified by <i class="parameter"><tt>shadow_type</tt></i> and the location and
size specified by <i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>,
<i class="parameter"><tt>width</tt></i> and <i class="parameter"><tt>height</tt></i>. The gap
position and width is specified by <i class="parameter"><tt>gap_side</tt></i>,
<i class="parameter"><tt>gap_x</tt></i> and <i class="parameter"><tt>gap_width</tt></i>. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> it specifies a
clipping rectangle. The widget state specified by
<i class="parameter"><tt>state_type</tt></i> determines the graphics context to use
while drawing.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-extension"></a><h3>gtk.Style.paint_extension</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_extension</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>gap_side</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>shadow_type</tt></b>:</span></td><td>a shadow type - one of:
<tt class="literal">gtk.SHADOW_NONE</tt>, <tt class="literal">gtk.SHADOW_IN</tt>,
<tt class="literal">gtk.SHADOW_OUT</tt>, <tt class="literal">gtk.SHADOW_ETCHED_IN</tt>,
<tt class="literal">gtk.SHADOW_ETCHED_OUT</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a clipping rectangle</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height</td></tr><tr><td><span class="term"><b class="parameter"><tt>gap_side</tt></b>:</span></td><td>a position - one of:
<tt class="literal">gtk.POS_LEFT</tt>, <tt class="literal">gtk.POS_RIGHT</tt>,
<tt class="literal">gtk.POS_TOP</tt>,
<tt class="literal">gtk.POS_BOTTOM</tt></td></tr></tbody></table><p>The <tt class="methodname">paint_extension</tt>() method draws an
extension on the specified <i class="parameter"><tt>window</tt></i> with the shadow
type specified by <i class="parameter"><tt>shadow_type</tt></i> and the location and
size specified by <i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>,
<i class="parameter"><tt>width</tt></i> and <i class="parameter"><tt>height</tt></i>. The
extension position is specified by <i class="parameter"><tt>gap_side</tt></i>. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> it specifies a
clipping rectangle. The widget state specified by
<i class="parameter"><tt>state_type</tt></i> determines the graphics context to use
while drawing.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-focus"></a><h3>gtk.Style.paint_focus</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_focus</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a clipping rectangle</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height</td></tr></tbody></table><p>The <tt class="methodname">paint_focus</tt>() method draws a focus
indicator on the specified <i class="parameter"><tt>window</tt></i> with the location
and size specified by <i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>,
<i class="parameter"><tt>width</tt></i> and <i class="parameter"><tt>height</tt></i>. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> it specifies a
clipping rectangle. The widget state specified by
<i class="parameter"><tt>state_type</tt></i> determines the graphics context to use
while drawing.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-slider"></a><h3>gtk.Style.paint_slider</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_slider</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>orientation</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>shadow_type</tt></b>:</span></td><td>a shadow type - one of:
<tt class="literal">gtk.SHADOW_NONE</tt>, <tt class="literal">gtk.SHADOW_IN</tt>,
<tt class="literal">gtk.SHADOW_OUT</tt>, <tt class="literal">gtk.SHADOW_ETCHED_IN</tt>,
<tt class="literal">gtk.SHADOW_ETCHED_OUT</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a clipping rectangle</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height</td></tr><tr><td><span class="term"><b class="parameter"><tt>orientation</tt></b>:</span></td><td>a position - one of:
<tt class="literal">gtk.ORIENTATION_HORIZONTAL</tt> or
<tt class="literal">gtk.ORIENTATION_VERTICAL</tt></td></tr></tbody></table><p>The <tt class="methodname">paint_slider</tt>() method draws a
slider with the specified <i class="parameter"><tt>orientation</tt></i> on the
specified <i class="parameter"><tt>window</tt></i> with the shadow type specified by
<i class="parameter"><tt>shadow_type</tt></i> and the location and size specified by
<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>,
<i class="parameter"><tt>width</tt></i> and <i class="parameter"><tt>height</tt></i>. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> it specifies a
clipping rectangle. The widget state specified by
<i class="parameter"><tt>state_type</tt></i> determines the graphics context to use
while drawing.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-handle"></a><h3>gtk.Style.paint_handle</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_handle</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>shadow_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>orientation</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>shadow_type</tt></b>:</span></td><td>a shadow type - one of:
<tt class="literal">gtk.SHADOW_NONE</tt>, <tt class="literal">gtk.SHADOW_IN</tt>,
<tt class="literal">gtk.SHADOW_OUT</tt>, <tt class="literal">gtk.SHADOW_ETCHED_IN</tt>,
<tt class="literal">gtk.SHADOW_ETCHED_OUT</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a clipping rectangle</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height</td></tr><tr><td><span class="term"><b class="parameter"><tt>orientation</tt></b>:</span></td><td>a position - one of:
<tt class="literal">gtk.ORIENTATION_HORIZONTAL</tt> or
<tt class="literal">gtk.ORIENTATION_VERTICAL</tt></td></tr></tbody></table><p>The <tt class="methodname">paint_handle</tt>() method draws a
handle with the specified <i class="parameter"><tt>orientation</tt></i> on the
specified <i class="parameter"><tt>window</tt></i> with the shadow type specified by
<i class="parameter"><tt>shadow_type</tt></i> and the location and size specified by
<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>,
<i class="parameter"><tt>width</tt></i> and <i class="parameter"><tt>height</tt></i>. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> it specifies a
clipping rectangle. The widget state specified by
<i class="parameter"><tt>state_type</tt></i> determines the graphics context to use
while drawing.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-expander"></a><h3>gtk.Style.paint_expander</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_expander</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>expander_style</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a clipping rectangle</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>expander_style</tt></b>:</span></td><td>an expander style - one of:
<tt class="literal">gtk.EXPANDER_COLLAPSED</tt>,
<tt class="literal">gtk.EXPANDER_SEMI_COLLAPSED</tt>,
<tt class="literal">gtk.EXPANDER_SEMI_EXPANDED</tt> or
<tt class="literal">gtk.EXPANDER_EXPANDED</tt></td></tr></tbody></table><p>The <tt class="methodname">paint_expander</tt>() method draws an
expander with the specified <i class="parameter"><tt>expander_style</tt></i> on the
specified <i class="parameter"><tt>window</tt></i> at the location specified by
<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> it specifies a
clipping rectangle. The widget state specified by
<i class="parameter"><tt>state_type</tt></i> determines the graphics context to use
while drawing.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-layout"></a><h3>gtk.Style.paint_layout</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_layout</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>use_text</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>layout</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>use_text</tt></b>:</span></td><td>if <tt class="literal">TRUE</tt> use the text
graphics context for drawing</td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a clipping rectangle</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>layout</tt></b>:</span></td><td>a <tt class="classname">Pango.Layout</tt> object
containing the text to display</td></tr></tbody></table><p>The <tt class="methodname">paint_layout</tt>() method draws the
text in a <tt class="classname">pango.Layout</tt> specified by
<i class="parameter"><tt>layout</tt></i> on the specified <i class="parameter"><tt>window</tt></i>
at the location specified by <i class="parameter"><tt>x</tt></i> and
<i class="parameter"><tt>y</tt></i>. If text is <tt class="literal">TRUE</tt> use the text
graphics context of the style for drawing, otherwise use the fg graphics
context. If <i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> it
specifies a clipping rectangle. The widget state specified by
<i class="parameter"><tt>state_type</tt></i> determines the graphics context to use
while drawing.</p></div><div class="refsect2" lang="en"><a name="method-gtkstyle--paint-resize-grip"></a><h3>gtk.Style.paint_resize_grip</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_resize_grip</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>state_type</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>edge</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>window</tt></b>:</span></td><td>a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>state_type</tt></b>:</span></td><td>a widget state</td></tr><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a clipping rectangle</td></tr><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>a detail string</td></tr><tr><td><span class="term"><b class="parameter"><tt>edge</tt></b>:</span></td><td>the edge in which to draw the resize grip,
currently only <tt class="literal">gtk.WINDOW_EDGE_SOUTH_EAST</tt> is
implemented</td></tr><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x location</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y location</td></tr><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height</td></tr></tbody></table><p>The <tt class="methodname">paint_resize_grip</tt>() method draws a
resize grip at the specified <i class="parameter"><tt>edge</tt></i> on the specified
<i class="parameter"><tt>window</tt></i> with the location and size specified by
<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>,
<i class="parameter"><tt>width</tt></i> and <i class="parameter"><tt>height</tt></i>. If
<i class="parameter"><tt>area</tt></i> is not <tt class="literal">None</tt> it specifies a
clipping rectangle. The widget state specified by
<i class="parameter"><tt>state_type</tt></i> determines the graphics context to use
while drawing. Currently the grip can only be drawn at the
<tt class="literal">gtk.WINDOW_EDGE_SOUTH_EAST</tt> (lower right) edge.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtkstatusbar.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="class-gtktable.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.Statusbar</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">gtk.Table</td></tr></table></div></body></html>