2
$Id: gtkbox.pp,v 1.2 2002/09/07 15:42:59 peter Exp $
5
{****************************************************************************
7
****************************************************************************}
9
{$ifdef read_interface}
14
container : TGtkContainer;
17
flag0 : {$ifdef win32}longint{$else}word{$endif};
21
bm_box_homogeneous = 1;
22
bp_box_homogeneous = 0;
23
function homogeneous(var a : TGtkBox) : guint;
24
procedure set_homogeneous(var a : TGtkBox; __homogeneous : guint);
27
PGtkBoxClass = ^TGtkBoxClass;
29
parent_class : TGtkContainerClass;
32
PGtkBoxChild = ^TGtkBoxChild;
36
flag0 : {$ifdef win32}longint{$else}word{$endif};
47
function expand(var a : TGtkBoxChild) : guint;
48
procedure set_expand(var a : TGtkBoxChild; __expand : guint);
49
function fill(var a : TGtkBoxChild) : guint;
50
procedure set_fill(var a : TGtkBoxChild; __fill : guint);
51
function pack(var a : TGtkBoxChild) : guint;
52
procedure set_pack(var a : TGtkBoxChild; __pack : guint);
56
GTK_BOX_CLASS=PGtkBoxClass;
58
function GTK_BOX_TYPE:TGtkType;cdecl;external gtkdll name 'gtk_box_get_type';
59
function GTK_IS_BOX(obj:pointer):boolean;
60
function GTK_IS_BOX_CLASS(klass:pointer):boolean;
62
function gtk_box_get_type:TGtkType;cdecl;external gtkdll name 'gtk_box_get_type';
63
procedure gtk_box_pack_start(box:PGtkBox; child:PGtkWidget; expand:gboolean; fill:gboolean; padding:guint);cdecl;external gtkdll name 'gtk_box_pack_start';
64
procedure gtk_box_pack_end(box:PGtkBox; child:PGtkWidget; expand:gboolean; fill:gboolean; padding:guint);cdecl;external gtkdll name 'gtk_box_pack_end';
65
procedure gtk_box_pack_start_defaults(box:PGtkBox; widget:PGtkWidget);cdecl;external gtkdll name 'gtk_box_pack_start_defaults';
66
procedure gtk_box_pack_end_defaults(box:PGtkBox; widget:PGtkWidget);cdecl;external gtkdll name 'gtk_box_pack_end_defaults';
67
procedure gtk_box_set_homogeneous(box:PGtkBox; homogeneous:gboolean);cdecl;external gtkdll name 'gtk_box_set_homogeneous';
68
procedure gtk_box_set_spacing(box:PGtkBox; spacing:gint);cdecl;external gtkdll name 'gtk_box_set_spacing';
69
procedure gtk_box_reorder_child(box:PGtkBox; child:PGtkWidget; position:gint);cdecl;external gtkdll name 'gtk_box_reorder_child';
70
procedure gtk_box_query_child_packing(box:PGtkBox; child:PGtkWidget; expand:Pgboolean; fill:Pgboolean; padding:Pguint;pack_type:PGtkPackType);cdecl;external gtkdll name 'gtk_box_query_child_packing';
71
procedure gtk_box_set_child_packing(box:PGtkBox; child:PGtkWidget; expand:gboolean; fill:gboolean; padding:guint; pack_type:TGtkPackType);cdecl;external gtkdll name 'gtk_box_set_child_packing';
73
{$endif read_interface}
76
{****************************************************************************
78
****************************************************************************}
80
{$ifdef read_implementation}
82
function homogeneous(var a : TGtkBox) : guint;
84
homogeneous:=(a.flag0 and bm_box_homogeneous) shr bp_box_homogeneous;
87
procedure set_homogeneous(var a : TGtkBox; __homogeneous : guint);
89
a.flag0:=a.flag0 or ((__homogeneous shl bp_box_homogeneous) and bm_box_homogeneous);
92
function expand(var a : TGtkBoxChild) : guint;
94
expand:=(a.flag0 and bm_box_expand) shr bp_box_expand;
97
procedure set_expand(var a : TGtkBoxChild; __expand : guint);
99
a.flag0:=a.flag0 or ((__expand shl bp_box_expand) and bm_box_expand);
102
function fill(var a : TGtkBoxChild) : guint;
104
fill:=(a.flag0 and bm_box_fill) shr bp_box_fill;
107
procedure set_fill(var a : TGtkBoxChild; __fill : guint);
109
a.flag0:=a.flag0 or ((__fill shl bp_box_fill) and bm_box_fill);
112
function pack(var a : TGtkBoxChild) : guint;
114
pack:=(a.flag0 and bm_box_pack) shr bp_box_pack;
117
procedure set_pack(var a : TGtkBoxChild; __pack : guint);
119
a.flag0:=a.flag0 or ((__pack shl bp_box_pack) and bm_box_pack);
122
function GTK_IS_BOX(obj:pointer):boolean;
124
GTK_IS_BOX:=(obj<>nil) and GTK_IS_BOX_CLASS(PGtkTypeObject(obj)^.klass);
127
function GTK_IS_BOX_CLASS(klass:pointer):boolean;
129
GTK_IS_BOX_CLASS:=(klass<>nil) and (PGtkTypeClass(klass)^.thetype=GTK_BOX_TYPE);
132
{$endif read_implementation}
137
Revision 1.2 2002/09/07 15:42:59 peter
138
* old logs removed and tabs fixed
140
Revision 1.1 2002/01/29 17:55:08 peter
141
* splitted to base and extra