1Gtk2::Style(3)        User Contributed Perl Documentation       Gtk2::Style(3)
2
3
4

NAME

6       Gtk2::Style
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::Style
11

METHODS

13   style = Gtk2::Style->new
14   $style->apply_default_background ($window, $set_bg, $state_type, $area, $x,
15       $y, $width, $height)
16           ·   $window (Gtk2::Gdk::Window)
17
18           ·   $set_bg (boolean)
19
20           ·   $state_type (Gtk2::StateType)
21
22           ·   $area (Gtk2::Gdk::Rectangle or undef)
23
24           ·   $x (integer)
25
26           ·   $y (integer)
27
28           ·   $width (integer)
29
30           ·   $height (integer)
31
32   style = $style->attach ($window)
33           ·   $window (Gtk2::Gdk::Window)
34
35   boolean = $style->attached
36   $style->set_background ($window, $state_type)
37           ·   $window (Gtk2::Gdk::Window)
38
39           ·   $state_type (Gtk2::StateType)
40
41   color = $style->base ($state)
42           ·   $state (Gtk2::StateType)
43
44   gc = $style->base_gc ($state)
45           ·   $state (Gtk2::StateType)
46
47   color = $style->bg ($state)
48           ·   $state (Gtk2::StateType)
49
50   gc = $style->bg_gc ($state)
51           ·   $state (Gtk2::StateType)
52
53   pixmap = $style->bg_pixmap ($state, $pixmap=undef)
54           ·   $state (Gtk2::StateType)
55
56           ·   $pixmap (Gtk2::Gdk::Pixmap or undef)
57
58   scalar = $style->black
59   scalar = $style->black_gc
60   style = $style->copy
61   color = $style->dark ($state)
62           ·   $state (Gtk2::StateType)
63
64   gc = $style->dark_gc ($state)
65           ·   $state (Gtk2::StateType)
66
67   $style->detach
68   Gtk2->draw_insertion_cursor ($widget, $drawable, $area, $location,
69       $is_primary, $direction, $draw_arrow)
70           ·   $widget (Gtk2::Widget)
71
72           ·   $drawable (Gtk2::Gdk::Drawable)
73
74           ·   $area (Gtk2::Gdk::Rectangle)
75
76           ·   $location (Gtk2::Gdk::Rectangle)
77
78           ·   $is_primary (boolean)
79
80           ·   $direction (Gtk2::TextDirection)
81
82           ·   $draw_arrow (boolean)
83
84           Since: gtk+ 2.4
85
86   color = $style->fg ($state)
87           ·   $state (Gtk2::StateType)
88
89   gc = $style->fg_gc ($state)
90           ·   $state (Gtk2::StateType)
91
92   scalar = $style->font_desc
93   color = $style->light ($state)
94           ·   $state (Gtk2::StateType)
95
96   gc = $style->light_gc ($state)
97           ·   $state (Gtk2::StateType)
98
99   color = $style->lookup_color ($color_name)
100           ·   $color_name (string)
101
102           Since: gtk+ 2.10
103
104   iconset = $style->lookup_icon_set ($stock_id)
105           ·   $stock_id (string)
106
107   color = $style->mid ($state)
108           ·   $state (Gtk2::StateType)
109
110   gc = $style->mid_gc ($state)
111           ·   $state (Gtk2::StateType)
112
113   $style->paint_arrow ($window, $state_type, $shadow_type, $area, $widget,
114       $detail, $arrow_type, $fill, $x, $y, $width, $height)
115           ·   $window (Gtk2::Gdk::Drawable)
116
117           ·   $state_type (Gtk2::StateType)
118
119           ·   $shadow_type (Gtk2::ShadowType)
120
121           ·   $area (Gtk2::Gdk::Rectangle or undef)
122
123           ·   $widget (Gtk2::Widget or undef)
124
125           ·   $detail (string or undef)
126
127           ·   $arrow_type (Gtk2::ArrowType)
128
129           ·   $fill (boolean)
130
131           ·   $x (integer)
132
133           ·   $y (integer)
134
135           ·   $width (integer)
136
137           ·   $height (integer)
138
139   $style->paint_box ($window, $state_type, $shadow_type, $area, $widget,
140       $detail, $x, $y, $width, $height)
141           ·   $window (Gtk2::Gdk::Drawable)
142
143           ·   $state_type (Gtk2::StateType)
144
145           ·   $shadow_type (Gtk2::ShadowType)
146
147           ·   $area (Gtk2::Gdk::Rectangle or undef)
148
149           ·   $widget (Gtk2::Widget or undef)
150
151           ·   $detail (string or undef)
152
153           ·   $x (integer)
154
155           ·   $y (integer)
156
157           ·   $width (integer)
158
159           ·   $height (integer)
160
161   $style->paint_box_gap ($window, $state_type, $shadow_type, $area, $widget,
162       $detail, $x, $y, $width, $height, $gap_side, $gap_x, $gap_width)
163           ·   $window (Gtk2::Gdk::Drawable)
164
165           ·   $state_type (Gtk2::StateType)
166
167           ·   $shadow_type (Gtk2::ShadowType)
168
169           ·   $area (Gtk2::Gdk::Rectangle or undef)
170
171           ·   $widget (Gtk2::Widget or undef)
172
173           ·   $detail (string or undef)
174
175           ·   $x (integer)
176
177           ·   $y (integer)
178
179           ·   $width (integer)
180
181           ·   $height (integer)
182
183           ·   $gap_side (Gtk2::PositionType)
184
185           ·   $gap_x (integer)
186
187           ·   $gap_width (integer)
188
189   $style->paint_check ($window, $state_type, $shadow_type, $area, $widget,
190       $detail, $x, $y, $width, $height)
191           ·   $window (Gtk2::Gdk::Drawable)
192
193           ·   $state_type (Gtk2::StateType)
194
195           ·   $shadow_type (Gtk2::ShadowType)
196
197           ·   $area (Gtk2::Gdk::Rectangle or undef)
198
199           ·   $widget (Gtk2::Widget)
200
201           ·   $detail (string or undef)
202
203           ·   $x (integer)
204
205           ·   $y (integer)
206
207           ·   $width (integer)
208
209           ·   $height (integer)
210
211   $style->paint_diamond ($window, $state_type, $shadow_type, $area, $widget,
212       $detail, $x, $y, $width, $height)
213           ·   $window (Gtk2::Gdk::Drawable)
214
215           ·   $state_type (Gtk2::StateType)
216
217           ·   $shadow_type (Gtk2::ShadowType)
218
219           ·   $area (Gtk2::Gdk::Rectangle or undef)
220
221           ·   $widget (Gtk2::Widget or undef)
222
223           ·   $detail (string or undef)
224
225           ·   $x (integer)
226
227           ·   $y (integer)
228
229           ·   $width (integer)
230
231           ·   $height (integer)
232
233   $style->paint_expander ($window, $state_type, $area, $widget, $detail, $x,
234       $y, $expander_style)
235           ·   $window (Gtk2::Gdk::Drawable)
236
237           ·   $state_type (Gtk2::StateType)
238
239           ·   $area (Gtk2::Gdk::Rectangle or undef)
240
241           ·   $widget (Gtk2::Widget)
242
243           ·   $detail (string or undef)
244
245           ·   $x (integer)
246
247           ·   $y (integer)
248
249           ·   $expander_style (Gtk2::ExpanderStyle)
250
251   $style->paint_extension ($window, $state_type, $shadow_type, $area,
252       $widget, $detail, $x, $y, $width, $height, $gap_side)
253           ·   $window (Gtk2::Gdk::Drawable)
254
255           ·   $state_type (Gtk2::StateType)
256
257           ·   $shadow_type (Gtk2::ShadowType)
258
259           ·   $area (Gtk2::Gdk::Rectangle or undef)
260
261           ·   $widget (Gtk2::Widget or undef)
262
263           ·   $detail (string or undef)
264
265           ·   $x (integer)
266
267           ·   $y (integer)
268
269           ·   $width (integer)
270
271           ·   $height (integer)
272
273           ·   $gap_side (Gtk2::PositionType)
274
275   $style->paint_flat_box ($window, $state_type, $shadow_type, $area, $widget,
276       $detail, $x, $y, $width, $height)
277           ·   $window (Gtk2::Gdk::Drawable)
278
279           ·   $state_type (Gtk2::StateType)
280
281           ·   $shadow_type (Gtk2::ShadowType)
282
283           ·   $area (Gtk2::Gdk::Rectangle or undef)
284
285           ·   $widget (Gtk2::Widget or undef)
286
287           ·   $detail (string or undef)
288
289           ·   $x (integer)
290
291           ·   $y (integer)
292
293           ·   $width (integer)
294
295           ·   $height (integer)
296
297   $style->paint_focus ($window, $state_type, $area, $widget, $detail, $x, $y,
298       $width, $height)
299           ·   $window (Gtk2::Gdk::Drawable)
300
301           ·   $state_type (Gtk2::StateType)
302
303           ·   $area (Gtk2::Gdk::Rectangle or undef)
304
305           ·   $widget (Gtk2::Widget or undef)
306
307           ·   $detail (string or undef)
308
309           ·   $x (integer)
310
311           ·   $y (integer)
312
313           ·   $width (integer)
314
315           ·   $height (integer)
316
317   $style->paint_handle ($window, $state_type, $shadow_type, $area, $widget,
318       $detail, $x, $y, $width, $height, $orientation)
319           ·   $window (Gtk2::Gdk::Drawable)
320
321           ·   $state_type (Gtk2::StateType)
322
323           ·   $shadow_type (Gtk2::ShadowType)
324
325           ·   $area (Gtk2::Gdk::Rectangle or undef)
326
327           ·   $widget (Gtk2::Widget or undef)
328
329           ·   $detail (string)
330
331           ·   $x (integer)
332
333           ·   $y (integer)
334
335           ·   $width (integer)
336
337           ·   $height (integer)
338
339           ·   $orientation (Gtk2::Orientation)
340
341   $style->paint_hline ($window, $state_type, $area, $widget, $detail, $x1,
342       $x2, $y)
343           ·   $window (Gtk2::Gdk::Drawable)
344
345           ·   $state_type (Gtk2::StateType)
346
347           ·   $area (Gtk2::Gdk::Rectangle or undef)
348
349           ·   $widget (Gtk2::Widget or undef)
350
351           ·   $detail (string or undef)
352
353           ·   $x1 (integer)
354
355           ·   $x2 (integer)
356
357           ·   $y (integer)
358
359   $style->paint_layout ($window, $state_type, $use_text, $area, $widget,
360       $detail, $x, $y, $layout)
361           ·   $window (Gtk2::Gdk::Drawable)
362
363           ·   $state_type (Gtk2::StateType)
364
365           ·   $use_text (boolean)
366
367           ·   $area (Gtk2::Gdk::Rectangle or undef)
368
369           ·   $widget (Gtk2::Widget or undef)
370
371           ·   $detail (string or undef)
372
373           ·   $x (integer)
374
375           ·   $y (integer)
376
377           ·   $layout (Gtk2::Pango::Layout)
378
379   $style->paint_option ($window, $state_type, $shadow_type, $area, $widget,
380       $detail, $x, $y, $width, $height)
381           ·   $window (Gtk2::Gdk::Drawable)
382
383           ·   $state_type (Gtk2::StateType)
384
385           ·   $shadow_type (Gtk2::ShadowType)
386
387           ·   $area (Gtk2::Gdk::Rectangle or undef)
388
389           ·   $widget (Gtk2::Widget)
390
391           ·   $detail (string or undef)
392
393           ·   $x (integer)
394
395           ·   $y (integer)
396
397           ·   $width (integer)
398
399           ·   $height (integer)
400
401   $style->paint_polygon ($window, $state_type, $shadow_type, $area, $widget,
402       $detail, $fill, $x1, $y1, ...)
403           ·   $window (Gtk2::Gdk::Drawable)
404
405           ·   $state_type (Gtk2::StateType)
406
407           ·   $shadow_type (Gtk2::ShadowType)
408
409           ·   $area (Gtk2::Gdk::Rectangle or undef)
410
411           ·   $widget (Gtk2::Widget or undef)
412
413           ·   $detail (string or undef)
414
415           ·   $fill (boolean)
416
417           ·   $x1 (integer) x coordinate of the first vertex
418
419           ·   $y1 (integer) y coordinate of the first vertex
420
421           ·   ... (list) pairs of x and y coordinates
422
423   $style->paint_resize_grip ($window, $state_type, $area, $widget, $detail,
424       $edge, $x, $y, $width, $height)
425           ·   $window (Gtk2::Gdk::Drawable)
426
427           ·   $state_type (Gtk2::StateType)
428
429           ·   $area (Gtk2::Gdk::Rectangle or undef)
430
431           ·   $widget (Gtk2::Widget or undef)
432
433           ·   $detail (string or undef)
434
435           ·   $edge (Gtk2::Gdk::WindowEdge)
436
437           ·   $x (integer)
438
439           ·   $y (integer)
440
441           ·   $width (integer)
442
443           ·   $height (integer)
444
445   $style->paint_shadow ($window, $state_type, $shadow_type, $area, $widget,
446       $detail, $x, $y, $width, $height)
447           ·   $window (Gtk2::Gdk::Drawable)
448
449           ·   $state_type (Gtk2::StateType)
450
451           ·   $shadow_type (Gtk2::ShadowType)
452
453           ·   $area (Gtk2::Gdk::Rectangle or undef)
454
455           ·   $widget (Gtk2::Widget or undef)
456
457           ·   $detail (string or undef)
458
459           ·   $x (integer)
460
461           ·   $y (integer)
462
463           ·   $width (integer)
464
465           ·   $height (integer)
466
467   $style->paint_shadow_gap ($window, $state_type, $shadow_type, $area,
468       $widget, $detail, $x, $y, $width, $height, $gap_side, $gap_x,
469       $gap_width)
470           ·   $window (Gtk2::Gdk::Drawable)
471
472           ·   $state_type (Gtk2::StateType)
473
474           ·   $shadow_type (Gtk2::ShadowType)
475
476           ·   $area (Gtk2::Gdk::Rectangle or undef)
477
478           ·   $widget (Gtk2::Widget or undef)
479
480           ·   $detail (string or undef)
481
482           ·   $x (integer)
483
484           ·   $y (integer)
485
486           ·   $width (integer)
487
488           ·   $height (integer)
489
490           ·   $gap_side (Gtk2::PositionType)
491
492           ·   $gap_x (integer)
493
494           ·   $gap_width (integer)
495
496   $style->paint_slider ($window, $state_type, $shadow_type, $area, $widget,
497       $detail, $x, $y, $width, $height, $orientation)
498           ·   $window (Gtk2::Gdk::Drawable)
499
500           ·   $state_type (Gtk2::StateType)
501
502           ·   $shadow_type (Gtk2::ShadowType)
503
504           ·   $area (Gtk2::Gdk::Rectangle or undef)
505
506           ·   $widget (Gtk2::Widget or undef)
507
508           ·   $detail (string or undef)
509
510           ·   $x (integer)
511
512           ·   $y (integer)
513
514           ·   $width (integer)
515
516           ·   $height (integer)
517
518           ·   $orientation (Gtk2::Orientation)
519
520   $style->paint_tab ($window, $state_type, $shadow_type, $area, $widget,
521       $detail, $x, $y, $width, $height)
522           ·   $window (Gtk2::Gdk::Drawable)
523
524           ·   $state_type (Gtk2::StateType)
525
526           ·   $shadow_type (Gtk2::ShadowType)
527
528           ·   $area (Gtk2::Gdk::Rectangle or undef)
529
530           ·   $widget (Gtk2::Widget)
531
532           ·   $detail (string or undef)
533
534           ·   $x (integer)
535
536           ·   $y (integer)
537
538           ·   $width (integer)
539
540           ·   $height (integer)
541
542   $style->paint_vline ($window, $state_type, $area, $widget, $detail, $y1_,
543       $y2_, $x)
544           ·   $window (Gtk2::Gdk::Drawable)
545
546           ·   $state_type (Gtk2::StateType)
547
548           ·   $area (Gtk2::Gdk::Rectangle or undef)
549
550           ·   $widget (Gtk2::Widget or undef)
551
552           ·   $detail (string or undef)
553
554           ·   $y1_ (integer)
555
556           ·   $y2_ (integer)
557
558           ·   $x (integer)
559
560   pixbuf = $style->render_icon ($source, $direction, $state, $size, $widget,
561       $detail=undef)
562           ·   $source (Gtk2::IconSource)
563
564           ·   $direction (Gtk2::TextDirection)
565
566           ·   $state (Gtk2::StateType)
567
568           ·   $size (Gtk2::IconSize)
569
570           ·   $widget (Gtk2::Widget or undef)
571
572           ·   $detail (string or undef)
573
574   color = $style->text ($state)
575           ·   $state (Gtk2::StateType)
576
577   color = $style->text_aa ($state)
578           ·   $state (Gtk2::StateType)
579
580   gc = $style->text_aa_gc ($state)
581           ·   $state (Gtk2::StateType)
582
583   gc = $style->text_gc ($state)
584           ·   $state (Gtk2::StateType)
585
586   scalar = $style->white
587   scalar = $style->white_gc
588   scalar = $style->xthickness
589   scalar = $style->ythickness

