mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 01:50:48 +00:00
* Source/NSCursor.m (_getStandardCursor): Rename to
getStandardCursor and make static and non-inlined. Update callers. * Source/NSTableView.m (computePeriod): Make static. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20102 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
811ae4cf9f
commit
767334b501
3 changed files with 22 additions and 16 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-09-21 23:57 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
|
* Source/NSCursor.m (_getStandardCursor): Rename to
|
||||||
|
getStandardCursor and make static and non-inlined. Update callers.
|
||||||
|
* Source/NSTableView.m (computePeriod): Make static.
|
||||||
|
|
||||||
2004-09-21 18:53 Alexander Malmberg <alexander@malmberg.org>
|
2004-09-21 18:53 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
* Source/GSFontInfo.m (-defaultLineHeightForFont): Adjust line
|
* Source/GSFontInfo.m (-defaultLineHeightForFont): Adjust line
|
||||||
|
|
|
@ -170,8 +170,8 @@ static NSMutableDictionary *cursorDict = nil;
|
||||||
/*
|
/*
|
||||||
* Getting the Cursor
|
* Getting the Cursor
|
||||||
*/
|
*/
|
||||||
inline
|
static
|
||||||
NSCursor* _getStandardCursor(NSString *name, int style)
|
NSCursor *getStandardCursor(NSString *name, int style)
|
||||||
{
|
{
|
||||||
NSCursor *cursor = [cursorDict objectForKey: name];
|
NSCursor *cursor = [cursorDict objectForKey: name];
|
||||||
|
|
||||||
|
@ -190,67 +190,67 @@ NSCursor* _getStandardCursor(NSString *name, int style)
|
||||||
|
|
||||||
+ (NSCursor*) arrowCursor
|
+ (NSCursor*) arrowCursor
|
||||||
{
|
{
|
||||||
return _getStandardCursor(@"GSArrowCursor", GSArrowCursor);
|
return getStandardCursor(@"GSArrowCursor", GSArrowCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSCursor*) IBeamCursor
|
+ (NSCursor*) IBeamCursor
|
||||||
{
|
{
|
||||||
return _getStandardCursor(@"GSIBeamCursor", GSIBeamCursor);
|
return getStandardCursor(@"GSIBeamCursor", GSIBeamCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSCursor*) closedHandCursor
|
+ (NSCursor*) closedHandCursor
|
||||||
{
|
{
|
||||||
return _getStandardCursor(@"GSClosedHandCursor", GSClosedHandCursor);
|
return getStandardCursor(@"GSClosedHandCursor", GSClosedHandCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSCursor*) crosshairCursor
|
+ (NSCursor*) crosshairCursor
|
||||||
{
|
{
|
||||||
return _getStandardCursor(@"GSCrosshairCursor", GSCrosshairCursor);
|
return getStandardCursor(@"GSCrosshairCursor", GSCrosshairCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSCursor*) disappearingItemCursor
|
+ (NSCursor*) disappearingItemCursor
|
||||||
{
|
{
|
||||||
return _getStandardCursor(@"GSDisappearingItemCursor", GSDisappearingItemCursor);
|
return getStandardCursor(@"GSDisappearingItemCursor", GSDisappearingItemCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSCursor*) openHandCursor
|
+ (NSCursor*) openHandCursor
|
||||||
{
|
{
|
||||||
return _getStandardCursor(@"GSOpenHandCursor", GSOpenHandCursor);
|
return getStandardCursor(@"GSOpenHandCursor", GSOpenHandCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSCursor*) pointingHandCursor
|
+ (NSCursor*) pointingHandCursor
|
||||||
{
|
{
|
||||||
return _getStandardCursor(@"GSPointingHandCursor", GSPointingHandCursor);
|
return getStandardCursor(@"GSPointingHandCursor", GSPointingHandCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSCursor*) resizeDownCursor
|
+ (NSCursor*) resizeDownCursor
|
||||||
{
|
{
|
||||||
return _getStandardCursor(@"GSResizeDownCursor", GSResizeDownCursor);
|
return getStandardCursor(@"GSResizeDownCursor", GSResizeDownCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSCursor*) resizeLeftCursor
|
+ (NSCursor*) resizeLeftCursor
|
||||||
{
|
{
|
||||||
return _getStandardCursor(@"GSResizeLeftCursor", GSResizeLeftCursor);
|
return getStandardCursor(@"GSResizeLeftCursor", GSResizeLeftCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSCursor*) resizeLeftRightCursor
|
+ (NSCursor*) resizeLeftRightCursor
|
||||||
{
|
{
|
||||||
return _getStandardCursor(@"GSResizeLeftRightCursor", GSResizeLeftRightCursor);
|
return getStandardCursor(@"GSResizeLeftRightCursor", GSResizeLeftRightCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSCursor*) resizeRightCursor
|
+ (NSCursor*) resizeRightCursor
|
||||||
{
|
{
|
||||||
return _getStandardCursor(@"GSResizeRightCursor", GSResizeRightCursor);
|
return getStandardCursor(@"GSResizeRightCursor", GSResizeRightCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSCursor*) resizeUpCursor
|
+ (NSCursor*) resizeUpCursor
|
||||||
{
|
{
|
||||||
return _getStandardCursor(@"GSResizeUpCursor", GSResizeUpCursor);
|
return getStandardCursor(@"GSResizeUpCursor", GSResizeUpCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSCursor*) resizeUpDownCursor
|
+ (NSCursor*) resizeUpDownCursor
|
||||||
{
|
{
|
||||||
return _getStandardCursor(@"GSResizeUpDownCursor", GSResizeUpDownCursor);
|
return getStandardCursor(@"GSResizeUpDownCursor", GSResizeUpDownCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSCursor*) currentCursor
|
+ (NSCursor*) currentCursor
|
||||||
|
|
|
@ -3303,7 +3303,7 @@ byExtendingSelection: (BOOL)flag
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline float computePeriod(NSPoint mouseLocationWin,
|
static inline float computePeriod(NSPoint mouseLocationWin,
|
||||||
float minYVisible,
|
float minYVisible,
|
||||||
float maxYVisible)
|
float maxYVisible)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue