File: classGFC_1_1Gtk_1_1Button.html

package info (click to toggle)
gfcui 2.3.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 43,420 kB
  • ctags: 18,023
  • sloc: cpp: 53,967; sh: 31,555; makefile: 1,322; perl: 108
file content (1027 lines) | stat: -rw-r--r-- 53,149 bytes parent folder | download | duplicates (3)
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
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>GTK+ Foundation Classes</title>
  <link href="gfc.css" rel="stylesheet" type="text/css">
  <meta content="The GFC Development Team" name="author">
  <meta content="Core Library Reference Manual" name="description">
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(243, 244, 248);"
 alink="#000099" link="#000099" vlink="#990099">
<table style="text-align: left; width: 1227px; height: 117px;"
 border="0" cellpadding="0" cellspacing="0">
  <tbody>
    <tr>
      <td
 style="text-align: center; background-color: rgb(255, 255, 255); width: 220px; vertical-align: top;"><img
 alt="GFC Logo" src="../images/gfc.png"
 style="width: 207px; height: 92px;"></td>
      <td
 style="text-align: center; background-color: rgb(87, 107, 152); vertical-align: middle;"><img
 alt="GFC Title Logo" src="../images/gfc-title.png"
 style="width: 418px; height: 76px;"><br>
      </td>
    </tr>
    <tr>
      <td
 style="text-align: center; background-color: rgb(65, 77, 104); vertical-align: middle;"><big><span
 style="color: rgb(255, 255, 153); font-weight: bold;">Reference Manual</span></big><br>
      </td>
      <td
 style="text-align: center; background-color: rgb(148, 164, 200); vertical-align: middle;"><small
 style="font-family: helvetica,arial,sans-serif;"><a
 href="../html/index.html">Main Page</a>&nbsp; |&nbsp; <a
 href="../html/namespaces.html">Namespace List</a>&nbsp; |&nbsp; <a
 href="classes.html">Alphabetical List</a>&nbsp; |&nbsp; <a
 href="../html/annotated.html">Class List</a>&nbsp; |&nbsp; <a
 href="../html/files.html">File List</a></small><br>
      </td>
    </tr>
  </tbody>
