This file is indexed.

/usr/share/gtk-doc/html/pygtk/class-gtkstyle.html is in python-gtk2-doc 2.24.0-4ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.Style</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><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="prev" href="class-gtkstatusicon.html" title="gtk.StatusIcon"><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-gtkstatusicon.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" title="gtk.Style"><a name="class-gtkstyle"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.Style</h2><p>gtk.Style — an object that hold style information for widgets</p></div><div class="refsect1" title="Synopsis"><a name="id3915080"></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"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
<code class="constructorsynopsis">    <span class="methodname"><a class="link" 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 class="link" 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 class="link" href="class-gtkstyle.html#method-gtkstyle--attach" title="gtk.Style.attach">attach</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" 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 class="link" href="class-gtkstyle.html#method-gtkstyle--set-background" title="gtk.Style.set_background">set_background</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" 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"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>set_bg</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" 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"><strong class="parameter"><code>stock_id</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--lookup-color" title="gtk.Style.lookup_color">lookup_color</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>color_name</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--render-icon" title="gtk.Style.render_icon">render_icon</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>source</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>direction</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--paint-hline" title="gtk.Style.paint_hline">paint_hline</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x1</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x2</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--paint-vline" title="gtk.Style.paint_vline">paint_vline</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y1</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y2</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--paint-shadow" title="gtk.Style.paint_shadow">paint_shadow</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--paint-polygon" title="gtk.Style.paint_polygon">paint_polygon</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>points</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>fill</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--paint-arrow" title="gtk.Style.paint_arrow">paint_arrow</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>arrow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>fill</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--paint-diamond" title="gtk.Style.paint_diamond">paint_diamond</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--paint-box" title="gtk.Style.paint_box">paint_box</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" 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"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--paint-check" title="gtk.Style.paint_check">paint_check</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--paint-option" title="gtk.Style.paint_option">paint_option</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--paint-tab" title="gtk.Style.paint_tab">paint_tab</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" 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"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>gap_side</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>gap_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>gap_width</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" 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"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>gap_side</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>gap_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>gap_width</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--paint-extension" title="gtk.Style.paint_extension">paint_extension</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>gap_side</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--paint-focus" title="gtk.Style.paint_focus">paint_focus</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--paint-slider" title="gtk.Style.paint_slider">paint_slider</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>orientation</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--paint-handle" title="gtk.Style.paint_handle">paint_handle</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>orientation</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--paint-expander" title="gtk.Style.paint_expander">paint_expander</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>expander_style</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkstyle.html#method-gtkstyle--paint-layout" title="gtk.Style.paint_layout">paint_layout</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>layout</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" 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"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>edge</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="id3918572"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
  +-- <a class="link" href="class-gtkstyle.html" title="gtk.Style">gtk.Style</a>
</pre></div><div class="refsect1" title="Attributes"><a name="attributes-gtkstyle"></a><h2>Attributes</h2><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Even though the following attributes that are arrays of <a class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></a>,
      <a class="link" href="class-gdkgc.html" title="gtk.gdk.GC"><code class="classname">gtk.gdk.GC</code></a>
      or <a class="link" href="class-gdkpixmap.html" title="gtk.gdk.Pixmap"><code class="classname">gtk.gdk.Pixmap</code></a>
      objects are read-only, the individual array items are
      read-write.</p></div><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 width="1in"><col width="1in"><col width="4in"></colgroup><tbody><tr valign="top"><td valign="top">"fg"</td><td valign="top">Read</td><td valign="top">An array of <a class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></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 class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></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 class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></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 class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></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 class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></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 class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></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 class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></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 class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></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-Write</td><td valign="top">A <a class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></a> that is
