blob: b36af7921fea6a5ceac4af518042a5dfd608069a (
plain)
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
|
// included by gtk2.pas
{$IFDEF read_forward_definitions}
{$ENDIF read_forward_definitions}
//------------------------------------------------------------------------------
{$IFDEF read_interface_types}
PGtkAlignment = ^TGtkAlignment;
TGtkAlignment = record
bin : TGtkBin;
xalign : gfloat;
yalign : gfloat;
xscale : gfloat;
yscale : gfloat;
end;
PGtkAlignmentClass = ^TGtkAlignmentClass;
TGtkAlignmentClass = record
parent_class : TGtkBinClass;
end;
{$ENDIF read_interface_types}
//------------------------------------------------------------------------------
{$IFDEF read_interface_rest}
function GTK_TYPE_ALIGNMENT : GType;
function GTK_ALIGNMENT(obj: pointer) : PGtkAlignment;
function GTK_ALIGNMENT_CLASS(klass: pointer) : PGtkAlignmentClass;
function GTK_IS_ALIGNMENT(obj: pointer) : boolean;
function GTK_IS_ALIGNMENT_CLASS(klass: pointer) : boolean;
function GTK_ALIGNMENT_GET_CLASS(obj: pointer) : PGtkAlignmentClass;
function gtk_alignment_get_type:TGtkType; cdecl; external gtklib;
function gtk_alignment_new(xalign:gfloat; yalign:gfloat; xscale:gfloat; yscale:gfloat):PGtkWidget; cdecl; external gtklib;
procedure gtk_alignment_set(alignment:PGtkAlignment; xalign:gfloat; yalign:gfloat; xscale:gfloat; yscale:gfloat); cdecl; external gtklib;
{$ifdef HasGTK2_4}
procedure gtk_alignment_get_padding(alignment: PGtkAlignment; padding_top: Pguint; padding_bottom: Pguint; padding_left: Pguint; padding_right: Pguint); cdecl; external gtklib;
procedure gtk_alignment_set_padding(alignment: PGtkAlignment; padding_top: guint; padding_bottom: guint; padding_left: guint; padding_right: guint); cdecl; external gtklib;
{$endif}
{$ENDIF read_interface_rest}
//------------------------------------------------------------------------------
{$IFDEF read_implementation}
function GTK_TYPE_ALIGNMENT : GType;
begin
GTK_TYPE_ALIGNMENT:=gtk_alignment_get_type;
end;
function GTK_ALIGNMENT(obj: pointer) : PGtkAlignment;
begin
GTK_ALIGNMENT:=PGtkAlignment(GTK_CHECK_CAST(obj,GTK_TYPE_ALIGNMENT));
end;
function GTK_ALIGNMENT_CLASS(klass: pointer) : PGtkAlignmentClass;
begin
GTK_ALIGNMENT_CLASS:=PGtkAlignmentClass(GTK_CHECK_CLASS_CAST(klass,GTK_TYPE_ALIGNMENT));
end;
function GTK_IS_ALIGNMENT(obj: pointer) : boolean;
begin
GTK_IS_ALIGNMENT:=GTK_CHECK_TYPE(obj,GTK_TYPE_ALIGNMENT);
end;
function GTK_IS_ALIGNMENT_CLASS(klass: pointer) : boolean;
begin
GTK_IS_ALIGNMENT_CLASS:=GTK_CHECK_CLASS_TYPE(klass,GTK_TYPE_ALIGNMENT);
end;
function GTK_ALIGNMENT_GET_CLASS(obj: pointer) : PGtkAlignmentClass;
begin
GTK_ALIGNMENT_GET_CLASS:=PGtkAlignmentClass(GTK_CHECK_GET_CLASS(obj,GTK_TYPE_ALIGNMENT));
end;
{$ENDIF read_implementation}
// included by gtk2.pas
|