Up

NSScroller

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.

Software documentation for the NSScroller class

NSScroller : NSControl

Declared in:
AppKit/NSScroller.h
Conforms to:
NSCoding
Standards:

Description forthcoming.


Instance Variables

Method summary

scrollerWidth 

+ (float) scrollerWidth;

Subclasses can override this to provide different scrollbar width. But you may need to also override -drawParts .


scrollerWidthForControlSize: 

+ (float) scrollerWidthForControlSize: (NSControlSize)controlSize;

Description forthcoming.


arrowsPosition 

- (NSScrollArrowPosition) arrowsPosition;

Description forthcoming.


checkSpaceForParts 

- (void) checkSpaceForParts;

Description forthcoming.


controlSize 

- (NSControlSize) controlSize;

Description forthcoming.


controlTint 

- (NSControlTint) controlTint;

Description forthcoming.


drawArrow: highlight: 

- (void) drawArrow: (NSScrollerArrow)whichButton highlight: (BOOL)flag;

Description forthcoming.


drawKnob 

- (void) drawKnob;

Description forthcoming.


drawKnobSlot 

- (void) drawKnobSlot;

Description forthcoming.


drawParts 

- (void) drawParts;

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: .


highlight: 

- (void) highlight: (BOOL)flag;

Description forthcoming.


hitPart 

- (NSScrollerPart) hitPart;

Description forthcoming.


knobProportion 

- (float) knobProportion;

Description forthcoming.


rectForPart: 

- (NSRect) rectForPart: (NSScrollerPart)partCode;

Description forthcoming.


setArrowsPosition: 

- (void) setArrowsPosition: (NSScrollArrowPosition)where;

Description forthcoming.


setControlSize: 

- (void) setControlSize: (NSControlSize)controlSize;

Description forthcoming.


setControlTint: 

- (void) setControlTint: (NSControlTint)controlTint;

Description forthcoming.


setFloatValue: knobProportion: 

- (void) setFloatValue: (float)aFloat knobProportion: (float)ratio;

Description forthcoming.


testPart: 

- (NSScrollerPart) testPart: (NSPoint)thePoint;

Description forthcoming.


trackKnob: 

- (void) trackKnob: (NSEvent*)theEvent;

Description forthcoming.


trackScrollButtons: 

- (void) trackScrollButtons: (NSEvent*)theEvent;

Description forthcoming.


usableParts 

- (NSUsableScrollerParts) usableParts;

Description forthcoming.




Instance Variables for NSScroller Class

_action

@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.


_arrowsPosition

@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.


_cacheValid

@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.


_floatValue

@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.


_hitPart

@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.


_isEnabled

@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.


_isHorizontal

@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.


_knobProportion

@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.


_pendingKnobProportion

@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.


_target

@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.


_usableParts

@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