From acafc0626962720718f03032cb0bfcd1bba0df1b Mon Sep 17 00:00:00 2001 From: Thomas Gamper Date: Tue, 27 Oct 2009 18:32:58 +0000 Subject: [PATCH] TG: Add cursor position setter git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28897 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Headers/Additions/GNUstepGUI/GSDisplayServer.h | 1 + Source/GSDisplayServer.m | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 601fa5b82..b965292a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-10-27 Thomas Gamper + + * Source/GSDisplayServer.m + * Headers/Additions/GNUstepGUI/GSDisplayServer.h: + Add cursor position setter (setMouseLocation:onScreen:). + 2009-10-25 Fred Kiefer * Source/NSGradient.m (-drawInRect:angle:): Correct the math by diff --git a/Headers/Additions/GNUstepGUI/GSDisplayServer.h b/Headers/Additions/GNUstepGUI/GSDisplayServer.h index 7c880055b..cc4daa596 100644 --- a/Headers/Additions/GNUstepGUI/GSDisplayServer.h +++ b/Headers/Additions/GNUstepGUI/GSDisplayServer.h @@ -156,6 +156,7 @@ APPKIT_EXPORT NSString * GSScreenNumber; - (NSPoint) mouseLocationOnScreen: (int)aScreen window: (int *)win; - (BOOL) capturemouse: (int)win; - (void) releasemouse; +- (void) setMouseLocation: (NSPoint)mouseLocation onScreen: (int)aScreen; - (void) hidecursor; - (void) showcursor; - (void) standardcursor: (int) style : (void**)cid; diff --git a/Source/GSDisplayServer.m b/Source/GSDisplayServer.m index ca1c8c9b2..c6f2e4e4e 100644 --- a/Source/GSDisplayServer.m +++ b/Source/GSDisplayServer.m @@ -860,6 +860,12 @@ GSCurrentServer(void) [self subclassResponsibility: _cmd]; } +/** Set mouse cursor position. */ +- (void) setMouseLocation: (NSPoint)mouseLocation onScreen: (int)aScreen +{ + [self subclassResponsibility: _cmd]; +} + /** Hides the cursor */ - (void) hidecursor {