</table>
<small> </small>
</body>
</html>
<!-- Generated by Doxygen 1.3.8 -->
<h1>GFC::Gtk::Button Class Reference</h1>A GtkButton C++ wrapper class.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="button_8hh-source.html">gfc/gtk/button.hh</a>&gt;</code>
<p>
<p>Inheritance diagram for GFC::Gtk::Button:
<p><center><img src="classGFC_1_1Gtk_1_1Button.png" usemap="#GFC::Gtk::Button_map" border="0" alt=""></center>
<map name="GFC::Gtk::Button_map">
<area href="classGFC_1_1Gtk_1_1Bin.html" alt="GFC::Gtk::Bin" shape="rect" coords="151,336,292,360">
<area href="classGFC_1_1Gtk_1_1Container.html" alt="GFC::Gtk::Container" shape="rect" coords="151,280,292,304">
<area href="classGFC_1_1Gtk_1_1Widget.html" alt="GFC::Gtk::Widget" shape="rect" coords="151,224,292,248">
<area href="classGFC_1_1Gtk_1_1Object.html" alt="GFC::Gtk::Object" shape="rect" coords="75,168,216,192">
<area href="classGFC_1_1Atk_1_1Implementor.html" alt="GFC::Atk::Implementor" shape="rect" coords="226,168,367,192">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Object.html" alt="GFC::G::Object" shape="rect" coords="75,112,216,136">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1TypeInterface.html" alt="GFC::G::TypeInterface" shape="rect" coords="226,112,367,136">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1TypeInstance.html" alt="GFC::G::TypeInstance" shape="rect" coords="75,56,216,80">
<area doxygen="gfccore.tag:" href="classGFC_1_1G_1_1TypeInstance.html" alt="GFC::G::TypeInstance" shape="rect" coords="226,56,367,80">
<area doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html" alt="GFC::Trackable" shape="rect" coords="75,0,216,24">
<area doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html" alt="GFC::Trackable" shape="rect" coords="226,0,367,24">
<area href="classGFC_1_1Gtk_1_1ColorButton.html" alt="GFC::Gtk::ColorButton" shape="rect" coords="0,448,141,472">
<area href="classGFC_1_1Gtk_1_1FontButton.html" alt="GFC::Gtk::FontButton" shape="rect" coords="151,448,292,472">
<area href="classGFC_1_1Gtk_1_1ToggleButton.html" alt="GFC::Gtk::ToggleButton" shape="rect" coords="302,448,443,472">
<area href="classGFC_1_1Gtk_1_1CheckButton.html" alt="GFC::Gtk::CheckButton" shape="rect" coords="302,504,443,528">
<area href="classGFC_1_1Gtk_1_1RadioButton.html" alt="GFC::Gtk::RadioButton" shape="rect" coords="302,560,443,584">
</map>
<a href="classGFC_1_1Gtk_1_1Button-members.html">List of all members.</a><h2>Signal Prototypes</h2>
<ul>
<li>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">PressedSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z336_12">pressed_signal</a>
<dl class="el"><dd class="mdescRight">Pressed signal (see <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_0">sig_pressed()</a>).  <a href="#z336_12"></a><br></dl><li>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">ReleasedSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z336_13">released_signal</a>
<dl class="el"><dd class="mdescRight">Released signal (see <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_1">sig_released()</a>).  <a href="#z336_13"></a><br></dl><li>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">ClickedSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z336_14">clicked_signal</a>
<dl class="el"><dd class="mdescRight">Clicked signal (see <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_2">sig_clicked()</a>).  <a href="#z336_14"></a><br></dl><li>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">EnterSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z336_15">enter_signal</a>
<dl class="el"><dd class="mdescRight">Enter signal (see <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_3">sig_enter()</a>).  <a href="#z336_15"></a><br></dl><li>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">LeaveSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z336_16">leave_signal</a>
<dl class="el"><dd class="mdescRight">Leave signal (see <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_4">sig_leave()</a>).  <a href="#z336_16"></a><br></dl><li>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">ActivateSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z336_17">activate_signal</a>
<dl class="el"><dd class="mdescRight">Activate signal (see <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_5">sig_activate()</a>).  <a href="#z336_17"></a><br></dl></ul>
<h2>Public Member Functions</h2>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<ul>
<li><a class="anchor" name="z337_0" doxytag="GFC::Gtk::Button::Button" ></a>
<a class="el" href="classGFC_1_1Gtk_1_1Button.html#z337_0">Button</a> ()
<dl class="el"><dd class="mdescRight">Constructs an empty <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a> widget. <br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Button.html#z337_1">Button</a> (<a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> &amp;image)
<dl class="el"><dd class="mdescRight">Constructs a <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a> widget that contains an <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>.  <a href="#z337_1"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Button.html#z337_3">Button</a> (const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &amp;label, bool use_underline=false)
<dl class="el"><dd class="mdescRight">Constructs a <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a> widget with a <a class="el" href="classGFC_1_1Gtk_1_1Label.html">Label</a> child containing the given label.  <a href="#z337_3"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Button.html#z337_5">Button</a> (<a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> &amp;image, const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &amp;label, bool use_underline=false, bool horizontal=false)
<dl class="el"><dd class="mdescRight">Sets the image and label for the button.  <a href="#z337_5"></a><br></dl><li><a class="el" href="classGFC_1_1Gtk_1_1Button.html#z337_6">Button</a> (const <a class="el" href="classGFC_1_1Gtk_1_1StockId.html">StockId</a> &amp;stock_id)
<dl class="el"><dd class="mdescRight">Constructs a new <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a> containing the image and text from a stock item.  <a href="#z337_6"></a><br></dl><li><a class="anchor" name="z337_7" doxytag="GFC::Gtk::Button::~Button" ></a>
virtual <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z337_7">~Button</a> ()
<dl class="el"><dd class="mdescRight">Destructor. <br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
<ul>
<li><a class="anchor" name="z338_0" doxytag="GFC::Gtk::Button::gtk_button" ></a>
GtkButton * <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z338_0">gtk_button</a> () const
<dl class="el"><dd class="mdescRight">Get a pointer to the GtkButton structure. <br></dl><li><a class="anchor" name="z338_1" doxytag="GFC::Gtk::Button::operator GtkButton *" ></a>
<a class="el" href="classGFC_1_1Gtk_1_1Button.html#z338_1">operator GtkButton *</a> () const
<dl class="el"><dd class="mdescRight">Conversion operator; safely converts a <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a> to a GtkButton pointer. <br></dl><li><a class="anchor" name="z338_2" doxytag="GFC::Gtk::Button::get_relief" ></a>
<a class="el" href="namespaceGFC_1_1Gtk.html#a333">ReliefStyle</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z338_2">get_relief</a> () const
<dl class="el"><dd class="mdescRight">Returns the current relief style of the <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a>. <br></dl><li><a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z338_3">get_label</a> () const
<dl class="el"><dd class="mdescRight">Fetches the text from the label of the button, as set by <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_7">set_label()</a>.  <a href="#z338_3"></a><br></dl><li><a class="anchor" name="z338_4" doxytag="GFC::Gtk::Button::get_use_underline" ></a>
bool <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z338_4">get_use_underline</a> () const
<dl class="el"><dd class="mdescRight">Returns true if an embedded underline in the button label indicates a mnemonic (see <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_9">set_use_underline()</a>). <br></dl><li>bool <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z338_5">get_use_stock</a> () const
<dl class="el"><dd class="mdescRight">Returns whether the button label is a stock item.  <a href="#z338_5"></a><br></dl><li>bool <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z338_6">get_focus_on_click</a> () const
<dl class="el"><dd class="mdescRight">Determines whether the button grabs focus when it is clicked with the mouse.  <a href="#z338_6"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z338_7">get_alignment</a> (float *xalign, float *yalign)
<dl class="el"><dd class="mdescRight">Gets the alignment of the child in the button.  <a href="#z338_7"></a><br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Methods</div></td></tr>
<ul>
<li><a class="anchor" name="z339_0" doxytag="GFC::Gtk::Button::pressed" ></a>
void <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_0">pressed</a> ()
<dl class="el"><dd class="mdescRight">Emits a <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z336_12">Button::pressed_signal</a> to the calling <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a>. <br></dl><li><a class="anchor" name="z339_1" doxytag="GFC::Gtk::Button::released" ></a>
void <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_1">released</a> ()
<dl class="el"><dd class="mdescRight">Emits a <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z336_13">Button::released_signal</a> to the calling <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a>. <br></dl><li><a class="anchor" name="z339_2" doxytag="GFC::Gtk::Button::clicked" ></a>
void <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_2">clicked</a> ()
<dl class="el"><dd class="mdescRight">Emits a <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z336_14">Button::clicked_signal</a> to the calling <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a>. <br></dl><li><a class="anchor" name="z339_3" doxytag="GFC::Gtk::Button::enter" ></a>
void <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_3">enter</a> ()
<dl class="el"><dd class="mdescRight">Emits a <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z336_15">Button::enter_signal</a> to the calling <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a>. <br></dl><li><a class="anchor" name="z339_4" doxytag="GFC::Gtk::Button::leave" ></a>
void <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_4">leave</a> ()
<dl class="el"><dd class="mdescRight">Emits a <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z336_16">Button::leave_signal</a> to the calling <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a>. <br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_5">set_relief</a> (<a class="el" href="namespaceGFC_1_1Gtk.html#a333">ReliefStyle</a> newstyle)
<dl class="el"><dd class="mdescRight">Sets the relief style of the edges of the <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a>.  <a href="#z339_5"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_7">set_label</a> (const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &amp;label)
<dl class="el"><dd class="mdescRight">Sets the text of the label of the button to label.  <a href="#z339_7"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_8">set_stock_id</a> (const <a class="el" href="classGFC_1_1Gtk_1_1StockId.html">StockId</a> &amp;stock_id)
<dl class="el"><dd class="mdescRight">Sets the button image and text from a stock item.  <a href="#z339_8"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_9">set_use_underline</a> (bool use_underline)
<dl class="el"><dd class="mdescRight">Sets whether an underline in the text of the button label indicates the next character should be used for the mnemonic accelerator key.  <a href="#z339_9"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_10">set_use_stock</a> (bool use_stock)
<dl class="el"><dd class="mdescRight">Sets whether the label set on the button is used as a stock id to select the stock item for the button.  <a href="#z339_10"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_11">set_image</a> (<a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> &amp;image, const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &amp;label, bool use_underline=false, bool horizontal=false)
<dl class="el"><dd class="mdescRight">Sets the image and label for the button.  <a href="#z339_11"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_12">set_focus_on_click</a> (bool focus_on_click)
<dl class="el"><dd class="mdescRight">Sets whether the button will grab focus when it is clicked with the mouse.  <a href="#z339_12"></a><br></dl><li>void <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_13">set_alignment</a> (float xalign, float yalign)
<dl class="el"><dd class="mdescRight">Sets the alignment of the child.  <a href="#z339_13"></a><br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Signal Proxies</div></td></tr>
<ul>
<li><a class="anchor" name="z340_0" doxytag="GFC::Gtk::Button::sig_pressed" ></a>
const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">PressedSignalProxy</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_0">sig_pressed</a> ()
<dl class="el"><dd class="mdescRight">Connect to the pressed_signal; emitted when the button is initially pressed. <br></dl><li><a class="anchor" name="z340_1" doxytag="GFC::Gtk::Button::sig_released" ></a>
const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">ReleasedSignalProxy</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_1">sig_released</a> ()
<dl class="el"><dd class="mdescRight">Connect to the released_signal; emitted when a button which is pressed is released, no matter where the mouse cursor is. <br></dl><li>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">ClickedSignalProxy</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_2">sig_clicked</a> ()
<dl class="el"><dd class="mdescRight">Connect to the clicked_signal; emitted when a button clicked on by the mouse and the cursor stays on the button.  <a href="#z340_2"></a><br></dl><li><a class="anchor" name="z340_3" doxytag="GFC::Gtk::Button::sig_enter" ></a>
const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">EnterSignalProxy</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_3">sig_enter</a> ()
<dl class="el"><dd class="mdescRight">Connect to the enter_signal; emitted when the mouse cursor enters the region of the button. <br></dl><li><a class="anchor" name="z340_4" doxytag="GFC::Gtk::Button::sig_leave" ></a>
const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">LeaveSignalProxy</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_4">sig_leave</a> ()
<dl class="el"><dd class="mdescRight">Connect to the leave_signal; emitted when the mouse cursor leaves the region of the button. <br></dl><li><a class="anchor" name="z340_5" doxytag="GFC::Gtk::Button::sig_activate" ></a>
const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">ActivateSignalProxy</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_5">sig_activate</a> ()
<dl class="el"><dd class="mdescRight">Connect to the activate_signal; emitted when the button is activated. <br></dl></ul>
<h2>Protected Member Functions</h2>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<ul>
<li><a class="el" href="classGFC_1_1Gtk_1_1Button.html#z335_0">Button</a> (GtkButton *button, bool <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1Trackable.html#z143_1">owns_reference</a>=false)
<dl class="el"><dd class="mdescRight">Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a> from an existing GtkButton.  <a href="#z335_0"></a><br></dl></ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A GtkButton C++ wrapper class. 
<p>
The <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a> widget is generally used to attach a function to that is called when the button is pressed. The <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a> widget can hold any valid child widget. That is it can hold most any other standard <a class="el" href="classGFC_1_1Gtk_1_1Widget.html">Widget</a>. The most commonly used child is the <a class="el" href="classGFC_1_1Gtk_1_1Label.html">Label</a>. 
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="z335_0" doxytag="GFC::Gtk::Button::Button" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::Button::Button           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">GtkButton *&nbsp;</td>
          <td class="mdname" nowrap> <em>button</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>owns_reference</em> = <code>false</code></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [explicit, protected]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct a new <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a> from an existing GtkButton. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>button</em>&nbsp;</td><td>A pointer to a GtkButton. </td></tr>
    <tr><td></td><td valign=top><em>owns_reference</em>&nbsp;</td><td>Set false if the initial reference count is floating, set true if it's not.</td></tr>
  </table>
</dl>
<br>
The <em>button</em> can be a newly created GtkButton or an existing GtkButton. (see <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Object.html#z68_0">G::Object::Object</a>).     </td>
  </tr>
</table>
<a class="anchor" name="z337_1" doxytag="GFC::Gtk::Button::Button" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::Button::Button           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>image</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [explicit]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constructs a <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a> widget that contains an <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a>. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>image</em>&nbsp;</td><td>The <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> you want the <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a> to contain. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="z337_3" doxytag="GFC::Gtk::Button::Button" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::Button::Button           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>label</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>use_underline</em> = <code>false</code></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [explicit]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constructs a <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a> widget with a <a class="el" href="classGFC_1_1Gtk_1_1Label.html">Label</a> child containing the given label. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>label</em>&nbsp;</td><td>The text you want the <a class="el" href="classGFC_1_1Gtk_1_1Label.html">Label</a> to hold. </td></tr>
    <tr><td></td><td valign=top><em>use_underline</em>&nbsp;</td><td>Set <em>true</em> if label contains a mnemonic character.</td></tr>
  </table>
</dl>
<br>
If characters in label are preceded by an underscore, they are underlined. If you need a literal underscore character in a label, use '__' (two underscores). The first underlined character represents a keyboard accelerator called a mnemonic. Pressing Alt and that key activates the button.     </td>
  </tr>
</table>
<a class="anchor" name="z337_5" doxytag="GFC::Gtk::Button::Button" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::Button::Button           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>image</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>label</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>use_underline</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>horizontal</em> = <code>false</code></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the image and label for the button. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>image</em>&nbsp;</td><td>The <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> you want the button to display. </td></tr>
    <tr><td></td><td valign=top><em>label</em>&nbsp;</td><td>The text you want the button to display. </td></tr>
    <tr><td></td><td valign=top><em>use_underline</em>&nbsp;</td><td>Set <em>true</em> if an underline in the label indicates a mnemonic. </td></tr>
    <tr><td></td><td valign=top><em>horizontal</em>&nbsp;</td><td>Set <em>true</em> if the image and label should be beside each other.</td></tr>
  </table>
</dl>
<br>
This constructor lets you display an image and a label inside a button, like a toolbar button does. If <em>horizontal</em> is true the label is displayed beside the image. If <em>horizontal</em> is false the label is displayed underneath the image.     </td>
  </tr>
</table>
<a class="anchor" name="z337_6" doxytag="GFC::Gtk::Button::Button" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> GFC::Gtk::Button::Button           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Gtk_1_1StockId.html">StockId</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>stock_id</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [explicit]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constructs a new <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a> containing the image and text from a stock item. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>stock_id</em>&nbsp;</td><td>The stock ID for a stock item.</td></tr>
  </table>
</dl>
<br>
Some stock IDs are pre-registered like <a class="el" href="classGFC_1_1Gtk_1_1StockId.html#z845_47">Gtk::StockId::OK</a> and <a class="el" href="classGFC_1_1Gtk_1_1StockId.html#z845_8">Gtk::StockId::APPLY</a>. If stock_id is unknown, then it will be treated as a mnemonic label.     </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="z338_7" doxytag="GFC::Gtk::Button::get_alignment" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Button::get_alignment           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">float *&nbsp;</td>
          <td class="mdname" nowrap> <em>xalign</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>float *&nbsp;</td>
          <td class="mdname" nowrap> <em>yalign</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the alignment of the child in the button. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>xalign</em>&nbsp;</td><td>The return location for horizontal alignment. </td></tr>
    <tr><td></td><td valign=top><em>yalign</em>&nbsp;</td><td>The return location for vertical alignment. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="z338_6" doxytag="GFC::Gtk::Button::get_focus_on_click" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool GFC::Gtk::Button::get_focus_on_click           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Determines whether the button grabs focus when it is clicked with the mouse. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd><em>true</em> if the button grabs focus when it is clicked with the mouse. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="z338_3" doxytag="GFC::Gtk::Button::get_label" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> GFC::Gtk::Button::get_label           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Fetches the text from the label of the button, as set by <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_7">set_label()</a>. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The text of the label widget.</dd></dl>
<br>
If the label text has not been set the return value will be a null <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a>. This will be the case if you create an empty button to use as a container.     </td>
  </tr>
</table>
<a class="anchor" name="z338_5" doxytag="GFC::Gtk::Button::get_use_stock" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool GFC::Gtk::Button::get_use_stock           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns whether the button label is a stock item. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd><em>true</em> if the button label is used to select a stock item instead of being used directly as the label text. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="z339_13" doxytag="GFC::Gtk::Button::set_alignment" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Button::set_alignment           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">float&nbsp;</td>
          <td class="mdname" nowrap> <em>xalign</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>float&nbsp;</td>
          <td class="mdname" nowrap> <em>yalign</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the alignment of the child. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>xalign</em>&nbsp;</td><td>The horizontal position of the child, 0.0 is left aligned, 1.0 is right aligned. </td></tr>
    <tr><td></td><td valign=top><em>yalign</em>&nbsp;</td><td>The vertical position of the child, 0.0 is top aligned, 1.0 is bottom aligned.</td></tr>
  </table>
</dl>
<br>
This method has no effect unless the child is of type GTK_TYPE_MISC or GTK_TYPE_ALIGNMENT.     </td>
  </tr>
</table>
<a class="anchor" name="z339_12" doxytag="GFC::Gtk::Button::set_focus_on_click" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Button::set_focus_on_click           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>focus_on_click</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets whether the button will grab focus when it is clicked with the mouse. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>focus_on_click</em>&nbsp;</td><td>Whether the mouse grabs focus when clicked with the mouse.</td></tr>
  </table>
</dl>
<br>
Making mouse clicks not grab focus is useful in places like toolbars where you don't want the keyboard focus removed from the main area of the application.     </td>
  </tr>
</table>
<a class="anchor" name="z339_11" doxytag="GFC::Gtk::Button::set_image" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Button::set_image           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>image</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>label</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>use_underline</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>horizontal</em> = <code>false</code></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the image and label for the button. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>image</em>&nbsp;</td><td>The <a class="el" href="classGFC_1_1Gtk_1_1Image.html">Image</a> you want the button to display. </td></tr>
    <tr><td></td><td valign=top><em>label</em>&nbsp;</td><td>The text you want the button to display. </td></tr>
    <tr><td></td><td valign=top><em>use_underline</em>&nbsp;</td><td>Set <em>true</em> if an underline in the label indicates a mnemonic. </td></tr>
    <tr><td></td><td valign=top><em>horizontal</em>&nbsp;</td><td>Set <em>true</em> if the image and label should be beside each other.</td></tr>
  </table>
</dl>
<br>
This is a convenience method that lets you display an image and a label inside a button, like a toolbar button does. If <em>horizontal</em> is true the label is displayed beside the image. If <em>horizontal</em> is false the label is displayed underneath the image. This method will clear any previously set image or label.     </td>
  </tr>
</table>
<a class="anchor" name="z339_7" doxytag="GFC::Gtk::Button::set_label" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Button::set_label           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>label</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the text of the label of the button to label. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>label</em>&nbsp;</td><td>A <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a>.</td></tr>
  </table>
</dl>
<br>
This method will clear any previously set label. The text is also used to select the stock item if <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_10">set_use_stock()</a> is used.     </td>
  </tr>
</table>
<a class="anchor" name="z339_5" doxytag="GFC::Gtk::Button::set_relief" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Button::set_relief           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="namespaceGFC_1_1Gtk.html#a333">ReliefStyle</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>newstyle</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the relief style of the edges of the <a class="el" href="classGFC_1_1Gtk_1_1Button.html">Button</a>. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>newstyle</em>&nbsp;</td><td>The ReliefStyle to set.</td></tr>
  </table>
</dl>
<br>
Three styles exist, RELIEF_NORMAL, RELIEF_HALF, RELIEF_NONE. The default style is, as one can guess, RELIEF_NORMAL.     </td>
  </tr>
</table>
<a class="anchor" name="z339_8" doxytag="GFC::Gtk::Button::set_stock_id" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Button::set_stock_id           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classGFC_1_1Gtk_1_1StockId.html">StockId</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>stock_id</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the button image and text from a stock item. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>stock_id</em>&nbsp;</td><td>The stock ID for a stock item.</td></tr>
  </table>
</dl>
<br>
This is a convenience method for setting a stock item and is equivalent to calling <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_7">set_label()</a>, <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_10">set_use_stock()</a> and <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z339_9">set_use_underline()</a>. Some stock IDs are pre-registered like <a class="el" href="classGFC_1_1Gtk_1_1StockId.html#z845_47">Gtk::StockId::OK</a> and <a class="el" href="classGFC_1_1Gtk_1_1StockId.html#z845_8">Gtk::StockId::APPLY</a>. If <em>stock_id</em> is unknown, then it will be treated as a mnemonic label.     </td>
  </tr>
</table>
<a class="anchor" name="z339_10" doxytag="GFC::Gtk::Button::set_use_stock" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Button::set_use_stock           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>use_stock</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets whether the label set on the button is used as a stock id to select the stock item for the button. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>use_stock</em>&nbsp;</td><td>Set <em>true</em> if the button should use a stock item. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="z339_9" doxytag="GFC::Gtk::Button::set_use_underline" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void GFC::Gtk::Button::set_use_underline           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>use_underline</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets whether an underline in the text of the button label indicates the next character should be used for the mnemonic accelerator key. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>use_underline</em>&nbsp;</td><td>Set <em>true</em> if an underline in the text indicates a mnemonic. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="z340_2" doxytag="GFC::Gtk::Button::sig_clicked" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">ClickedSignalProxy</a> GFC::Gtk::Button::sig_clicked           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Connect to the clicked_signal; emitted when a button clicked on by the mouse and the cursor stays on the button. 
<p>
If the cursor is not on the button when the mouse button is released, the signal is not emitted.     </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="z336_17" doxytag="GFC::Gtk::Button::activate_signal" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">ActivateSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z336_17">GFC::Gtk::Button::activate_signal</a><code> [static, protected]</code>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Activate signal (see <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_5">sig_activate()</a>). 
<p>
Calls a slot with the signature: <div class="fragment"><pre>             <span class="keywordtype">void</span> function();
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="z336_14" doxytag="GFC::Gtk::Button::clicked_signal" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">ClickedSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z336_14">GFC::Gtk::Button::clicked_signal</a><code> [static, protected]</code>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Clicked signal (see <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_2">sig_clicked()</a>). 
<p>
Calls a slot with the signature: <div class="fragment"><pre>             <span class="keywordtype">void</span> function();
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="z336_15" doxytag="GFC::Gtk::Button::enter_signal" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">EnterSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z336_15">GFC::Gtk::Button::enter_signal</a><code> [static, protected]</code>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Enter signal (see <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_3">sig_enter()</a>). 
<p>
Calls a slot with the signature: <div class="fragment"><pre>             <span class="keywordtype">void</span> function();
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="z336_16" doxytag="GFC::Gtk::Button::leave_signal" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">LeaveSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z336_16">GFC::Gtk::Button::leave_signal</a><code> [static, protected]</code>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Leave signal (see <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_4">sig_leave()</a>). 
<p>
Calls a slot with the signature: <div class="fragment"><pre>             <span class="keywordtype">void</span> function();
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="z336_12" doxytag="GFC::Gtk::Button::pressed_signal" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">PressedSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z336_12">GFC::Gtk::Button::pressed_signal</a><code> [static, protected]</code>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Pressed signal (see <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_0">sig_pressed()</a>). 
<p>
Calls a slot with the signature: <div class="fragment"><pre>             <span class="keywordtype">void</span> function();
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="z336_13" doxytag="GFC::Gtk::Button::released_signal" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const <a class="elRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">ReleasedSignalType</a> <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z336_13">GFC::Gtk::Button::released_signal</a><code> [static, protected]</code>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Released signal (see <a class="el" href="classGFC_1_1Gtk_1_1Button.html#z340_1">sig_released()</a>). 
<p>
Calls a slot with the signature: <div class="fragment"><pre>             <span class="keywordtype">void</span> function();
</pre></div>    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="button_8hh-source.html">button.hh</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Aug 24 00:34:37 2004 for GFC-UI by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>