summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/gnome1/src/libgnomeui/gnomedruid.inc
blob: 98e9e91c499502c15f3e97e907f0338ae7bdc983 (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
{$IfDef read_interface}

type
   PGnomeDruid = ^TGnomeDruid;
   TGnomeDruid = record
        parent : TGtkContainer;
        back : PGtkWidget;
        next : PGtkWidget;
        cancel : PGtkWidget;
        finish : PGtkWidget;
        current : PGnomeDruidPage;
        children : PGList;
        show_finish : gboolean;
     end;
   GNOME_DRUID = PGnomeDruid;

   PGnomeDruidClass = ^TGnomeDruidClass;
   TGnomeDruidClass = record
        parent_class : TGtkContainerClass;
        cancel : procedure (druid:PGnomeDruid);cdecl;
     end;
   GNOME_DRUID_CLASS = PGnomeDruidClass;

function GNOME_TYPE_DRUID : TGTKType;
function GNOME_IS_DRUID(obj : Pointer) : Boolean;
function GNOME_IS_DRUID_CLASS(klass : Pointer) : Boolean;

function gnome_druid_get_type:TGtkType;cdecl;external libgnomeuidll name 'gnome_druid_get_type';
function gnome_druid_new:PGtkWidget;cdecl;external libgnomeuidll name 'gnome_druid_new';
procedure gnome_druid_set_buttons_sensitive(druid:PGnomeDruid; back_sensitive:gboolean; next_sensitive:gboolean; cancel_sensitive:gboolean);cdecl;external libgnomeuidll name 'gnome_druid_set_buttons_sensitive';
procedure gnome_druid_set_show_finish(druid:PGnomeDruid; show_finish:gboolean);cdecl;external libgnomeuidll name 'gnome_druid_set_show_finish';
procedure gnome_druid_prepend_page(druid:PGnomeDruid; page:PGnomeDruidPage);cdecl;external libgnomeuidll name 'gnome_druid_prepend_page';
procedure gnome_druid_insert_page(druid:PGnomeDruid; back_page:PGnomeDruidPage; page:PGnomeDruidPage);cdecl;external libgnomeuidll name 'gnome_druid_insert_page';
procedure gnome_druid_append_page(druid:PGnomeDruid; page:PGnomeDruidPage);cdecl;external libgnomeuidll name 'gnome_druid_append_page';
procedure gnome_druid_set_page(druid:PGnomeDruid; page:PGnomeDruidPage);cdecl;external libgnomeuidll name 'gnome_druid_set_page';

{$EndIf read_interface}

{$Ifdef read_implementation}

function GNOME_TYPE_DRUID : TGTKType;
begin
  GNOME_TYPE_DRUID:=gnome_druid_get_type;
end;

function GNOME_IS_DRUID(obj : Pointer) : Boolean;
begin
   GNOME_IS_DRUID:=(obj<>nil) and GNOME_IS_DRUID_CLASS(PGtkTypeObject(obj)^.klass);
end;

function GNOME_IS_DRUID_CLASS(klass : Pointer) : Boolean;
begin
   GNOME_IS_DRUID_CLASS:=(klass<>nil) and (PGtkTypeClass(klass)^.thetype=GNOME_TYPE_DRUID);
end;

{$Endif read_implementation}