TG: Add cursor position setter

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28897 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Thomas Gamper 2009-10-27 18:32:58 +00:00
parent 54fad95e5b
commit acafc06269
3 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2009-10-27 Thomas Gamper <icicle@cg.tuwien.ac.at>
* Source/GSDisplayServer.m
* Headers/Additions/GNUstepGUI/GSDisplayServer.h:
Add cursor position setter (setMouseLocation:onScreen:).
2009-10-25 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSGradient.m (-drawInRect:angle:): Correct the math by

View file

@ -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;

View file

@ -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
{