mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Access borderType, bounds ivars directly
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5531 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
02b36e4496
commit
6e787578cc
1 changed files with 5 additions and 5 deletions
|
@ -483,7 +483,7 @@ static Class rulerViewClass = nil;
|
|||
NSRect horizScrollerRect = NSZeroRect;
|
||||
float borderThickness = 0;
|
||||
|
||||
switch ([self borderType])
|
||||
switch (_borderType)
|
||||
{
|
||||
case NSNoBorder:
|
||||
break;
|
||||
|
@ -538,11 +538,11 @@ static Class rulerViewClass = nil;
|
|||
{
|
||||
NSGraphicsContext *ctxt = GSCurrentContext();
|
||||
float scrollerWidth = [NSScroller scrollerWidth];
|
||||
float horizLinePosition, horizLineLength = [self bounds].size.width;
|
||||
float horizLinePosition, horizLineLength = bounds.size.width;
|
||||
float borderThickness = 0;
|
||||
|
||||
DPSgsave(ctxt);
|
||||
switch ([self borderType])
|
||||
switch (_borderType)
|
||||
{
|
||||
case NSNoBorder:
|
||||
break;
|
||||
|
@ -573,7 +573,7 @@ static Class rulerViewClass = nil;
|
|||
horizLinePosition = scrollerWidth + borderThickness;
|
||||
horizLineLength -= scrollerWidth + 2 * borderThickness;
|
||||
DPSmoveto(ctxt, horizLinePosition, borderThickness);
|
||||
DPSrlineto(ctxt, 0, [self bounds].size.height - 2 * borderThickness - 1);
|
||||
DPSrlineto(ctxt, 0, bounds.size.height - 2 * borderThickness - 1);
|
||||
DPSstroke(ctxt);
|
||||
}
|
||||
|
||||
|
@ -582,7 +582,7 @@ static Class rulerViewClass = nil;
|
|||
float ypos = scrollerWidth + borderThickness + 1;
|
||||
|
||||
if (_rFlags.flipped_view)
|
||||
ypos = [self bounds].size.height - ypos;
|
||||
ypos = bounds.size.height - ypos;
|
||||
DPSmoveto(ctxt, horizLinePosition, ypos);
|
||||
DPSrlineto(ctxt, horizLineLength - 1, 0);
|
||||
DPSstroke(ctxt);
|
||||
|
|
Loading…
Reference in a new issue