SIGNALS

591       realize (Gtk2::Style)
592       unrealize (Gtk2::Style)
593

ENUMS AND FLAGS

595   enum Gtk2::ArrowType
596       ·   'up' / 'GTK_ARROW_UP'
597
598       ·   'down' / 'GTK_ARROW_DOWN'
599
600       ·   'left' / 'GTK_ARROW_LEFT'
601
602       ·   'right' / 'GTK_ARROW_RIGHT'
603
604       ·   'none' / 'GTK_ARROW_NONE'
605
606   enum Gtk2::ExpanderStyle
607       ·   'collapsed' / 'GTK_EXPANDER_COLLAPSED'
608
609       ·   'semi-collapsed' / 'GTK_EXPANDER_SEMI_COLLAPSED'
610
611       ·   'semi-expanded' / 'GTK_EXPANDER_SEMI_EXPANDED'
612
613       ·   'expanded' / 'GTK_EXPANDER_EXPANDED'
614
615   enum Gtk2::Gdk::WindowEdge
616       ·   'north-west' / 'GDK_WINDOW_EDGE_NORTH_WEST'
617
618       ·   'north' / 'GDK_WINDOW_EDGE_NORTH'
619
620       ·   'north-east' / 'GDK_WINDOW_EDGE_NORTH_EAST'
621
622       ·   'west' / 'GDK_WINDOW_EDGE_WEST'
623
624       ·   'east' / 'GDK_WINDOW_EDGE_EAST'
625
626       ·   'south-west' / 'GDK_WINDOW_EDGE_SOUTH_WEST'
627
628       ·   'south' / 'GDK_WINDOW_EDGE_SOUTH'
629
630       ·   'south-east' / 'GDK_WINDOW_EDGE_SOUTH_EAST'
631
632   enum Gtk2::IconSize
633       ·   'invalid' / 'GTK_ICON_SIZE_INVALID'
634
635       ·   'menu' / 'GTK_ICON_SIZE_MENU'
636
637       ·   'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'
638
639       ·   'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'
640
641       ·   'button' / 'GTK_ICON_SIZE_BUTTON'
642
643       ·   'dnd' / 'GTK_ICON_SIZE_DND'
644
645       ·   'dialog' / 'GTK_ICON_SIZE_DIALOG'
646
647   enum Gtk2::Orientation
648       ·   'horizontal' / 'GTK_ORIENTATION_HORIZONTAL'
649
650       ·   'vertical' / 'GTK_ORIENTATION_VERTICAL'
651
652   enum Gtk2::PositionType
653       ·   'left' / 'GTK_POS_LEFT'
654
655       ·   'right' / 'GTK_POS_RIGHT'
656
657       ·   'top' / 'GTK_POS_TOP'
658
659       ·   'bottom' / 'GTK_POS_BOTTOM'
660
661   enum Gtk2::ShadowType
662       ·   'none' / 'GTK_SHADOW_NONE'
663
664       ·   'in' / 'GTK_SHADOW_IN'
665
666       ·   'out' / 'GTK_SHADOW_OUT'
667
668       ·   'etched-in' / 'GTK_SHADOW_ETCHED_IN'
669
670       ·   'etched-out' / 'GTK_SHADOW_ETCHED_OUT'
671
672   enum Gtk2::StateType
673       ·   'normal' / 'GTK_STATE_NORMAL'
674
675       ·   'active' / 'GTK_STATE_ACTIVE'
676
677       ·   'prelight' / 'GTK_STATE_PRELIGHT'
678
679       ·   'selected' / 'GTK_STATE_SELECTED'
680
681       ·   'insensitive' / 'GTK_STATE_INSENSITIVE'
682
683   enum Gtk2::TextDirection
684       ·   'none' / 'GTK_TEXT_DIR_NONE'
685
686       ·   'ltr' / 'GTK_TEXT_DIR_LTR'
687
688       ·   'rtl' / 'GTK_TEXT_DIR_RTL'
689

SEE ALSO

691       Gtk2, Glib::Object
692
694       Copyright (C) 2003-2008 by the gtk2-perl team.
695
696       This software is licensed under the LGPL.  See Gtk2 for a full notice.
697
698
699
700perl v5.12.0                      2010-05-02                    Gtk2::Style(3)
Impressum