![]() |
API
0.9.6
|
#import <CPSegmentedControl.h>
Class Methods | |
(CPString) | + defaultThemeClass |
(id) | + themeAttributes |
![]() | |
(void) | + initialize |
![]() | |
(CPMenu) | + defaultMenu |
(CPSet) | + keyPathsForValuesAffectingBounds |
(CPSet) | + keyPathsForValuesAffectingFrame |
![]() | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(Class) | + class |
(void) | + exposeBinding: |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
Additional Inherited Members | |
![]() | |
Class | isa |
This class is a horizontal button with multiple segments.
Definition at line 2 of file CPSegmentedControl.h.
|
implementation |
Definition at line 683 of file CPSegmentedControl.j.
|
implementation |
Definition at line 693 of file CPSegmentedControl.j.
Reimplemented from CPView.
Definition at line 506 of file CPSegmentedControl.j.
|
implementation |
Reimplemented from CPView.
Definition at line 49 of file CPSegmentedControl.j.
|
implementation |
Draws the specified segment
aSegment | the segment to draw |
shouldHighlight | YES highlights the bezel |
Definition at line 610 of file CPSegmentedControl.j.
|
implementation |
Draws the specified segment bezel
aSegment | the segment to draw the bezel for |
shouldHighlight | YES highlights the bezel |
Definition at line 420 of file CPSegmentedControl.j.
|
implementation |
Archives the view to a coder.
aCoder | the object into which the view's data will be archived. |
Reimplemented from CPControl.
Provided by category CPSegmentedControl(CPCoding).
Definition at line 876 of file CPSegmentedControl.j.
|
implementation |
Returns the bounding rectangle for the specified segment.
aSegment | the segment to get the rectangle for |
Definition at line 678 of file CPSegmentedControl.j.
|
implementation |
Returns the image for the specified segment
aSegment | the segment to obtain the image for |
CPRangeException | if aSegment is out of bounds |
Definition at line 262 of file CPSegmentedControl.j.
|
implementation |
Initializes the view from an archive.
aCoder | the coder from which to initialize |
Reimplemented from CPControl.
Provided by category CPSegmentedControl(CPCoding).
Definition at line 829 of file CPSegmentedControl.j.
|
implementation |
Initializes the receiver for usage with the specified bounding rectangle
Reimplemented from CPControl.
Definition at line 60 of file CPSegmentedControl.j.
|
implementation |
Returns YES
if the specified segment is enabled.
aSegment | the segment to check |
CPRangeException | if aSegment is out of bounds |
Definition at line 390 of file CPSegmentedControl.j.
|
implementation |
Returns YES
if the specified segment is selected.
aSegment | the segment to check for selection |
CPRangeException | if aSegment is out of bounds |
Definition at line 358 of file CPSegmentedControl.j.
|
implementation |
Definition at line 177 of file CPSegmentedControl.j.
|
implementation |
Returns the label for the specified segment
the | segment to obtain the label for |
CPRangeException | if aSegment is out of bounds |
Definition at line 285 of file CPSegmentedControl.j.
|
implementation |
Reimplemented from CPView.
Definition at line 514 of file CPSegmentedControl.j.
|
implementation |
Returns the menu for the specified segment.
aSegment | the segment to obtain the menu for |
CPRangeException | if aSegment is out of bounds |
Definition at line 306 of file CPSegmentedControl.j.
|
implementation |
Notifies the receiver that the user has clicked the mouse down in its area.
anEvent | contains information about the click |
Reimplemented from CPControl.
Definition at line 729 of file CPSegmentedControl.j.
|
implementation |
Notifies the receiver that the user has released the left mouse button.
anEvent | contains information about the release |
Reimplemented from CPResponder.
Definition at line 738 of file CPSegmentedControl.j.
|
implementation |
Reimplemented from CPView.
Definition at line 453 of file CPSegmentedControl.j.
|
implementation |
Returns the number of segments in the button.
Definition at line 132 of file CPSegmentedControl.j.
|
implementation |
Returns the selected segment.
Definition at line 152 of file CPSegmentedControl.j.
|
implementation |
Returns the tag of the selected segment.
Definition at line 80 of file CPSegmentedControl.j.
|
implementation |
Selects the button segment with the specified tag.
Definition at line 160 of file CPSegmentedControl.j.
|
implementation |
Enables/disables the specified segment.
isEnabled | YES enables the segment |
aSegment | the segment to enable/disable |
CPRangeException | if aSegment is out of bounds |
Definition at line 369 of file CPSegmentedControl.j.
|
implementation |
Sets the font of the control.
Reimplemented from CPControl.
Definition at line 813 of file CPSegmentedControl.j.
|
implementation |
Sets the image for the specified segment.
anImage | the image for the segment |
aSegment | the segment to set the image on |
CPRangeException | if aSegment is out of bounds |
Definition at line 250 of file CPSegmentedControl.j.
|
implementation |
Sets the label for the specified segment
aLabel | the label for the segment |
aSegment | the segment to label |
CPRangeException | if aSegment is out of bounds |
Definition at line 273 of file CPSegmentedControl.j.
Sets the menu for the specified segment
aMenu | the menu to set |
aSegment | the segment to set the menu on |
CPRangeException | if aSegment is out of bounds |
Definition at line 296 of file CPSegmentedControl.j.
|
implementation |
Sets the number of segments in the button.
aCount | the number of segments on the button |
Definition at line 90 of file CPSegmentedControl.j.
|
implementation |
Sets the selection for the specified segment. If only one segment can be selected at a time, any other segment will be deselected.
isSelected | YES selects the segment. NO deselects it. |
aSegment | the segment to set the selection for |
CPRangeException | if aSegment is out of bounds |
Definition at line 318 of file CPSegmentedControl.j.
|
implementation |
Selects a segment.
aSegment | the segment to select |
CPRangeException | if aSegment is out of bounds |
Definition at line 143 of file CPSegmentedControl.j.
|
implementation |
Sets a tag for the specified segment.
aTag | the tag to set |
aSegment | the segment to set the tag on |
Definition at line 400 of file CPSegmentedControl.j.
|
implementation |
Definition at line 182 of file CPSegmentedControl.j.
|
implementation |
Sets the width of the specified segment.
aWidth | the new width for the segment |
aSegment | the segment to set the width for |
CPRangeException | if aSegment is out of bounds |
Definition at line 227 of file CPSegmentedControl.j.
|
implementation |
Returns the tag for the specified segment.
aSegment | the segment to obtain the tag for |
Definition at line 409 of file CPSegmentedControl.j.
|
implementation |
Returns the segment that is hit by the specified point.
aPoint | the point to test for a segment hit |
Definition at line 708 of file CPSegmentedControl.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 54 of file CPSegmentedControl.j.
|
implementation |
Definition at line 614 of file CPSegmentedControl.j.
|
implementation |
Returns the control's tracking mode.
Definition at line 215 of file CPSegmentedControl.j.
|
implementation |
Handles events for the segment
anEvent | the event to handle |
Definition at line 746 of file CPSegmentedControl.j.
|
implementation |
Returns the width for the specified segment.
aSegment | the segment to get the width for |
CPRangeException | if aSegment is out of bounds |
Definition at line 239 of file CPSegmentedControl.j.