]> Pileus Git - ~andy/gtk/blob - docs/reference/gtk/tmpl/gtkstyle.sgml
add mention of gtk_widget_add_events() and GTK_CAN_FOCUS
[~andy/gtk] / docs / reference / gtk / tmpl / gtkstyle.sgml
1 <!-- ##### SECTION Title ##### -->
2 Styles
3
4 <!-- ##### SECTION Short_Description ##### -->
5
6
7 <!-- ##### SECTION Long_Description ##### -->
8 <para>
9
10 </para>
11
12 <!-- ##### SECTION See_Also ##### -->
13 <para>
14
15 </para>
16
17 <!-- ##### MACRO GTK_STYLE_ATTACHED ##### -->
18 <para>
19 Returns whether the styleis attached to a window.
20 </para>
21
22 @style: a #GtkStyle.
23
24
25 <!-- ##### STRUCT GtkStyle ##### -->
26 <para>
27
28 </para>
29
30 @fg: 
31 @bg: 
32 @light: 
33 @dark: 
34 @mid: 
35 @text: 
36 @base: 
37 @text_aa: 
38 @black: 
39 @white: 
40 @font_desc: 
41 @xthickness: 
42 @ythickness: 
43 @fg_gc: 
44 @bg_gc: 
45 @light_gc: 
46 @dark_gc: 
47 @mid_gc: 
48 @text_gc: 
49 @base_gc: 
50 @text_aa_gc: 
51 @black_gc: 
52 @white_gc: 
53 @bg_pixmap: 
54
55 <!-- ##### STRUCT GtkStyleClass ##### -->
56 <para>
57
58 </para>
59
60 @parent_class: 
61 @realize: 
62 @unrealize: 
63 @copy: 
64 @clone: 
65 @init_from_rc: 
66 @set_background: 
67 @render_icon: 
68 @draw_hline: 
69 @draw_vline: 
70 @draw_shadow: 
71 @draw_polygon: 
72 @draw_arrow: 
73 @draw_diamond: 
74 @draw_string: 
75 @draw_box: 
76 @draw_flat_box: 
77 @draw_check: 
78 @draw_option: 
79 @draw_tab: 
80 @draw_shadow_gap: 
81 @draw_box_gap: 
82 @draw_extension: 
83 @draw_focus: 
84 @draw_slider: 
85 @draw_handle: 
86 @draw_expander: 
87 @draw_layout: 
88 @draw_resize_grip: 
89
90 <!-- ##### FUNCTION gtk_style_new ##### -->
91 <para>
92
93 </para>
94
95 @Returns: 
96
97
98 <!-- ##### FUNCTION gtk_style_copy ##### -->
99 <para>
100
101 </para>
102
103 @style: 
104 @Returns: 
105
106
107 <!-- ##### FUNCTION gtk_style_attach ##### -->
108 <para>
109
110 </para>
111
112 @style: 
113 @window: 
114 @Returns: 
115
116
117 <!-- ##### FUNCTION gtk_style_detach ##### -->
118 <para>
119
120 </para>
121
122 @style: 
123
124
125 <!-- ##### FUNCTION gtk_style_ref ##### -->
126 <para>
127
128 </para>
129
130 @style: 
131 @Returns: 
132
133
134 <!-- ##### FUNCTION gtk_style_unref ##### -->
135 <para>
136
137 </para>
138
139 @style: 
140
141
142 <!-- ##### FUNCTION gtk_style_set_background ##### -->
143 <para>
144
145 </para>
146
147 @style: 
148 @window: 
149 @state_type: 
150
151
152 <!-- ##### FUNCTION gtk_style_apply_default_background ##### -->
153 <para>
154
155 </para>
156
157 @style: 
158 @window: 
159 @set_bg: 
160 @state_type: 
161 @area: 
162 @x: 
163 @y: 
164 @width: 
165 @height: 
166
167
168 <!-- ##### MACRO gtk_style_apply_default_pixmap ##### -->
169 <para>
170
171 </para>
172
173 @s: 
174 @gw: 
175 @st: 
176 @a: 
177 @x: 
178 @y: 
179 @w: 
180 @h: 
181
182
183 <!-- ##### FUNCTION gtk_style_lookup_icon_set ##### -->
184 <para>
185
186 </para>
187
188 @style: 
189 @stock_id: 
190 @Returns: 
191
192
193 <!-- ##### FUNCTION gtk_style_render_icon ##### -->
194 <para>
195
196 </para>
197
198 @style: 
199 @source: 
200 @direction: 
201 @state: 
202 @size: 
203 @widget: 
204 @detail: 
205 @Returns: 
206
207
208 <!-- ##### FUNCTION gtk_style_get_font ##### -->
209 <para>
210
211 </para>
212
213 @style: 
214 @Returns: 
215
216
217 <!-- ##### FUNCTION gtk_style_set_font ##### -->
218 <para>
219
220 </para>
221
222 @style: 
223 @font: 
224
225
226 <!-- ##### FUNCTION gtk_draw_hline ##### -->
227 <para>
228
229 </para>
230
231 @style: 
232 @window: 
233 @state_type: 
234 @x1: 
235 @x2: 
236 @y: 
237
238
239 <!-- ##### FUNCTION gtk_draw_vline ##### -->
240 <para>
241
242 </para>
243
244 @style: 
245 @window: 
246 @state_type: 
247 @y1: 
248 @y2: 
249 @x: 
250
251
252 <!-- ##### FUNCTION gtk_draw_shadow ##### -->
253 <para>
254
255 </para>
256
257 @style: 
258 @window: 
259 @state_type: 
260 @shadow_type: 
261 @x: 
262 @y: 
263 @width: 
264 @height: 
265
266
267 <!-- ##### FUNCTION gtk_draw_polygon ##### -->
268 <para>
269
270 </para>
271
272 @style: 
273 @window: 
274 @state_type: 
275 @shadow_type: 
276 @points: 
277 @npoints: 
278 @fill: 
279
280
281 <!-- ##### FUNCTION gtk_draw_arrow ##### -->
282 <para>
283
284 </para>
285
286 @style: 
287 @window: 
288 @state_type: 
289 @shadow_type: 
290 @arrow_type: 
291 @fill: 
292 @x: 
293 @y: 
294 @width: 
295 @height: 
296
297
298 <!-- ##### FUNCTION gtk_draw_diamond ##### -->
299 <para>
300
301 </para>
302
303 @style: 
304 @window: 
305 @state_type: 
306 @shadow_type: 
307 @x: 
308 @y: 
309 @width: 
310 @height: 
311
312
313 <!-- ##### FUNCTION gtk_draw_string ##### -->
314 <para>
315
316 </para>
317
318 @style: 
319 @window: 
320 @state_type: 
321 @x: 
322 @y: 
323 @string: 
324
325
326 <!-- ##### FUNCTION gtk_draw_box ##### -->
327 <para>
328
329 </para>
330
331 @style: 
332 @window: 
333 @state_type: 
334 @shadow_type: 
335 @x: 
336 @y: 
337 @width: 
338 @height: 
339
340
341 <!-- ##### FUNCTION gtk_draw_box_gap ##### -->
342 <para>
343
344 </para>
345
346 @style: 
347 @window: 
348 @state_type: 
349 @shadow_type: 
350 @x: 
351 @y: 
352 @width: 
353 @height: 
354 @gap_side: 
355 @gap_x: 
356 @gap_width: 
357
358
359 <!-- ##### FUNCTION gtk_draw_check ##### -->
360 <para>
361
362 </para>
363
364 @style: 
365 @window: 
366 @state_type: 
367 @shadow_type: 
368 @x: 
369 @y: 
370 @width: 
371 @height: 
372
373
374 <!-- ##### FUNCTION gtk_draw_extension ##### -->
375 <para>
376
377 </para>
378
379 @style: 
380 @window: 
381 @state_type: 
382 @shadow_type: 
383 @x: 
384 @y: 
385 @width: 
386 @height: 
387 @gap_side: 
388
389
390 <!-- ##### FUNCTION gtk_draw_flat_box ##### -->
391 <para>
392
393 </para>
394
395 @style: 
396 @window: 
397 @state_type: 
398 @shadow_type: 
399 @x: 
400 @y: 
401 @width: 
402 @height: 
403
404
405 <!-- ##### FUNCTION gtk_draw_focus ##### -->
406 <para>
407
408 </para>
409
410 @style: 
411 @window: 
412 @x: 
413 @y: 
414 @width: 
415 @height: 
416
417
418 <!-- ##### FUNCTION gtk_draw_handle ##### -->
419 <para>
420
421 </para>
422
423 @style: 
424 @window: 
425 @state_type: 
426 @shadow_type: 
427 @x: 
428 @y: 
429 @width: 
430 @height: 
431 @orientation: 
432
433
434 <!-- ##### FUNCTION gtk_draw_option ##### -->
435 <para>
436
437 </para>
438
439 @style: 
440 @window: 
441 @state_type: 
442 @shadow_type: 
443 @x: 
444 @y: 
445 @width: 
446 @height: 
447
448
449 <!-- ##### FUNCTION gtk_draw_shadow_gap ##### -->
450 <para>
451
452 </para>
453
454 @style: 
455 @window: 
456 @state_type: 
457 @shadow_type: 
458 @x: 
459 @y: 
460 @width: 
461 @height: 
462 @gap_side: 
463 @gap_x: 
464 @gap_width: 
465
466
467 <!-- ##### FUNCTION gtk_draw_slider ##### -->
468 <para>
469
470 </para>
471
472 @style: 
473 @window: 
474 @state_type: 
475 @shadow_type: 
476 @x: 
477 @y: 
478 @width: 
479 @height: 
480 @orientation: 
481
482
483 <!-- ##### FUNCTION gtk_draw_tab ##### -->
484 <para>
485
486 </para>
487
488 @style: 
489 @window: 
490 @state_type: 
491 @shadow_type: 
492 @x: 
493 @y: 
494 @width: 
495 @height: 
496
497
498 <!-- ##### FUNCTION gtk_draw_expander ##### -->
499 <para>
500
501 </para>
502
503 @style: 
504 @window: 
505 @state_type: 
506 @x: 
507 @y: 
508 @expander_style: 
509 <!-- # Unused Parameters # -->
510 @is_open: 
511
512
513 <!-- ##### FUNCTION gtk_draw_layout ##### -->
514 <para>
515
516 </para>
517
518 @style: 
519 @window: 
520 @state_type: 
521 @use_text: 
522 @x: 
523 @y: 
524 @layout: 
525
526
527 <!-- ##### FUNCTION gtk_draw_resize_grip ##### -->
528 <para>
529
530 </para>
531
532 @style: 
533 @window: 
534 @state_type: 
535 @edge: 
536 @x: 
537 @y: 
538 @width: 
539 @height: 
540
541
542 <!-- ##### FUNCTION gtk_paint_arrow ##### -->
543 <para>
544
545 </para>
546
547 @style: 
548 @window: 
549 @state_type: 
550 @shadow_type: 
551 @area: 
552 @widget: 
553 @detail: 
554 @arrow_type: 
555 @fill: 
556 @x: 
557 @y: 
558 @width: 
559 @height: 
560
561
562 <!-- ##### FUNCTION gtk_paint_box ##### -->
563 <para>
564
565 </para>
566
567 @style: 
568 @window: 
569 @state_type: 
570 @shadow_type: 
571 @area: 
572 @widget: 
573 @detail: 
574 @x: 
575 @y: 
576 @width: 
577 @height: 
578
579
580 <!-- ##### FUNCTION gtk_paint_box_gap ##### -->
581 <para>
582
583 </para>
584
585 @style: 
586 @window: 
587 @state_type: 
588 @shadow_type: 
589 @area: 
590 @widget: 
591 @detail: 
592 @x: 
593 @y: 
594 @width: 
595 @height: 
596 @gap_side: 
597 @gap_x: 
598 @gap_width: 
599
600
601 <!-- ##### FUNCTION gtk_paint_check ##### -->
602 <para>
603
604 </para>
605
606 @style: 
607 @window: 
608 @state_type: 
609 @shadow_type: 
610 @area: 
611 @widget: 
612 @detail: 
613 @x: 
614 @y: 
615 @width: 
616 @height: 
617
618
619 <!-- ##### FUNCTION gtk_paint_diamond ##### -->
620 <para>
621
622 </para>
623
624 @style: 
625 @window: 
626 @state_type: 
627 @shadow_type: 
628 @area: 
629 @widget: 
630 @detail: 
631 @x: 
632 @y: 
633 @width: 
634 @height: 
635
636
637 <!-- ##### FUNCTION gtk_paint_extension ##### -->
638 <para>
639
640 </para>
641
642 @style: 
643 @window: 
644 @state_type: 
645 @shadow_type: 
646 @area: 
647 @widget: 
648 @detail: 
649 @x: 
650 @y: 
651 @width: 
652 @height: 
653 @gap_side: 
654
655
656 <!-- ##### FUNCTION gtk_paint_flat_box ##### -->
657 <para>
658
659 </para>
660
661 @style: 
662 @window: 
663 @state_type: 
664 @shadow_type: 
665 @area: 
666 @widget: 
667 @detail: 
668 @x: 
669 @y: 
670 @width: 
671 @height: 
672
673
674 <!-- ##### FUNCTION gtk_paint_focus ##### -->
675 <para>
676
677 </para>
678
679 @style: 
680 @window: 
681 @state_type: 
682 @area: 
683 @widget: 
684 @detail: 
685 @x: 
686 @y: 
687 @width: 
688 @height: 
689
690
691 <!-- ##### FUNCTION gtk_paint_handle ##### -->
692 <para>
693
694 </para>
695
696 @style: 
697 @window: 
698 @state_type: 
699 @shadow_type: 
700 @area: 
701 @widget: 
702 @detail: 
703 @x: 
704 @y: 
705 @width: 
706 @height: 
707 @orientation: 
708
709
710 <!-- ##### FUNCTION gtk_paint_hline ##### -->
711 <para>
712
713 </para>
714
715 @style: 
716 @window: 
717 @state_type: 
718 @area: 
719 @widget: 
720 @detail: 
721 @x1: 
722 @x2: 
723 @y: 
724
725
726 <!-- ##### FUNCTION gtk_paint_option ##### -->
727 <para>
728
729 </para>
730
731 @style: 
732 @window: 
733 @state_type: 
734 @shadow_type: 
735 @area: 
736 @widget: 
737 @detail: 
738 @x: 
739 @y: 
740 @width: 
741 @height: 
742
743
744 <!-- ##### FUNCTION gtk_paint_polygon ##### -->
745 <para>
746
747 </para>
748
749 @style: 
750 @window: 
751 @state_type: 
752 @shadow_type: 
753 @area: 
754 @widget: 
755 @detail: 
756 @points: 
757 @npoints: 
758 @fill: 
759
760
761 <!-- ##### FUNCTION gtk_paint_shadow ##### -->
762 <para>
763
764 </para>
765
766 @style: 
767 @window: 
768 @state_type: 
769 @shadow_type: 
770 @area: 
771 @widget: 
772 @detail: 
773 @x: 
774 @y: 
775 @width: 
776 @height: 
777
778
779 <!-- ##### FUNCTION gtk_paint_shadow_gap ##### -->
780 <para>
781
782 </para>
783
784 @style: 
785 @window: 
786 @state_type: 
787 @shadow_type: 
788 @area: 
789 @widget: 
790 @detail: 
791 @x: 
792 @y: 
793 @width: 
794 @height: 
795 @gap_side: 
796 @gap_x: 
797 @gap_width: 
798
799
800 <!-- ##### FUNCTION gtk_paint_slider ##### -->
801 <para>
802
803 </para>
804
805 @style: 
806 @window: 
807 @state_type: 
808 @shadow_type: 
809 @area: 
810 @widget: 
811 @detail: 
812 @x: 
813 @y: 
814 @width: 
815 @height: 
816 @orientation: 
817
818
819 <!-- ##### FUNCTION gtk_paint_string ##### -->
820 <para>
821
822 </para>
823
824 @style: 
825 @window: 
826 @state_type: 
827 @area: 
828 @widget: 
829 @detail: 
830 @x: 
831 @y: 
832 @string: 
833
834
835 <!-- ##### FUNCTION gtk_paint_tab ##### -->
836 <para>
837
838 </para>
839
840 @style: 
841 @window: 
842 @state_type: 
843 @shadow_type: 
844 @area: 
845 @widget: 
846 @detail: 
847 @x: 
848 @y: 
849 @width: 
850 @height: 
851
852
853 <!-- ##### FUNCTION gtk_paint_vline ##### -->
854 <para>
855
856 </para>
857
858 @style: 
859 @window: 
860 @state_type: 
861 @area: 
862 @widget: 
863 @detail: 
864 @y1: 
865 @y2: 
866 @x: 
867
868
869 <!-- ##### FUNCTION gtk_paint_expander ##### -->
870 <para>
871
872 </para>
873
874 @style: 
875 @window: 
876 @state_type: 
877 @area: 
878 @widget: 
879 @detail: 
880 @x: 
881 @y: 
882 @expander_style: 
883 <!-- # Unused Parameters # -->
884 @is_open: 
885
886
887 <!-- ##### FUNCTION gtk_paint_layout ##### -->
888 <para>
889
890 </para>
891
892 @style: 
893 @window: 
894 @state_type: 
895 @use_text: 
896 @area: 
897 @widget: 
898 @detail: 
899 @x: 
900 @y: 
901 @layout: 
902
903
904 <!-- ##### FUNCTION gtk_paint_resize_grip ##### -->
905 <para>
906
907 </para>
908
909 @style: 
910 @window: 
911 @state_type: 
912 @area: 
913 @widget: 
914 @detail: 
915 @edge: 
916 @x: 
917 @y: 
918 @width: 
919 @height: 
920
921
922 <!-- ##### STRUCT GtkBorder ##### -->
923 <para>
924
925 </para>
926
927 @left: 
928 @right: 
929 @top: 
930 @bottom: 
931
932 <!-- ##### FUNCTION gtk_border_copy ##### -->
933 <para>
934
935 </para>
936
937 @border: 
938 @Returns: 
939
940
941 <!-- ##### FUNCTION gtk_border_free ##### -->
942 <para>
943
944 </para>
945
946 @border: 
947
948
949 <!-- ##### STRUCT GtkRcProperty ##### -->
950 <para>
951
952 </para>
953
954 @type_name: 
955 @property_name: 
956 @origin: 
957 @value: 
958
959 <!-- ##### USER_FUNCTION GtkRcPropertyParser ##### -->
960 <para>
961
962 </para>
963
964 @pspec: 
965 @rc_string: 
966 @property_value: 
967 @Returns: 
968
969