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
  
//! A box is a container that can contain more than one child. 
//! The basic 'Box' class cannot be instantiated, it is a virtual class 
//! that only defines some common 'Box' functions shared with all other 
//! Box widgets. 
//! Properties: 
//! int homogeneous 
//! int spacing 
//!  
//! Child properties: 
//! int expand 
//! int fill 
//! int pack-type 
//! int padding 
//! int position 
//! 
//! 
 
inherit GTK2.Container; 
 
int get_homogeneous( ); 
//! Returns whether the box is homogeneous. 
//! 
//! 
 
int get_spacing( ); 
//! Gets the spacing. 
//! 
//! 
 
GTK2.Box pack_end( GTK2.Widget widget, int expandp, int fillp, int padding ); 
//! Pack from the right (or bottom) of the box. 
//! Arguments are widget, expand, fill, paddingb 
//! widget, expand, fill, padding 
//! 
//! 
 
GTK2.Box pack_end_defaults( GTK2.Widget widget ); 
//! The argument is the widget to add. 
//! 
//! 
 
GTK2.Box pack_start( GTK2.Widget widget, int expandp, int fillp, int padding ); 
//! Pack from the left (or top) of the box. 
//! Argument are widget, expand, fill, padding 
//! pack(widget,1,1,0) is equivalent to 'add' or 'pack_start_defaults' 
//! 
//! 
 
GTK2.Box pack_start_defaults( GTK2.Widget widget ); 
//! The argument is the widget to add. This function is equivalent to 'add' 
//! 
//! 
 
mapping query_child_packing( GTK2.Widget child ); 
//! Return a mapping: 
//! ([ "expand":expandp, "fill":fillp, "padding":paddingp, "type":type ]) 
//! 
//! 
 
GTK2.Box reorder_child( GTK2.Widget child, int new_position ); 
//! Move widget to pos, pos is an integer, 
//! between 0 and sizeof(box->children())-1 
//! 
//! 
 
GTK2.Box set_child_packing( GTK2.Widget child_widget, int expandp, int fillp, int padding, int pack_type ); 
//! widget, expand, fill, padding, pack_type. 
//! If exand is true, the widget will be expanded when the box is resized. 
//! If 'fill' is true, the widget will be resized to fill up all available 
//! space. Padding is the amount of padding to use, and pack_type is 
//! one of @[PACK_DIRECTION_BTT], @[PACK_DIRECTION_LTR], @[PACK_DIRECTION_RTL], @[PACK_DIRECTION_TTB], @[PACK_END] and @[PACK_START]. 
//!  
//! You can emulate pack_start and pack_end with add and set_child_packing. 
//! 
//! 
 
GTK2.Box set_homogeneous( int homogeneousp ); 
//! If true, all widgets in the box will get exactly the same amount of space 
//! 
//! 
 
GTK2.Box set_spacing( int spacing ); 
//! This is the amount of spacing (in pixels) inserted beween all widgets 
//! 
//!