diff options
| author | michael <michael@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2008-06-18 06:52:32 +0000 |
|---|---|---|
| committer | michael <michael@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2008-06-18 06:52:32 +0000 |
| commit | ed3a214f3e57b148619950ccdba218efb9ffdd3c (patch) | |
| tree | 448c06666ec870bb4cee1cc59624dcdab5737914 /packages/gtk2 | |
| parent | 97da1af246ba1fe269c394604d99336762c88847 (diff) | |
| download | fpc-ed3a214f3e57b148619950ccdba218efb9ffdd3c.tar.gz | |
* Patch from Paul Ishenin for GDK_IS_CURSOR
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@11238 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/gtk2')
| -rw-r--r-- | packages/gtk2/src/gtk+/gdk/gdkcursor.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/gtk2/src/gtk+/gdk/gdkcursor.inc b/packages/gtk2/src/gtk+/gdk/gdkcursor.inc index 59ecd453c4..b806a2e46e 100644 --- a/packages/gtk2/src/gtk+/gdk/gdkcursor.inc +++ b/packages/gtk2/src/gtk+/gdk/gdkcursor.inc @@ -99,6 +99,8 @@ const GDK_LAST_CURSOR=GDK_XTERM+1; function GDK_TYPE_CURSOR : GType; +function GDK_CURSOR(anObject : pointer) : PGdkCursor; +function GDK_IS_CURSOR(anObject : pointer) : boolean; { Cursors } @@ -135,4 +137,13 @@ begin GDK_TYPE_CURSOR:=gdk_cursor_get_type; end; +function GDK_CURSOR(anObject : pointer) : PGdkCursor; +begin + GDK_CURSOR:=PGdkCursor(G_TYPE_CHECK_INSTANCE_CAST(anObject,GDK_TYPE_CURSOR)); +end; + +function GDK_IS_CURSOR(anObject : pointer) : boolean; +begin + GDK_IS_CURSOR:=G_TYPE_CHECK_INSTANCE_TYPE(anObject,GDK_TYPE_CURSOR); +end; {$ENDIF} |
