Up
Authors
- Ovidiu Predescu (
ovidiu@net-community.com
)
-
- Felipe A. Rodriguez (
far@ix.netcom.com
)
-
- Richard Frith-Macdonald (
richard@brainstorm.co.uk
)
-
Copyright: (C) 1996 Free Software Foundation, Inc.
- Declared in:
- AppKit/NSScroller.h
- Conforms to:
- NSCoding
Availability: OpenStep
Instance Variables
Method summary
+ (float)
scrollerWidth;
Availability: OpenStep
Returns the NSScroller's width. By default 18.
Subclasses can override this to provide
different scrollbar width. But you may need to
also override
-drawParts
.
+ (float)
scrollerWidthForControlSize: (
NSControlSize)controlSize;
Availability: MacOS-X 10.0.0
Description forthcoming.
- (void)
checkSpaceForParts;
Availability: OpenStep
Description forthcoming.
- (
NSControlSize)
controlSize;
Availability: MacOS-X 10.0.0
Description forthcoming.
- (
NSControlTint)
controlTint;
Availability: MacOS-X 10.0.0
Description forthcoming.
- (void)
drawArrow: (
NSScrollerArrow)whichButton
highlight: (BOOL)flag;
Availability: OpenStep
- (void)
drawKnob;
Availability: OpenStep
- (void)
drawKnobSlot;
Availability: OpenStep
Description forthcoming.
- (void)
drawParts;
Availability: OpenStep
Cache images for scroll arrows and knob. If you
override
+scrollerWidth
you may need to override this as well (to provide
images for the new width). However, if you do so,
you must currently also override
-drawArrow:highlight:
and
-drawKnob:
.
- (void)
highlight: (BOOL)flag;
Availability: OpenStep
Highlights the button whose under the mouse.
Does nothing if the mouse is not under a button
See Also:
-drawArrow:highlight:
- (float)
knobProportion;
Availability: OpenStep
Returns a float value (between
0.0 and 1.0) indicating the ratio between the
NSScroller length and the knob length
- (NSRect)
rectForPart: (
NSScrollerPart)partCode;
Availability: OpenStep
Description forthcoming.
- (void)
setControlSize: (
NSControlSize)controlSize;
Availability: MacOS-X 10.0.0
Description forthcoming.
- (void)
setControlTint: (
NSControlTint)controlTint;
Availability: MacOS-X 10.0.0
Description forthcoming.
- (void)
setFloatValue: (float)aFloat
knobProportion: (float)ratio;
Availability: OpenStep
Description forthcoming.
- (
NSScrollerPart)
testPart: (NSPoint)thePoint;
Availability: OpenStep
Returns the NSScroller's part under the point
thePoint. See
NSScrollerPart
for more informations
- (void)
trackKnob: (
NSEvent*)theEvent;
Availability: OpenStep
Description forthcoming.
- (void)
trackScrollButtons: (
NSEvent*)theEvent;
Availability: OpenStep
Description forthcoming.
Instance Variables for NSScroller Class
@protected SEL _action;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSScrollArrowPosition _arrowsPosition;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _cacheValid;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected float _floatValue;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSScrollerPart _hitPart;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _isEnabled;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _isHorizontal;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected float _knobProportion;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected float _pendingKnobProportion;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected id _target;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSUsableScrollerParts _usableParts;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Up