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

type
   PGnomeAbout =  ^TGnomeAbout;
   TGnomeAbout = record
        dialog : TGnomeDialog;
     end;
   GNOME_ABOUT = PGnomeAbout;

   PGnomeAboutClass =  ^TGnomeAboutClass;
   TGnomeAboutClass = record
        parent_class : TGnomeDialogClass;
     end;
   GNOME_ABOUT_CLASS = PGnomeAboutClass;

function GNOME_TYPE_ABOUT : TGTKType;
function GNOME_IS_ABOUT(obj : Pointer) : Boolean;
function GNOME_IS_ABOUT_CLASS(klass : Pointer) : Boolean;

function gnome_about_get_type:TGTKType;cdecl;external libgnomeuidll name 'gnome_about_get_type';
function gnome_about_new(title:Pgchar; version:Pgchar; copyright:Pgchar; authors:PPgchar; comments:Pgchar;
           logo:Pgchar):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_about_new';
procedure gnome_about_construct(about:PGnomeAbout; title:Pgchar; version:Pgchar; copyright:Pgchar; authors:PPgchar;
            comments:Pgchar; logo:Pgchar);cdecl;external libgnomeuidll name 'gnome_about_construct';

{$EndIf read_interface}

{$Ifdef read_implementation}

function GNOME_TYPE_ABOUT : TGTKType;
begin
  GNOME_TYPE_ABOUT:=gnome_about_get_type;
end;

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

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

{$Endif read_implementation}