Public Member Functions | |
(BOOL _isVertical) | - accessors [implementation] |
(void) | - checkSpaceForParts [implementation] |
(CPControlSize) | - controlSize [implementation] |
(CPView) | - createEphemeralSubviewNamed: [implementation] |
(CPView) | - createViewForPart: [implementation] |
(id) | - currentValueForThemeAttribute: [implementation] |
(void) | - drawArrow:highlight: [implementation] |
(void) | - drawKnob [implementation] |
(void) | - drawKnobSlot [implementation] |
(void) | - drawParts [implementation] |
(void) | - encodeWithCoder: [implementation] |
(CPScrollerPart) | - hitPart [implementation] |
(id) | - initWithCoder: [implementation] |
(id) | - initWithFrame: [implementation] |
(float) | - knobProportion [implementation] |
(void) | - layoutSubviews [implementation] |
(void) | - mouseDown: [implementation] |
(CGRect) | - rectForEphemeralSubviewNamed: [implementation] |
(CGRect) | - rectForPart: [implementation] |
(void) | - setControlSize: [implementation] |
(void) | - setFloatValue:knobProportion: [implementation] |
(void) | - setFrameSize: [implementation] |
(void) | - setKnobProportion: [implementation] |
(void) | - setObjectValue: [implementation] |
(CPScrollerPart) | - testPart: [implementation] |
(void) | - trackKnob: [implementation] |
(void) | - trackScrollButtons: [implementation] |
(CPUsableScrollerParts) | - usableParts [implementation] |
Static Public Member Functions | |
(float) | + scrollerWidth [implementation] |
(float) | + scrollerWidthForControlSize: [implementation] |
(id) | + themeAttributes [implementation] |
(CPString) | + themeClass [implementation] |
Definition at line 59 of file CPScroller.j.
- (BOOL _isVertical) accessors | (readonly) | |||
(getter) | = isVertical | |||
[implementation] |
- (void) checkSpaceForParts | [implementation] |
Check if there's enough space in the scroller to display the knob
Definition at line 236 of file CPScroller.j.
- (CPControlSize) controlSize | [implementation] |
Returns the scroller's control size
Definition at line 154 of file CPScroller.j.
Definition at line 372 of file CPScroller.j.
- (CPView) createViewForPart: | (CPScrollerPart) | aPart | [implementation] |
Definition at line 358 of file CPScroller.j.
- (id) currentValueForThemeAttribute: | (CPString) | anAttributeName | [implementation] |
Definition at line 180 of file CPScroller.j.
- (void) drawArrow: | (CPScrollerArrow) | anArrow | ||
highlight: | (BOOL) | shouldHighlight | ||
[implementation] |
Draws the specified arrow and sets the highlight.
anArrow | the arrow to draw | |
shouldHighlight | sets whether the arrow should be highlighted |
Definition at line 340 of file CPScroller.j.
- (void) drawKnob | [implementation] |
Draws the knob
Definition at line 347 of file CPScroller.j.
- (void) drawKnobSlot | [implementation] |
Draws the knob's slot
Definition at line 354 of file CPScroller.j.
- (void) drawParts | [implementation] |
Caches images for the scroll arrow and knob.
Definition at line 405 of file CPScroller.j.
- (void) encodeWithCoder: | (CPCoder) | aCoder | [implementation] |
Definition at line 615 of file CPScroller.j.
- (CPScrollerPart) hitPart | [implementation] |
Returns the part of the scroller that was hit.
Definition at line 417 of file CPScroller.j.
- (id) initWithCoder: | (CPCoder) | aCoder | [implementation] |
Definition at line 593 of file CPScroller.j.
- (id) initWithFrame: | (CGRect) | aFrame | [implementation] |
Definition at line 98 of file CPScroller.j.
- (float) knobProportion | [implementation] |
Return's the knob's proportion
Definition at line 175 of file CPScroller.j.
- (void) layoutSubviews | [implementation] |
Definition at line 381 of file CPScroller.j.
- (void) mouseDown: | (CPEvent) | anEvent | [implementation] |
Definition at line 568 of file CPScroller.j.
- (CGRect) rectForEphemeralSubviewNamed: | (CPString) | aName | [implementation] |
Definition at line 367 of file CPScroller.j.
- (CGRect) rectForPart: | (CPScrollerPart) | aPart | [implementation] |
Definition at line 192 of file CPScroller.j.
+ (float) scrollerWidth | [implementation] |
Returns the CPScroller's width for a CPRegularControlSize.
Definition at line 122 of file CPScroller.j.
+ (float) scrollerWidthForControlSize: | (CPControlSize) | aControlSize | [implementation] |
Returns the width of a CPScroller for the specified CPControlSize.
aControlSize | the size of a controller to return the width for |
Definition at line 131 of file CPScroller.j.
- (void) setControlSize: | (CPControlSize) | aControlSize | [implementation] |
Sets the scroller's size.
aControlSize | the scroller's size |
Definition at line 140 of file CPScroller.j.
- (void) setFloatValue: | (float) | aValue | ||
knobProportion: | (float) | aProportion | ||
[implementation] |
Sets the position and proportion of the knob.
aValue | the knob position (ranges from 0.0 to 1.0) | |
aProportion | the knob's proportion (ranges from 0.0 to 1.0) |
Definition at line 632 of file CPScroller.j.
- (void) setFrameSize: | (CGSize) | aSize | [implementation] |
Definition at line 560 of file CPScroller.j.
- (void) setKnobProportion: | (float) | aProportion | [implementation] |
Definition at line 164 of file CPScroller.j.
- (void) setObjectValue: | (id) | aValue | [implementation] |
Definition at line 159 of file CPScroller.j.
- (CPScrollerPart) testPart: | (CGPoint) | aPoint | [implementation] |
Returns the part of the scroller that would be hit by aPoint
.
aPoint | the simulated point hit |
Definition at line 205 of file CPScroller.j.
+ (id) themeAttributes | [implementation] |
Definition at line 80 of file CPScroller.j.
+ (CPString) themeClass | [implementation] |
Definition at line 75 of file CPScroller.j.
- (void) trackKnob: | (CPEvent) | anEvent | [implementation] |
- (void) trackScrollButtons: | (CPEvent) | anEvent | [implementation] |
Tracks the scroll button.
anEvent | the input event |
Definition at line 469 of file CPScroller.j.
- (CPUsableScrollerParts) usableParts | [implementation] |
Returns all the parts of the scroller that are usable for displaying.
Definition at line 329 of file CPScroller.j.