mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 20:49:13 +00:00
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:
parent
4b27157a46
commit
94976243dd
2 changed files with 15 additions and 1 deletions
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue