1
{$IfDef read_interface}
4
TGnomeProcbarCallback = function (_para1:gpointer):gint; cdecl;
6
PGnomeProcBar = ^TGnomeProcBar;
10
thelabel : PGtkWidget;
15
colors_allocated : gint;
20
cb : TGnomeProcbarCallback;
23
GNOME_PROC_BAR = PGnomeProcBar;
26
bm__GnomeProcBar_vertical = $1;
27
bp__GnomeProcBar_vertical = 0;
28
function vertical(var a : TGnomeProcBar) : gboolean;
29
procedure set_vertical(var a : TGnomeProcBar; __vertical : gboolean);
31
PGnomeProcBarClass = ^TGnomeProcBarClass;
32
TGnomeProcBarClass = record
33
parent_class : TGtkHBoxClass;
35
GNOME_PROC_BAR_CLASS = PGnomeProcBarClass;
37
function GNOME_TYPE_PROC_BAR : TGTKType;
38
function GNOME_IS_PROC_BAR(obj : Pointer) : Boolean;
39
function GNOME_IS_PROC_BAR_CLASS(klass : Pointer) : Boolean;
41
function gnome_proc_bar_get_type:TGTKTYPE;cdecl;external libgnomeuidll name 'gnome_proc_bar_get_type';
42
function gnome_proc_bar_new(thelabel:PGtkWidget; n:gint; colors:PGdkColor; cb : TGnomeProcbarCallback):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_proc_bar_new';
43
procedure gnome_proc_bar_construct(pb:PGnomeProcBar; thelabel:PGtkWidget; n:gint; colors:PGdkColor; cb:TGnomeProcbarCallback);cdecl;external libgnomeuidll name 'gnome_proc_bar_construct';
44
procedure gnome_proc_bar_set_values(pb:PGnomeProcBar; val:Pguint);cdecl;external libgnomeuidll name 'gnome_proc_bar_set_values';
45
procedure gnome_proc_bar_set_orient(pb:PGnomeProcBar; vertical:gboolean);cdecl;external libgnomeuidll name 'gnome_proc_bar_set_orient';
46
procedure gnome_proc_bar_start(pb:PGnomeProcBar; gtime:gint; data:gpointer);cdecl;external libgnomeuidll name 'gnome_proc_bar_start';
47
procedure gnome_proc_bar_stop(pb:PGnomeProcBar);cdecl;external libgnomeuidll name 'gnome_proc_bar_stop';
48
procedure gnome_proc_bar_update(pb:PGnomeProcBar; colors:PGdkColor);cdecl;external libgnomeuidll name 'gnome_proc_bar_update';
50
{$EndIf read_interface}
52
{$Ifdef read_implementation}
54
function GNOME_TYPE_PROC_BAR : TGTKType;
56
GNOME_TYPE_PROC_BAR:=gnome_proc_bar_get_type;
59
function GNOME_IS_PROC_BAR(obj : Pointer) : Boolean;
61
GNOME_IS_PROC_BAR:=(obj<>nil) and GNOME_IS_PROC_BAR_CLASS(PGtkTypeObject(obj)^.klass);
64
function GNOME_IS_PROC_BAR_CLASS(klass : Pointer) : Boolean;
66
GNOME_IS_PROC_BAR_CLASS:=(klass<>nil) and (PGtkTypeClass(klass)^.thetype=GNOME_TYPE_PROC_BAR);
69
function vertical(var a : TGnomeProcBar) : gboolean;
71
vertical:=gboolean((a.flag0 and bm__GnomeProcBar_vertical) shr bp__GnomeProcBar_vertical);
74
procedure set_vertical(var a : TGnomeProcBar; __vertical : gboolean);
76
a.flag0:=a.flag0 or ((gint(__vertical) shl bp__GnomeProcBar_vertical) and bm__GnomeProcBar_vertical);
79
{$Endif read_implementation}