~ubuntu-branches/ubuntu/dapper/fpc/dapper

« back to all changes in this revision

Viewing changes to packages/extra/gtk2/gtk+/gdk-pixbuf/gdk-pixbuf-loader.inc

  • Committer: Bazaar Package Importer
  • Author(s): Carlos Laviola
  • Date: 2005-05-30 11:59:10 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050530115910-x5pbzm4qqta4i94h
Tags: 2.0.0-2
debian/fp-compiler.postinst.in: forgot to reapply the patch that
correctly creates the slave link to pc(1).  (Closes: #310907)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// included by gdk2pixbuf.pp
 
2
 
 
3
{$IFDEF read_interface}
 
4
 
 
5
type
 
6
{< private > }
 
7
   PGdkPixbufLoader = ^TGdkPixbufLoader;
 
8
   TGdkPixbufLoader = record
 
9
        parent_instance : TGObject;
 
10
        priv : gpointer;
 
11
     end;
 
12
 
 
13
{ Last known frame needs a redraw for x, y, width, height  }
 
14
   PGdkPixbufLoaderClass = ^TGdkPixbufLoaderClass;
 
15
   TGdkPixbufLoaderClass = record
 
16
        parent_class : TGObjectClass;
 
17
        area_prepared : procedure (loader:PGdkPixbufLoader); cdecl;
 
18
        area_updated : procedure (loader:PGdkPixbufLoader; x:longint; y:longint; width:longint; height:longint); cdecl;
 
19
        closed : procedure (loader:PGdkPixbufLoader); cdecl;
 
20
     end;
 
21
 
 
22
 
 
23
function GDK_TYPE_PIXBUF_LOADER : GType;
 
24
function GDK_PIXBUF_LOADER(obj : pointer) : PGdkPixbufLoader;
 
25
function GDK_PIXBUF_LOADER_CLASS(klass : pointer) : PGdkPixbufLoaderClass;
 
26
function GDK_IS_PIXBUF_LOADER(obj : pointer) : boolean;
 
27
function GDK_IS_PIXBUF_LOADER_CLASS(klass : pointer) : boolean;
 
28
function GDK_PIXBUF_LOADER_GET_CLASS(obj : pointer) : PGdkPixbufLoaderClass;
 
29
 
 
30
function gdk_pixbuf_loader_get_type:GType; cdecl; external gdkpixbuflib;
 
31
function gdk_pixbuf_loader_new:PGdkPixbufLoader; cdecl; external gdkpixbuflib;
 
32
function gdk_pixbuf_loader_new_with_type(image_type:Pchar; error:PPGError):PGdkPixbufLoader; cdecl; external gdkpixbuflib;
 
33
function gdk_pixbuf_loader_write(loader:PGdkPixbufLoader; buf:Pguchar; count:gsize; error:PPGError):gboolean; cdecl; external gdkpixbuflib;
 
34
function gdk_pixbuf_loader_get_pixbuf(loader:PGdkPixbufLoader):PGdkPixbuf; cdecl; external gdkpixbuflib;
 
35
function gdk_pixbuf_loader_get_animation(loader:PGdkPixbufLoader):PGdkPixbufAnimation; cdecl; external gdkpixbuflib;
 
36
function gdk_pixbuf_loader_close(loader:PGdkPixbufLoader; error:PPGError):gboolean; cdecl; external gdkpixbuflib;
 
37
 
 
38
{$ENDIF read_interface}
 
39
 
 
40
//------------------------------------------------------------------------------
 
41
 
 
42
{$IFDEF read_implementation}
 
43
function GDK_TYPE_PIXBUF_LOADER : GType;
 
44
begin
 
45
  GDK_TYPE_PIXBUF_LOADER:=gdk_pixbuf_loader_get_type;
 
46
end;
 
47
 
 
48
function GDK_PIXBUF_LOADER(obj : pointer) : PGdkPixbufLoader;
 
49
begin
 
50
  GDK_PIXBUF_LOADER:=PGdkPixbufLoader(G_TYPE_CHECK_INSTANCE_CAST(obj,
 
51
                                                       GDK_TYPE_PIXBUF_LOADER));
 
52
end;
 
53
 
 
54
function GDK_PIXBUF_LOADER_CLASS(klass : pointer) : PGdkPixbufLoaderClass;
 
55
begin
 
56
  GDK_PIXBUF_LOADER_CLASS:=PGdkPixbufLoaderClass(G_TYPE_CHECK_CLASS_CAST(klass,
 
57
                                                       GDK_TYPE_PIXBUF_LOADER));
 
58
end;
 
59
 
 
60
function GDK_IS_PIXBUF_LOADER(obj : pointer) : boolean;
 
61
begin
 
62
  GDK_IS_PIXBUF_LOADER:=G_TYPE_CHECK_INSTANCE_TYPE(obj,GDK_TYPE_PIXBUF_LOADER);
 
63
end;
 
64
 
 
65
function GDK_IS_PIXBUF_LOADER_CLASS(klass : pointer) : boolean;
 
66
begin
 
67
  GDK_IS_PIXBUF_LOADER_CLASS:=G_TYPE_CHECK_CLASS_TYPE(klass,
 
68
                                                      GDK_TYPE_PIXBUF_LOADER);
 
69
end;
 
70
 
 
71
function GDK_PIXBUF_LOADER_GET_CLASS(obj : pointer) : PGdkPixbufLoaderClass;
 
72
begin
 
73
  GDK_PIXBUF_LOADER_GET_CLASS:=PGdkPixbufLoaderClass(G_TYPE_INSTANCE_GET_CLASS(
 
74
                                                   obj,GDK_TYPE_PIXBUF_LOADER));
 
75
end;
 
76
{$ENDIF}
 
77