#import <CPScroller.h>
Definition at line 2 of file CPScroller.h.
- (void) checkSpaceForParts |
|
|
|
|
implementation |
Check if there's enough space in the scroller to display the knob
Definition at line 365 of file CPScroller.j.
- (CPControlSize) controlSize |
|
|
|
|
implementation |
Returns the scroller's control size
Definition at line 245 of file CPScroller.j.
- (CPView) createViewForPart: |
|
(CPScrollerPart) |
aPart |
|
|
implementation |
- (id) currentValueForThemeAttribute: |
|
(CPString) |
anAttributeName |
|
|
implementation |
- (void) drawArrow: |
|
(CPScrollerArrow) |
anArrow |
highlight: |
|
(BOOL) |
shouldHighlight |
|
|
| |
|
implementation |
Draws the specified arrow and sets the highlight.
- Parameters
-
anArrow | the arrow to draw |
shouldHighlight | sets whether the arrow should be highlighted |
Definition at line 497 of file CPScroller.j.
Caches images for the scroll arrow and knob.
Definition at line 564 of file CPScroller.j.
- (void) encodeWithCoder: |
|
(CPCoder) |
aCoder |
|
|
implementation |
- (CPScrollerPart) hitPart |
|
|
|
|
implementation |
Returns the part of the scroller that was hit.
Definition at line 576 of file CPScroller.j.
- (id) initWithCoder: |
|
(CPCoder) |
aCoder |
|
|
implementation |
- (id) initWithFrame: |
|
(CGRect) |
aFrame |
|
|
implementation |
Return's the knob's proportion
Definition at line 268 of file CPScroller.j.
- (void) mouseDown: |
|
(CPEvent) |
anEvent |
|
|
implementation |
- (void) mouseEntered: |
|
(CPEvent) |
anEvent |
|
|
implementation |
- (void) mouseExited: |
|
(CPEvent) |
anEvent |
|
|
implementation |
- (CGRect) rectForEphemeralSubviewNamed: |
|
(CPString) |
aName |
|
|
implementation |
- (CGRect) rectForPart: |
|
(CPScrollerPart) |
aPart |
|
|
implementation |
+ (float) scrollerOverlay |
|
|
|
|
implementation |
+ (float) scrollerWidthForControlSize: |
|
(CPControlSize) |
aControlSize |
|
|
implementation |
Returns the width of a CPScroller for the specified CPControlSize.
- Parameters
-
aControlSize | the size of a controller to return the width for |
Definition at line 158 of file CPScroller.j.
+ (float) scrollerWidthInStyle: |
|
(int) |
aStyle |
|
|
implementation |
- (void) setControlSize: |
|
(CPControlSize) |
aControlSize |
|
|
implementation |
Sets the scroller's size.
- Parameters
-
aControlSize | the scroller's size |
Definition at line 254 of file CPScroller.j.
- (void) setFloatValue: |
|
(float) |
aValue |
knobProportion: |
|
(float) |
aProportion |
|
|
| |
|
implementation |
Sets the position and proportion of the knob.
- Parameters
-
aValue | the knob position (ranges from 0.0 to 1.0) |
aProportion | the knob's proportion (ranges from 0.0 to 1.0) |
Provided by category CPScroller(Deprecated).
Definition at line 865 of file CPScroller.j.
- (void) setFrameSize: |
|
(CGSize) |
aSize |
|
|
implementation |
- (void) setKnobProportion: |
|
(float) |
aProportion |
|
|
implementation |
Set the knob's proportion
- Parameters
-
aProportion | the desired proportion |
Definition at line 277 of file CPScroller.j.
- (void) setObjectValue: |
|
(id) |
anObject |
|
|
implementation |
- (void) setStyle: |
|
(id) |
aStyle |
|
|
implementation |
Set the scroller's control size
- Parameters
-
aStyle | the scroller style: CPScrollerStyleLegacy or CPScrollerStyleOverlay |
Definition at line 216 of file CPScroller.j.
- (CPScrollerPart) testPart: |
|
(CGPoint) |
aPoint |
|
|
implementation |
Returns the part of the scroller that would be hit by aPoint
.
- Parameters
-
aPoint | the simulated point hit |
- Returns
- the part of the scroller that intersects the point
Definition at line 331 of file CPScroller.j.
- (void) trackKnob: |
|
(CPEvent) |
anEvent |
|
|
implementation |
- (void) trackScrollButtons: |
|
(CPEvent) |
anEvent |
|
|
implementation |
Tracks the scroll button.
- Parameters
-
Definition at line 629 of file CPScroller.j.
- (CPUsableScrollerParts) usableParts |
|
|
|
|
implementation |
Returns all the parts of the scroller that are usable for displaying.
Definition at line 458 of file CPScroller.j.
The documentation for this class was generated from the following files: