Added bi-directional diagonal mouse cursors to standard cursors

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@37012 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Frank Le Grand 2013-08-23 16:09:17 +00:00
parent 4b27157a46
commit 94976243dd
2 changed files with 15 additions and 1 deletions

View file

@ -119,6 +119,8 @@ backgroundColorHint:(NSColor *)bg
+ (NSCursor*) resizeRightCursor;
+ (NSCursor*) resizeUpCursor;
+ (NSCursor*) resizeUpDownCursor;
+ (NSCursor*) resizeNWSECursor;
+ (NSCursor*) resizeSESWCursor;
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
@ -150,7 +152,9 @@ typedef enum {
GSResizeDownCursor,
GSResizeUpDownCursor,
GSContextualMenuCursor,
GSDisappearingItemCursor
GSDisappearingItemCursor,
GSResizeNWSECursor,
GSResizeNESWCursor
} GSCursorTypes;
#endif /* _GNUstep_H_NSCursor */

View file

@ -277,6 +277,16 @@ NSCursor *getStandardCursor(NSString *name, int style)
return getStandardCursor(@"GSResizeUpDownCursor", GSResizeUpDownCursor);
}
+ (NSCursor*) resizeNWSECursor
{
return getStandardCursor(@"GSResizeNWSECursor", GSResizeNWSECursor);
}
+ (NSCursor*) resizeSESWCursor
{
return getStandardCursor(@"GSResizeNESWCursor", GSResizeNESWCursor);
}
/**<p>Returns the current cursor.</p>
*/
+ (NSCursor*) currentCursor