Public Member Functions | |
(id) | - initWithFrame: [implementation] |
(void) | - setControlSize: [implementation] |
(CPControlSize) | - controlSize [implementation] |
(void) | - setFloatValue: [implementation] |
(void) | - setFloatValue:knobProportion: [implementation] |
(float) | - knobProportion [implementation] |
(CGRect) | - rectForPart: [implementation] |
(CPScrollerPart) | - testPart: [implementation] |
(void) | - checkSpaceForParts [implementation] |
(CPUsableScrollerParts) | - usableParts [implementation] |
(void) | - drawArrow:highlight: [implementation] |
(void) | - drawKnob [implementation] |
(void) | - drawKnobSlot [implementation] |
(void) | - drawParts [implementation] |
(void) | - highlight: [implementation] |
(CPScrollerPart) | - hitPart [implementation] |
(void) | - trackKnob: [implementation] |
(void) | - trackScrollButtons: [implementation] |
(void) | - setFrameSize: [implementation] |
(void) | - layoutSubviews [implementation] |
(void) | - mouseDown: [implementation] |
(void) | - setEnabled: [implementation] |
Static Public Member Functions | |
(void) | + initialize [implementation] |
(float) | + scrollerWidth [implementation] |
(float) | + scrollerWidthForControlSize: [implementation] |
Definition at line 81 of file CPScroller.j.
- (void) checkSpaceForParts | [implementation] |
Check if there's enough space in the scroller to display the knob
Definition at line 336 of file CPScroller.j.
- (CPControlSize) controlSize | [implementation] |
Returns the scroller's control size
Definition at line 252 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 408 of file CPScroller.j.
- (void) drawKnob | [implementation] |
Draws the knob
Definition at line 425 of file CPScroller.j.
- (void) drawKnobSlot | [implementation] |
Draws the knob's slot
Definition at line 439 of file CPScroller.j.
- (void) drawParts | [implementation] |
Caches images for the scroll arrow and knob.
Definition at line 452 of file CPScroller.j.
- (void) highlight: | (BOOL) | shouldHighlight | [implementation] |
Draws the scroller's arrow with a possible highlight, if the user's mouse is over it.
shouldHighlight | YES will draw the arrow highlighted if the mouse is hovering over it. |
Definition at line 493 of file CPScroller.j.
- (CPScrollerPart) hitPart | [implementation] |
Returns the part of the scroller that was hit.
Definition at line 506 of file CPScroller.j.
+ (void) initialize | [implementation] |
Definition at line 106 of file CPScroller.j.
- (id) initWithFrame: | (CGRect) | aFrame | [implementation] |
Definition at line 188 of file CPScroller.j.
- (float) knobProportion | [implementation] |
Return's the knob's proportion
Definition at line 285 of file CPScroller.j.
- (void) layoutSubviews | [implementation] |
Lays out the scrollers subviews
Definition at line 654 of file CPScroller.j.
- (void) mouseDown: | (CPEvent) | anEvent | [implementation] |
Definition at line 676 of file CPScroller.j.
- (CGRect) rectForPart: | (CPScrollerPart) | aPart | [implementation] |
Definition at line 292 of file CPScroller.j.
+ (float) scrollerWidth | [implementation] |
Returns the CPScroller's width for a CPRegularControlSize.
Definition at line 216 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 225 of file CPScroller.j.
- (void) setControlSize: | (CPControlSize) | aControlSize | [implementation] |
Sets the scroller's size.
aControlSize | the scroller's size |
Definition at line 234 of file CPScroller.j.
- (void) setEnabled: | (BOOL) | shouldBeEnabled | [implementation] |
Definition at line 692 of file CPScroller.j.
- (void) setFloatValue: | (float) | aValue | [implementation] |
Sets the scroller's knob position (ranges from 0.0 to 1.0).
aValue | the knob position (ranges from 0.0 to 1.0) |
Definition at line 262 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 275 of file CPScroller.j.
- (void) setFrameSize: | (CGSize) | aSize | [implementation] |
Definition at line 632 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 305 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 558 of file CPScroller.j.
- (CPUsableScrollerParts) usableParts | [implementation] |
Returns all the parts of the scroller that are usable for displaying.
Definition at line 397 of file CPScroller.j.