used for the black color.</td></tr><tr valign="top"><td valign="top">"white"</td><td valign="top">Read-Write</td><td valign="top">A <a class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></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 <code class="classname">pango.FontDescription</code> 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 class="link" href="class-gdkgc.html" title="gtk.gdk.GC"><code class="classname">gtk.gdk.GC</code></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 class="link" href="class-gdkgc.html" title="gtk.gdk.GC"><code class="classname">gtk.gdk.GC</code></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 class="link" href="class-gdkgc.html" title="gtk.gdk.GC"><code class="classname">gtk.gdk.GC</code></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 class="link" href="class-gdkgc.html" title="gtk.gdk.GC"><code class="classname">gtk.gdk.GC</code></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 class="link" href="class-gdkgc.html" title="gtk.gdk.GC"><code class="classname">gtk.gdk.GC</code></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 class="link" href="class-gdkgc.html" title="gtk.gdk.GC"><code class="classname">gtk.gdk.GC</code></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 class="link" href="class-gdkgc.html" title="gtk.gdk.GC"><code class="classname">gtk.gdk.GC</code></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 class="link" href="class-gdkgc.html" title="gtk.gdk.GC"><code class="classname">gtk.gdk.GC</code></a>) for drawing
using the anti-aliased text colors.</td></tr><tr valign="top"><td valign="top">"black_gc"</td><td valign="top">Read-Write</td><td valign="top">A graphics context (<a class="link" href="class-gdkgc.html" title="gtk.gdk.GC"><code class="classname">gtk.gdk.GC</code></a>) for drawing
using the black color.</td></tr><tr valign="top"><td valign="top">"white_gc"</td><td valign="top">Read-Write</td><td valign="top">A graphics context (<a class="link" href="class-gdkgc.html" title="gtk.gdk.GC"><code class="classname">gtk.gdk.GC</code></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 class="link" href="class-gdkpixmap.html" title="gtk.gdk.Pixmap"><code class="classname">gtk.gdk.Pixmap</code></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" title="gtk.Style Signal Prototypes"><a name="signal-prototypes-gtkstyle"></a><h2>gtk.Style Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term">"<a class="link" href="class-gtkstyle.html#signal-gtkstyle--realize" title='The "realize" gtk.Style Signal'>realize</a></span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>style</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtkstyle.html#signal-gtkstyle--unrealize" title='The "unrealize" gtk.Style Signal'>unrealize</a></span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>style</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr></tbody></table></div><div class="refsect1" title="Description"><a name="id3919423"></a><h2>Description</h2><p>A <a class="link" href="class-gtkstyle.html" title="gtk.Style"><code class="classname">gtk.Style</code></a> object
encapsulates the information that provides the look and feel for a widget.
Each <a class="link" href="class-gtkwidget.html" title="gtk.Widget"><code class="classname">gtk.Widget</code></a> has an
associated <a class="link" href="class-gtkstyle.html" title="gtk.Style"><code class="classname">gtk.Style</code></a> object that
is used when rendering that widget. Usually the <a class="link" href="class-gtkstyle.html" title="gtk.Style"><code class="classname">gtk.Style</code></a> for a
widget is the same as the default style that is set by GTK and modified the
theme engine. A <a class="link" href="class-gtkstyle.html" title="gtk.Style"><code class="classname">gtk.Style</code></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><p><span class="term"><code class="literal">gtk.STATE_NORMAL</code></span></p></td><td>The state of a sensitive widget that is not active and
does not have the focus</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STATE_ACTIVE</code></span></p></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><p><span class="term"><code class="literal">gtk.STATE_PRELIGHT</code></span></p></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><p><span class="term"><code class="literal">gtk.STATE_SELECTED</code></span></p></td><td>The state of a widget that is selected e.g. selected text
in a <a class="link" href="class-gtkentry.html" title="gtk.Entry"><code class="classname">gtk.Entry</code></a>
widget</td></tr><tr><td><p><span class="term"><code class="literal">gtk.STATE_INSENSITIVE</code></span></p></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 class="link" href="class-gtkstyle.html" title="gtk.Style"><code class="classname">gtk.Style</code></a> contains
the read-only attributes described in the above <a class="link" href="class-gtkstyle.html#attributes-gtkstyle" title="Attributes">section</a>.</p><p>Usually applications should not need to use or modify the <a class="link" href="class-gtkstyle.html" title="gtk.Style"><code class="classname">gtk.Style</code></a> of their
widgets.</p></div><div class="refsect1" title="Constructor"><a name="constructor-gtkstyle"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.Style</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new <a class="link" href="class-gtkstyle.html" title="gtk.Style"><code class="classname">gtk.Style</code></a>
object</td></tr></tbody></table><p>Creates a new <a class="link" href="class-gtkstyle.html" title="gtk.Style"><code class="classname">gtk.Style</code></a>
object.</p></div><div class="refsect1" title="Methods"><a name="id3919685"></a><h2>Methods</h2><div class="refsect2" title="gtk.Style.copy"><a name="method-gtkstyle--copy"></a><h3>gtk.Style.copy</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">copy</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a copy of the <a class="link" href="class-gtkstyle.html" title="gtk.Style"><code class="classname">gtk.Style</code></a>
object</td></tr></tbody></table><p>The <code class="methodname">copy</code>() method returns a copy of the
style object.</p></div><div class="refsect2" title="gtk.Style.attach"><a name="method-gtkstyle--attach"></a><h3>gtk.Style.attach</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">attach</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkwindow.html" title="gtk.Window"><code class="classname">gtk.Window</code></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-gtkstyle.html" title="gtk.Style"><code class="classname">gtk.Style</code></a>
object</td></tr></tbody></table><p>The <code class="methodname">attach</code>() method adapts a style to
the specified <em class="parameter"><code>window</code></em>. This process allocates the
colors and creates the graphics contexts for the style specializing them to
a particular visual and colormap. A new <a class="link" href="class-gtkstyle.html" title="gtk.Style"><code class="classname">gtk.Style</code></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" title="gtk.Style.detach"><a name="method-gtkstyle--detach"></a><h3>gtk.Style.detach</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">detach</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="methodname">detach</code>() method detaches the style and frees its resources if it is no longer attached.</p></div><div class="refsect2" title="gtk.Style.set_background"><a name="method-gtkstyle--set-background"></a><h3>gtk.Style.set_background</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_background</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr></tbody></table><p>The <code class="methodname">set_background</code>() method sets the
background of <em class="parameter"><code>window</code></em> to the background color or
pixmap of the style for the widget state specified by
<em class="parameter"><code>state_type</code></em>.</p></div><div class="refsect2" title="gtk.Style.apply_default_background"><a name="method-gtkstyle--apply-default-background"></a><h3>gtk.Style.apply_default_background</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">apply_default_background</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>set_bg</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>set_bg</code></strong> :</span></p></td><td>if <code class="literal">True</code> use the bg_pixmap
for the widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>the widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>the clipping area</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height</td></tr></tbody></table><p>The <code class="methodname">apply_default_background</code>() method
sets the background of the specified <em class="parameter"><code>window</code></em> in the
area specified by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>. The
background color is derived from the bg_gc of the style with the state
specified by <em class="parameter"><code>state_type</code></em>. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> it specifies a
clipping area for the application of the background.</p></div><div class="refsect2" title="gtk.Style.lookup_icon_set"><a name="method-gtkstyle--lookup-icon-set"></a><h3>gtk.Style.lookup_icon_set</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">lookup_icon_set</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>stock_id</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>stock_id</code></strong> :</span></p></td><td>a stock ID</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-gtkiconset.html" title="gtk.IconSet"><code class="classname">gtk.IconSet</code></a></td></tr></tbody></table><p>The <code class="methodname">lookup_icon_set</code>() method looks in
the <a class="link" href="class-gtkiconfactory.html" title="gtk.IconFactory"><code class="classname">gtk.IconFactory</code></a>
list associated with the style and the default icon factory for the stock
icon specified by <em class="parameter"><code>stock_id</code></em>. If the stock icon iconset
is found it is returned.</p></div><div class="refsect2" title="gtk.Style.lookup_color"><a name="method-gtkstyle--lookup-color"></a><h3>gtk.Style.lookup_color</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">lookup_color</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>color_name</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>color_name</code></strong> :</span></p></td><td>the name of the logical color to look up</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></a>
	  on succes, <code class="literal">None</code> otherwise.</td></tr></tbody></table><p>
	The <code class="methodname">lookup_color</code>() method looks up <em class="parameter"><code>color_name</code></em>
	in the style's logical color mappings, filling in color and returning <code class="literal">True</code>
	if found, otherwise returning <code class="literal">Flase</code>.
	Do not cache the found mapping, because it depends on the GtkStyle and might
	change when a theme switch occurs.
      </p></div><div class="refsect2" title="gtk.Style.render_icon"><a name="method-gtkstyle--render-icon"></a><h3>gtk.Style.render_icon</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">render_icon</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>source</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>direction</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span><span class="initializer">=None</span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>source</code></strong> :</span></p></td><td>the <a class="link" href="class-gtkiconsource.html" title="gtk.IconSource"><code class="classname">gtk.IconSource</code></a>
specifying the icon to render</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>direction</code></strong> :</span></p></td><td>a text direction</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>size</code></strong> :</span></p></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><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a style detail</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><code class="classname">gtk.gdk.Pixbuf</code></a></td></tr></tbody></table><p>The <code class="methodname">render_icon</code>() method renders the
icon specified by <em class="parameter"><code>source</code></em> at the specified
<em class="parameter"><code>size</code></em> for the specified widget
<em class="parameter"><code>state</code></em> according to the given parameters and returns
the result in a <a class="link" href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><code class="classname">gtk.gdk.Pixbuf</code></a>.</p></div><div class="refsect2" title="gtk.Style.paint_hline"><a name="method-gtkstyle--paint-hline"></a><h3>gtk.Style.paint_hline</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_hline</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x1</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x2</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>the rectangle that clips the
output</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x1</code></strong> :</span></p></td><td>the starting x coordinate</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x2</code></strong> :</span></p></td><td>the ending x coordinate</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y coordinate</td></tr></tbody></table><p>The <code class="methodname">paint_hline</code>() method draws a
horizontal line from (<em class="parameter"><code>x1</code></em>, <em class="parameter"><code>y</code></em>)
to (<em class="parameter"><code>x2</code></em>, <em class="parameter"><code>y</code></em>) in
<em class="parameter"><code>window</code></em> using the specified
<em class="parameter"><code>state_type</code></em> of the style. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> the line is
clipped by the rectangle specified by <em class="parameter"><code>area</code></em>.</p></div><div class="refsect2" title="gtk.Style.paint_vline"><a name="method-gtkstyle--paint-vline"></a><h3>gtk.Style.paint_vline</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_vline</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y1</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y2</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>the rectangle to which the output is
clipped</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y1</code></strong> :</span></p></td><td>the starting y coordinate</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y2</code></strong> :</span></p></td><td>the ending y coordinate</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x coordinate</td></tr></tbody></table><p>The <code class="methodname">paint_vline</code>() method draws a
vertical line from (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y1</code></em>) to
(<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y2</code></em>) in
<em class="parameter"><code>window</code></em> using the specified
<em class="parameter"><code>state_type</code></em> of the style. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> the line is
clipped by the rectangle specified by <em class="parameter"><code>area</code></em>.</p></div><div class="refsect2" title="gtk.Style.paint_shadow"><a name="method-gtkstyle--paint-shadow"></a><h3>gtk.Style.paint_shadow</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_shadow</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a>*</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>shadow_type</code></strong> :</span></p></td><td>a type of shadow - one of:
<code class="literal">gtk.SHADOW_NONE</code>, <code class="literal">gtk.SHADOW_IN</code>,
<code class="literal">gtk.SHADOW_OUT</code>, <code class="literal">gtk.SHADOW_ETCHED_IN</code>,
<code class="literal">gtk.SHADOW_ETCHED_OUT</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>the rectangle to which the output is
clipped</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height</td></tr></tbody></table><p>The <code class="methodname">paint_shadow</code>() method draws a
shadow of the specified <em class="parameter"><code>shadow_type</code></em> on the specified
<em class="parameter"><code>window</code></em> with the size specified by
<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> the shadow is
clipped to the rectangle' area. <em class="parameter"><code>state_type</code></em> specifies
the style state to use for drawing.</p></div><div class="refsect2" title="gtk.Style.paint_polygon"><a name="method-gtkstyle--paint-polygon"></a><h3>gtk.Style.paint_polygon</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_polygon</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>points</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>fill</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>shadow_type</code></strong> :</span></p></td><td>a shadow type - one of:
<code class="literal">gtk.SHADOW_NONE</code>, <code class="literal">gtk.SHADOW_IN</code>,
<code class="literal">gtk.SHADOW_OUT</code>, <code class="literal">gtk.SHADOW_ETCHED_IN</code>,
<code class="literal">gtk.SHADOW_ETCHED_OUT</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>a clipping rectangle</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>points</code></strong> :</span></p></td><td>a list or tuple containing point (x, y)
tuples</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>fill</code></strong> :</span></p></td><td>if <code class="literal">True</code> the polygon should
be filled</td></tr></tbody></table><p>The <code class="methodname">paint_polygon</code>() method draws a
polygon on the specified <em class="parameter"><code>window</code></em> with the shadow type
specified by <em class="parameter"><code>shadow_type</code></em> connecting the points
specified by <em class="parameter"><code>points</code></em>. If <em class="parameter"><code>area</code></em>
is not <code class="literal">None</code> it specifies a clipping rectangle. The style
state specified by <em class="parameter"><code>state_type</code></em> determines the graphics
context to use while drawing.</p></div><div class="refsect2" title="gtk.Style.paint_arrow"><a name="method-gtkstyle--paint-arrow"></a><h3>gtk.Style.paint_arrow</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_arrow</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>arrow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>fill</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>the widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>shadow_type</code></strong> :</span></p></td><td>a shadow type - one of:
<code class="literal">gtk.SHADOW_NONE</code>, <code class="literal">gtk.SHADOW_IN</code>,
<code class="literal">gtk.SHADOW_OUT</code>, <code class="literal">gtk.SHADOW_ETCHED_IN</code>,
<code class="literal">gtk.SHADOW_ETCHED_OUT</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>a clipping rectangle</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>arrow_type</code></strong> :</span></p></td><td>an arrow type - one of:
<code class="literal">gtk.ARROW_UP</code>, <code class="literal">gtk.ARROW_DOWN</code>,
<code class="literal">gtk.ARROW_LEFT</code>,
<code class="literal">gtk.ARROW_RIGHT</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>fill</code></strong> :</span></p></td><td>if <code class="literal">True</code> the arrow should be
filled</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height</td></tr></tbody></table><p>The<code class="methodname"> paint_arrow</code>() method draws an arrow
of the type specified by <em class="parameter"><code>arrow_type</code></em> on the specified
<em class="parameter"><code>window</code></em> with the shadow type specified by
<em class="parameter"><code>shadow_type</code></em> with the location and size specified by
<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> it specifies a
clipping rectangle. The widget state specified by
<em class="parameter"><code>state_type</code></em> determines the graphics context to use
while drawing.</p></div><div class="refsect2" title="gtk.Style.paint_diamond"><a name="method-gtkstyle--paint-diamond"></a><h3>gtk.Style.paint_diamond</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_diamond</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>shadow_type</code></strong> :</span></p></td><td>a shadow type - one of:
<code class="literal">gtk.SHADOW_NONE</code>, <code class="literal">gtk.SHADOW_IN</code>,
<code class="literal">gtk.SHADOW_OUT</code>, <code class="literal">gtk.SHADOW_ETCHED_IN</code>,
<code class="literal">gtk.SHADOW_ETCHED_OUT</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>a clipping rectangle</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height</td></tr></tbody></table><p>The <code class="methodname">paint_diamond</code>() method draws a
diamond on the specified <em class="parameter"><code>window</code></em> with the shadow type
specified by <em class="parameter"><code>shadow_type</code></em> and the location and size
specified by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> it specifies a
clipping rectangle. The widget state specified by
<em class="parameter"><code>state_type</code></em> determines the graphics context to use
while drawing.</p></div><div class="refsect2" title="gtk.Style.paint_box"><a name="method-gtkstyle--paint-box"></a><h3>gtk.Style.paint_box</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_box</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>shadow_type</code></strong> :</span></p></td><td>a shadow type - one of:
<code class="literal">gtk.SHADOW_NONE</code>, <code class="literal">gtk.SHADOW_IN</code>,
<code class="literal">gtk.SHADOW_OUT</code>, <code class="literal">gtk.SHADOW_ETCHED_IN</code>,
<code class="literal">gtk.SHADOW_ETCHED_OUT</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>a clipping rectangle</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height</td></tr></tbody></table><p>The <code class="methodname">paint_box</code>() method draws a box on
the specified <em class="parameter"><code>window</code></em> with the shadow type specified
by <em class="parameter"><code>shadow_type</code></em> and the location and size specified by
<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> it specifies a
clipping rectangle. The widget state specified by
<em class="parameter"><code>state_type</code></em> determines the graphics context to use
while drawing.</p></div><div class="refsect2" title="gtk.Style.paint_flat_box"><a name="method-gtkstyle--paint-flat-box"></a><h3>gtk.Style.paint_flat_box</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_flat_box</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>shadow_type</code></strong> :</span></p></td><td>a shadow type - one of:
<code class="literal">gtk.SHADOW_NONE</code>, <code class="literal">gtk.SHADOW_IN</code>,
<code class="literal">gtk.SHADOW_OUT</code>, <code class="literal">gtk.SHADOW_ETCHED_IN</code>,
<code class="literal">gtk.SHADOW_ETCHED_OUT</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>a clipping rectangle</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height</td></tr></tbody></table><p>The <code class="methodname">paint_flat_box</code>() method draws a
flat box (no shadow) on the specified <em class="parameter"><code>window</code></em> with
the location and size specified by <em class="parameter"><code>x</code></em>,
<em class="parameter"><code>y</code></em>, <em class="parameter"><code>width</code></em> and
<em class="parameter"><code>height</code></em>. If <em class="parameter"><code>area</code></em> is not
<code class="literal">None</code> it specifies a clipping rectangle. The style state
specified by <em class="parameter"><code>state_type</code></em> determines the graphics
context to use while drawing.</p></div><div class="refsect2" title="gtk.Style.paint_check"><a name="method-gtkstyle--paint-check"></a><h3>gtk.Style.paint_check</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_check</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>shadow_type</code></strong> :</span></p></td><td>a shadow type - one of:
<code class="literal">gtk.SHADOW_NONE</code>, <code class="literal">gtk.SHADOW_IN</code>,
<code class="literal">gtk.SHADOW_OUT</code>, <code class="literal">gtk.SHADOW_ETCHED_IN</code>,
<code class="literal">gtk.SHADOW_ETCHED_OUT</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>a clipping rectangle</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height</td></tr></tbody></table><p>The <code class="methodname">paint_check</code>() method draws a check
on the specified <em class="parameter"><code>window</code></em> with the shadow type
specified by <em class="parameter"><code>shadow_type</code></em> and the location and size
specified by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> it specifies a
clipping rectangle. The widget state specified by
<em class="parameter"><code>state_type</code></em> determines the graphics context to use
while drawing.</p></div><div class="refsect2" title="gtk.Style.paint_option"><a name="method-gtkstyle--paint-option"></a><h3>gtk.Style.paint_option</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_option</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>shadow_type</code></strong> :</span></p></td><td>a shadow type - one of:
<code class="literal">gtk.SHADOW_NONE</code>, <code class="literal">gtk.SHADOW_IN</code>,
<code class="literal">gtk.SHADOW_OUT</code>, <code class="literal">gtk.SHADOW_ETCHED_IN</code>,
<code class="literal">gtk.SHADOW_ETCHED_OUT</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>a clipping rectangle</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height</td></tr></tbody></table><p>The <code class="methodname">paint_option</code>() method draws an
option menu item on the specified <em class="parameter"><code>window</code></em> with the
shadow type specified by <em class="parameter"><code>shadow_type</code></em> and the location
and size specified by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> it specifies a
clipping rectangle. The widget state specified by
<em class="parameter"><code>state_type</code></em> determines the graphics context to use
while drawing.</p></div><div class="refsect2" title="gtk.Style.paint_tab"><a name="method-gtkstyle--paint-tab"></a><h3>gtk.Style.paint_tab</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_tab</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>shadow_type</code></strong> :</span></p></td><td>a shadow type - one of:
<code class="literal">gtk.SHADOW_NONE</code>, <code class="literal">gtk.SHADOW_IN</code>,
<code class="literal">gtk.SHADOW_OUT</code>, <code class="literal">gtk.SHADOW_ETCHED_IN</code>,
<code class="literal">gtk.SHADOW_ETCHED_OUT</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>a clipping rectangle</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height</td></tr></tbody></table><p>The <code class="methodname">paint_tab</code>() method draws a tab on
the specified <em class="parameter"><code>window</code></em> with the shadow type specified
by <em class="parameter"><code>shadow_type</code></em> and the location and size specified by
<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> it specifies a
clipping rectangle. The widget state specified by
<em class="parameter"><code>state_type</code></em> determines the graphics context to use
while drawing.</p></div><div class="refsect2" title="gtk.Style.paint_shadow_gap"><a name="method-gtkstyle--paint-shadow-gap"></a><h3>gtk.Style.paint_shadow_gap</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_shadow_gap</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>gap_side</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>gap_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>gap_width</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>shadow_type</code></strong> :</span></p></td><td>a shadow type - one of:
<code class="literal">gtk.SHADOW_NONE</code>, <code class="literal">gtk.SHADOW_IN</code>,
<code class="literal">gtk.SHADOW_OUT</code>, <code class="literal">gtk.SHADOW_ETCHED_IN</code>,
<code class="literal">gtk.SHADOW_ETCHED_OUT</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>a clipping rectangle</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>gap_side</code></strong> :</span></p></td><td>a position - one of:
<code class="literal">gtk.POS_LEFT</code>, <code class="literal">gtk.POS_RIGHT</code>,
<code class="literal">gtk.POS_TOP</code>,
<code class="literal">gtk.POS_BOTTOM</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>gap_x</code></strong> :</span></p></td><td>the x position of the gap</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>gap_width</code></strong> :</span></p></td><td>the gap width</td></tr></tbody></table><p>The <code class="methodname">paint_shadow_gap</code>() method draws a
shadow with a gap on the specified <em class="parameter"><code>window</code></em> with the
shadow type specified by <em class="parameter"><code>shadow_type</code></em> and the location
and size specified by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>. The gap
position and width is specified by <em class="parameter"><code>gap_side</code></em>,
<em class="parameter"><code>gap_x</code></em> and <em class="parameter"><code>gap_width</code></em>. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> it specifies a
clipping rectangle. The widget state specified by
<em class="parameter"><code>state_type</code></em> determines the graphics context to use
while drawing.</p></div><div class="refsect2" title="gtk.Style.paint_box_gap"><a name="method-gtkstyle--paint-box-gap"></a><h3>gtk.Style.paint_box_gap</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_box_gap</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>gap_side</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>gap_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>gap_width</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>shadow_type</code></strong> :</span></p></td><td>a shadow type - one of:
<code class="literal">gtk.SHADOW_NONE</code>, <code class="literal">gtk.SHADOW_IN</code>,
<code class="literal">gtk.SHADOW_OUT</code>, <code class="literal">gtk.SHADOW_ETCHED_IN</code>,
<code class="literal">gtk.SHADOW_ETCHED_OUT</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>a clipping rectangle</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>gap_side</code></strong> :</span></p></td><td>a position - one of:
<code class="literal">gtk.POS_LEFT</code>, <code class="literal">gtk.POS_RIGHT</code>,
<code class="literal">gtk.POS_TOP</code>,
<code class="literal">gtk.POS_BOTTOM</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>gap_x</code></strong> :</span></p></td><td>the x position of the gap</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>gap_width</code></strong> :</span></p></td><td>the gap width</td></tr></tbody></table><p>The <code class="methodname">paint_box_gap</code>() method draws a box
with a gap on the specified <em class="parameter"><code>window</code></em> with the shadow
type specified by <em class="parameter"><code>shadow_type</code></em> and the location and
size specified by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>. The gap
position and width is specified by <em class="parameter"><code>gap_side</code></em>,
<em class="parameter"><code>gap_x</code></em> and <em class="parameter"><code>gap_width</code></em>. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> it specifies a
clipping rectangle. The widget state specified by
<em class="parameter"><code>state_type</code></em> determines the graphics context to use
while drawing.</p></div><div class="refsect2" title="gtk.Style.paint_extension"><a name="method-gtkstyle--paint-extension"></a><h3>gtk.Style.paint_extension</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_extension</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>gap_side</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>shadow_type</code></strong> :</span></p></td><td>a shadow type - one of:
<code class="literal">gtk.SHADOW_NONE</code>, <code class="literal">gtk.SHADOW_IN</code>,
<code class="literal">gtk.SHADOW_OUT</code>, <code class="literal">gtk.SHADOW_ETCHED_IN</code>,
<code class="literal">gtk.SHADOW_ETCHED_OUT</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>a clipping rectangle</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>gap_side</code></strong> :</span></p></td><td>a position - one of:
<code class="literal">gtk.POS_LEFT</code>, <code class="literal">gtk.POS_RIGHT</code>,
<code class="literal">gtk.POS_TOP</code>,
<code class="literal">gtk.POS_BOTTOM</code></td></tr></tbody></table><p>The <code class="methodname">paint_extension</code>() method draws an
extension on the specified <em class="parameter"><code>window</code></em> with the shadow
type specified by <em class="parameter"><code>shadow_type</code></em> and the location and
size specified by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>. The
extension position is specified by <em class="parameter"><code>gap_side</code></em>. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> it specifies a
clipping rectangle. The widget state specified by
<em class="parameter"><code>state_type</code></em> determines the graphics context to use
while drawing.</p></div><div class="refsect2" title="gtk.Style.paint_focus"><a name="method-gtkstyle--paint-focus"></a><h3>gtk.Style.paint_focus</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_focus</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>a clipping rectangle</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height</td></tr></tbody></table><p>The <code class="methodname">paint_focus</code>() method draws a focus
indicator on the specified <em class="parameter"><code>window</code></em> with the location
and size specified by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> it specifies a
clipping rectangle. The widget state specified by
<em class="parameter"><code>state_type</code></em> determines the graphics context to use
while drawing.</p></div><div class="refsect2" title="gtk.Style.paint_slider"><a name="method-gtkstyle--paint-slider"></a><h3>gtk.Style.paint_slider</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_slider</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>orientation</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>shadow_type</code></strong> :</span></p></td><td>a shadow type - one of:
<code class="literal">gtk.SHADOW_NONE</code>, <code class="literal">gtk.SHADOW_IN</code>,
<code class="literal">gtk.SHADOW_OUT</code>, <code class="literal">gtk.SHADOW_ETCHED_IN</code>,
<code class="literal">gtk.SHADOW_ETCHED_OUT</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>a clipping rectangle</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>orientation</code></strong> :</span></p></td><td>a position - one of:
<code class="literal">gtk.ORIENTATION_HORIZONTAL</code> or
<code class="literal">gtk.ORIENTATION_VERTICAL</code></td></tr></tbody></table><p>The <code class="methodname">paint_slider</code>() method draws a
slider with the specified <em class="parameter"><code>orientation</code></em> on the
specified <em class="parameter"><code>window</code></em> with the shadow type specified by
<em class="parameter"><code>shadow_type</code></em> and the location and size specified by
<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> it specifies a
clipping rectangle. The widget state specified by
<em class="parameter"><code>state_type</code></em> determines the graphics context to use
while drawing.</p></div><div class="refsect2" title="gtk.Style.paint_handle"><a name="method-gtkstyle--paint-handle"></a><h3>gtk.Style.paint_handle</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_handle</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>shadow_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>orientation</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>shadow_type</code></strong> :</span></p></td><td>a shadow type - one of:
<code class="literal">gtk.SHADOW_NONE</code>, <code class="literal">gtk.SHADOW_IN</code>,
<code class="literal">gtk.SHADOW_OUT</code>, <code class="literal">gtk.SHADOW_ETCHED_IN</code>,
<code class="literal">gtk.SHADOW_ETCHED_OUT</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>a clipping rectangle</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>orientation</code></strong> :</span></p></td><td>a position - one of:
<code class="literal">gtk.ORIENTATION_HORIZONTAL</code> or
<code class="literal">gtk.ORIENTATION_VERTICAL</code></td></tr></tbody></table><p>The <code class="methodname">paint_handle</code>() method draws a
handle with the specified <em class="parameter"><code>orientation</code></em> on the
specified <em class="parameter"><code>window</code></em> with the shadow type specified by
<em class="parameter"><code>shadow_type</code></em> and the location and size specified by
<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> it specifies a
clipping rectangle. The widget state specified by
<em class="parameter"><code>state_type</code></em> determines the graphics context to use
while drawing.</p></div><div class="refsect2" title="gtk.Style.paint_expander"><a name="method-gtkstyle--paint-expander"></a><h3>gtk.Style.paint_expander</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_expander</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>expander_style</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>a clipping rectangle</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>expander_style</code></strong> :</span></p></td><td>an expander style - one of:
<code class="literal">gtk.EXPANDER_COLLAPSED</code>,
<code class="literal">gtk.EXPANDER_SEMI_COLLAPSED</code>,
<code class="literal">gtk.EXPANDER_SEMI_EXPANDED</code> or
<code class="literal">gtk.EXPANDER_EXPANDED</code></td></tr></tbody></table><p>The <code class="methodname">paint_expander</code>() method draws an
expander with the specified <em class="parameter"><code>expander_style</code></em> on the
specified <em class="parameter"><code>window</code></em> at the location specified by
<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> it specifies a
clipping rectangle. The widget state specified by
<em class="parameter"><code>state_type</code></em> determines the graphics context to use
while drawing.</p></div><div class="refsect2" title="gtk.Style.paint_layout"><a name="method-gtkstyle--paint-layout"></a><h3>gtk.Style.paint_layout</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_layout</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_text</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>layout</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>use_text</code></strong> :</span></p></td><td>if <code class="literal">True</code> use the text
graphics context for drawing</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>a clipping rectangle</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>layout</code></strong> :</span></p></td><td>a <code class="classname">Pango.Layout</code> object
containing the text to display</td></tr></tbody></table><p>The <code class="methodname">paint_layout</code>() method draws the
text in a <code class="classname">pango.Layout</code> specified by
<em class="parameter"><code>layout</code></em> on the specified <em class="parameter"><code>window</code></em>
at the location specified by <em class="parameter"><code>x</code></em> and
<em class="parameter"><code>y</code></em>. If text is <code class="literal">True</code> use the text
graphics context of the style for drawing, otherwise use the fg graphics
context. If <em class="parameter"><code>area</code></em> is not <code class="literal">None</code> it
specifies a clipping rectangle. The widget state specified by
<em class="parameter"><code>state_type</code></em> determines the graphics context to use
while drawing.</p></div><div class="refsect2" title="gtk.Style.paint_resize_grip"><a name="method-gtkstyle--paint-resize-grip"></a><h3>gtk.Style.paint_resize_grip</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">paint_resize_grip</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>window</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>state_type</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>area</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>widget</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>detail</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>edge</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>y</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>window</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkwindow.html" title="gtk.gdk.Window"><code class="classname">gtk.gdk.Window</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>state_type</code></strong> :</span></p></td><td>a widget state</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>area</code></strong> :</span></p></td><td>a clipping rectangle</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>widget</code></strong> :</span></p></td><td>a widget</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>detail</code></strong> :</span></p></td><td>a detail string</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>edge</code></strong> :</span></p></td><td>the edge in which to draw the resize grip,
currently only <code class="literal">gtk.WINDOW_EDGE_SOUTH_EAST</code> is
implemented</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>x</code></strong> :</span></p></td><td>the x location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>y</code></strong> :</span></p></td><td>the y location</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>width</code></strong> :</span></p></td><td>the width</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>height</code></strong> :</span></p></td><td>the height</td></tr></tbody></table><p>The <code class="methodname">paint_resize_grip</code>() method draws a
resize grip at the specified <em class="parameter"><code>edge</code></em> on the specified
<em class="parameter"><code>window</code></em> with the location and size specified by
<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>. If
<em class="parameter"><code>area</code></em> is not <code class="literal">None</code> it specifies a
clipping rectangle. The widget state specified by
<em class="parameter"><code>state_type</code></em> determines the graphics context to use
while drawing. Currently the grip can only be drawn at the
<code class="literal">gtk.WINDOW_EDGE_SOUTH_EAST</code> (lower right) edge.</p></div></div><div class="refsect1" title="Signals"><a name="id3930202"></a><h2>Signals</h2><div class="refsect2" title='The "realize" gtk.Style Signal'><a name="signal-gtkstyle--realize"></a><h3>The "realize" gtk.Style Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>style</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>style</code></em> :</span></p></td><td>the object which received the
          signal.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
          with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
          method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if any)</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This signal is available in GTK+ 2.4 and above.</p></div><p>Emitted when the style has been initialized for a particular
      colormap and depth. Connecting to this signal is probably seldom
      useful since most of the time applications and widgets only deal with
      styles that have been already realized.</p></div><div class="refsect2" title='The "unrealize" gtk.Style Signal'><a name="signal-gtkstyle--unrealize"></a><h3>The "unrealize" gtk.Style Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>style</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>style</code></em> :</span></p></td><td>the object which received the
          signal.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
          with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
          method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if any)</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This signal is available in GTK+ 2.4 and above.</p></div><p>Emitted when the aspects of the style specific to a particular
      colormap and depth are being cleaned up. A connection to this signal
      can be useful if a widget wants to cache objects like a <a class="link" href="class-gdkgc.html" title="gtk.gdk.GC"><code class="classname">gtk.gdk.GC</code></a> as
      object data on <a class="link" href="class-gtkstyle.html" title="gtk.Style"><code class="classname">gtk.Style</code></a>.
      This signal provides a convenient place to free such cached
      objects.</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-gtkstatusicon.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.StatusIcon </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>