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
  
/* -*- C -*- */ 
require gtk24; 
 
class GTK2.Expander; 
inherit GTK2.Bin; 
 
//! Properties: 
//! int expanded 
//! string label 
//! GTK2.Widget label-widget 
//! int spacing 
//! int use-markup 
//! int use-underline 
//! <p> 
//! Style properties: 
//! int expander-size 
//! int expander-spacing 
 
signal activate; 
 
void create(string|mapping(string:mixed) label) 
//! Create a new GTK2.Expander.  Set mnemonic to 1 
//! for a mnemonic expander, otherwise omitting it 
//! creates a regular expander. 
{ 
  pgtk2_verify_not_inited(); 
  pgtk2_verify_setup(); 
  { 
    if (TYPEOF(Pike_sp[-args]) == PIKE_T_STRING) { 
      struct pike_string *label; 
      GtkWidget *ge; 
      get_all_args(NULL,args,"%t",&label); 
      ref_push_string(label); 
      f_string_to_utf8(1); 
      ge=gtk_expander_new_with_mnemonic(CGSTR0(Pike_sp[-1].u.string)); 
      pop_stack(); 
      THIS->obj=G_OBJECT(ge); 
    } else { 
      INIT_WITH_PROPS(GTK_TYPE_EXPANDER); 
    } 
    pgtk2_pop_n_elems(args); 
  } 
  pgtk2__init_this_object(); 
} 
 
void set_expanded(int expanded); 
//! Sets the state of the expander.  Set to true if you want the 
//! child widget to be revealed, and false if you want the child 
//! widget to be hidden. 
 
int get_expanded(); 
//! Returns true if the child widget is revealed. 
 
void set_spacing(int spacing); 
//! Sets the spacing field of the expander, which is the number 
//! of pixels to place between the expander and the child. 
 
int get_spacing(); 
//! Returns the spacing. 
 
void set_label(string label); 
//! Sets the text of the label of the expander. 
 
string get_label(); 
//! Fetches the text from the label of the expander. 
 
void set_use_underline(int use_underline); 
//! If true, an underline in the text of the label indicates 
//! the next character should be used for the mnemonic 
//! accelarator key. 
 
int get_use_underline(); 
//! Returns whether an embedded underline in the label 
//! indicates a mnemonic. 
 
void set_use_markup(int use_markup); 
//! Sets whether the text of the label contains markup in 
//! Pango's text markup language. 
 
int get_use_markup(); 
//! Returns whether the label's text is interpreted as marked up 
//! with the Pango text markup language. 
 
void set_label_widget(GTK2.Widget label); 
//! Set the label widget for the expander.  This is the widget 
//! that will appear embedded alongside the expander arrow. 
 
+GTK2.Widget get_label_widget(); 
//! Retrieves the label widget for the frame. 
endrequire;