~ubuntu-branches/ubuntu/lucid/fpc/lucid-proposed

« back to all changes in this revision

Viewing changes to fpcsrc/packages/extra/gtk2/gtk+/gdk/gdkpixmap.inc

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-10-09 23:29:00 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081009232900-553f61m37jkp6upv
Tags: 2.2.2-4
[ Torsten Werner ]
* Update ABI version in fpc-depends automatically.
* Remove empty directories from binary package fpc-source.

[ Mazen Neifer ]
* Removed leading path when calling update-alternatives to remove a Linitian
  error.
* Fixed clean target.
* Improved description of packages. (Closes: #498882)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// included by gdk2.pp
2
 
 
3
 
{$IFDEF read_interface_types}
4
 
{ window-system-specific delegate anObject  }
5
 
   PGdkPixmapObject = ^TGdkPixmapObject;
6
 
   TGdkPixmapObject = record
7
 
        parent_instance : TGdkDrawable;
8
 
        impl : PGdkDrawable;
9
 
        depth : gint;
10
 
     end;
11
 
 
12
 
   PGdkPixmapObjectClass = ^TGdkPixmapObjectClass;
13
 
   TGdkPixmapObjectClass = record
14
 
        parent_class : TGdkDrawableClass;
15
 
     end;
16
 
 
17
 
{$ENDIF read_interface_types}
18
 
 
19
 
//------------------------------------------------------------------------------
20
 
 
21
 
{$IFDEF read_interface_rest}
22
 
function GDK_TYPE_PIXMAP : GType;
23
 
function GDK_PIXMAP(anObject : Pointer) : PGdkPixmap;
24
 
function GDK_PIXMAP_CLASS(klass : Pointer) : PGdkPixmapObjectClass;
25
 
function GDK_IS_PIXMAP(anObject : Pointer) : boolean;
26
 
function GDK_IS_PIXMAP_CLASS(klass : Pointer) : boolean;
27
 
function GDK_PIXMAP_GET_CLASS(obj : Pointer) : PGdkPixmapObjectClass;
28
 
 
29
 
function GDK_PIXMAP_OBJECT(anObject : Pointer) : PGdkPixmapObject;
30
 
 
31
 
 
32
 
function gdk_pixmap_get_type:GType; cdecl; external gdklib;
33
 
 
34
 
 
35
 
{ Pixmaps }
36
 
 
37
 
function gdk_pixmap_new(window:PGdkWindow; width:gint; height:gint; depth:gint):PGdkPixmap; cdecl; external gdklib;
38
 
function gdk_bitmap_create_from_data(window:PGdkWindow; data:Pgchar; width:gint; height:gint):PGdkBitmap; cdecl; external gdklib;
39
 
function gdk_pixmap_create_from_data(window:PGdkWindow; data:Pgchar; width:gint; height:gint; depth:gint;
40
 
           fg:PGdkColor; bg:PGdkColor):PGdkPixmap; cdecl; external gdklib;
41
 
function gdk_pixmap_create_from_xpm(window:PGdkWindow; var mask:PGdkBitmap; transparent_color:PGdkColor; filename:Pgchar):PGdkPixmap; cdecl; external gdklib;
42
 
function gdk_pixmap_colormap_create_from_xpm(window:PGdkWindow; colormap:PGdkColormap; var mask:PGdkBitmap; transparent_color:PGdkColor; filename:Pgchar):PGdkPixmap; cdecl; external gdklib;
43
 
function gdk_pixmap_create_from_xpm_d(window:PGdkWindow; var mask:PGdkBitmap; transparent_color:PGdkColor; data:PPgchar):PGdkPixmap; cdecl; external gdklib;
44
 
function gdk_pixmap_colormap_create_from_xpm_d(window:PGdkWindow; colormap:PGdkColormap; var mask:PGdkBitmap; transparent_color:PGdkColor; data:PPgchar):PGdkPixmap; cdecl; external gdklib;
45
 
{ Functions to create/lookup pixmaps from their native equivalents }
46
 
 
47
 
{$ifndef GDK_MULTIHEAD_SAFE}
48
 
function gdk_pixmap_foreign_new(anid:TGdkNativeWindow):PGdkPixmap; cdecl; external gdklib;
49
 
function gdk_pixmap_lookup(anid:TGdkNativeWindow):PGdkPixmap; cdecl; external gdklib;
50
 
{$endif}
51
 
{ GDK_MULTIHEAD_SAFE  }
52
 
 
53
 
function gdk_pixmap_foreign_new_for_display(display:PGdkDisplay; anid:TGdkNativeWindow):PGdkPixmap; cdecl; external gdklib;
54
 
function gdk_pixmap_lookup_for_display(display:PGdkDisplay; anid:TGdkNativeWindow):PGdkPixmap; cdecl; external gdklib;
55
 
 
56
 
{$ifndef GDK_DISABLE_DEPRECATED}
57
 
function gdk_bitmap_ref(drawable:PGdkDrawable):PGdkDrawable;
58
 
procedure gdk_bitmap_unref(drawable:PGdkDrawable);
59
 
function gdk_pixmap_ref(drawable:PGdkDrawable):PGdkDrawable;
60
 
procedure gdk_pixmap_unref(drawable:PGdkDrawable);
61
 
{$endif}
62
 
{$endif read_interface_rest}
63
 
 
64
 
//------------------------------------------------------------------------------
65
 
 
66
 
{$IFDEF read_implementation}
67
 
function GDK_TYPE_PIXMAP : GType;
68
 
begin
69
 
  GDK_TYPE_PIXMAP:=gdk_pixmap_get_type;
70
 
end;
71
 
 
72
 
function GDK_PIXMAP(anObject : Pointer) : PGdkPixmap;
73
 
begin
74
 
  GDK_PIXMAP:=PGdkPixmap(G_TYPE_CHECK_INSTANCE_CAST(anObject,GDK_TYPE_PIXMAP));
75
 
end;
76
 
 
77
 
function GDK_PIXMAP_CLASS(klass : Pointer) : PGdkPixmapObjectClass;
78
 
begin
79
 
  GDK_PIXMAP_CLASS:=PGdkPixmapObjectClass(G_TYPE_CHECK_CLASS_CAST(klass,
80
 
                                                              GDK_TYPE_PIXMAP));
81
 
end;
82
 
 
83
 
function GDK_IS_PIXMAP(anObject : Pointer) : boolean;
84
 
begin
85
 
  GDK_IS_PIXMAP:=G_TYPE_CHECK_INSTANCE_TYPE(anObject,GDK_TYPE_PIXMAP);
86
 
end;
87
 
 
88
 
function GDK_IS_PIXMAP_CLASS(klass : Pointer) : boolean;
89
 
begin
90
 
  GDK_IS_PIXMAP_CLASS:=G_TYPE_CHECK_CLASS_TYPE(klass,GDK_TYPE_PIXMAP);
91
 
end;
92
 
 
93
 
function GDK_PIXMAP_GET_CLASS(obj : Pointer) : PGdkPixmapObjectClass;
94
 
begin
95
 
  GDK_PIXMAP_GET_CLASS:=PGdkPixmapObjectClass(G_TYPE_INSTANCE_GET_CLASS(obj,
96
 
                                                              GDK_TYPE_PIXMAP));
97
 
end;
98
 
 
99
 
function GDK_PIXMAP_OBJECT(anObject : Pointer) : PGdkPixmapObject;
100
 
begin
101
 
  GDK_PIXMAP_OBJECT:=PGdkPixmapObject(GDK_PIXMAP(anObject));
102
 
end;
103
 
 
104
 
function gdk_bitmap_ref(drawable:PGdkDrawable):PGdkDrawable;
105
 
begin
106
 
  gdk_bitmap_ref:=GDK_DRAWABLE(g_object_ref(G_OBJECT(drawable)));
107
 
end;
108
 
 
109
 
procedure gdk_bitmap_unref(drawable:PGdkDrawable);
110
 
begin
111
 
  g_object_unref(G_OBJECT(drawable));
112
 
end;
113
 
 
114
 
function gdk_pixmap_ref(drawable:PGdkDrawable):PGdkDrawable;
115
 
begin
116
 
  gdk_pixmap_ref:=GDK_DRAWABLE(g_object_ref(G_OBJECT(drawable)));
117
 
end;
118
 
 
119
 
procedure gdk_pixmap_unref(drawable:PGdkDrawable);
120
 
begin
121
 
  g_object_unref(G_OBJECT(drawable));
122
 
end;
123
 
 
124
 
{$ENDIF}
125