mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-19 19:19:32 +01:00
* Patch from Paul Ishenin for GDK_IS_CURSOR
git-svn-id: trunk@11238 -
This commit is contained in:
parent
be6d9da8a8
commit
52c9e84255
@ -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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user