![]() |
API
0.9.7
|
#import <CPSegmentedControl.h>
Class Methods | |
(CPString) | + defaultThemeClass |
(CPDictionary) | + themeAttributes |
![]() | |
(void) | + initialize |
This class is a horizontal button with multiple segments.
Definition at line 2 of file CPSegmentedControl.h.
|
implementation |
Definition at line 737 of file CPSegmentedControl.j.
|
implementation |
Definition at line 103 of file CPSegmentedControl.j.
|
implementation |
Definition at line 747 of file CPSegmentedControl.j.
Definition at line 560 of file CPSegmentedControl.j.
|
implementation |
Definition at line 50 of file CPSegmentedControl.j.
|
implementation |
Draws the specified segment
aSegment | the segment to draw |
shouldHighlight | YES highlights the bezel |
Definition at line 664 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 474 of file CPSegmentedControl.j.
|
implementation |
Reimplemented from CPControl.
Provided by category CPSegmentedControl(CPCoding).
Definition at line 931 of file CPSegmentedControl.j.
|
implementation |
Returns the bounding rectangle for the specified segment.
aSegment | the segment to get the rectangle for |
Definition at line 732 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 316 of file CPSegmentedControl.j.
|
implementation |
Reimplemented from CPControl.
Provided by category CPSegmentedControl(CPCoding).
Definition at line 884 of file CPSegmentedControl.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 86 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 444 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 412 of file CPSegmentedControl.j.
|
implementation |
Definition at line 231 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 339 of file CPSegmentedControl.j.
|
implementation |
Definition at line 568 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 360 of file CPSegmentedControl.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 783 of file CPSegmentedControl.j.
|
implementation |
Definition at line 792 of file CPSegmentedControl.j.
|
implementation |
Definition at line 507 of file CPSegmentedControl.j.
|
implementation |
Returns the number of segments in the button.
Definition at line 171 of file CPSegmentedControl.j.
|
implementation |
Returns the selected segment.
Definition at line 191 of file CPSegmentedControl.j.
|
implementation |
Returns the tag of the selected segment.
Definition at line 119 of file CPSegmentedControl.j.
|
implementation |
Selects the button segment with the specified tag.
Definition at line 199 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 423 of file CPSegmentedControl.j.
|
implementation |
Sets the font of the control.
Reimplemented from CPControl.
Definition at line 868 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 304 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 327 of file CPSegmentedControl.j.
|
implementation |
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 350 of file CPSegmentedControl.j.
|
implementation |
Sets the number of segments in the button.
aCount | the number of segments on the button |
Definition at line 129 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 372 of file CPSegmentedControl.j.
|
implementation |
Selects a segment.
aSegment | the segment to select |
CPRangeException | if aSegment is out of bounds |
Definition at line 182 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 454 of file CPSegmentedControl.j.
|
implementation |
Definition at line 236 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 281 of file CPSegmentedControl.j.
|
implementation |
Returns the tag for the specified segment.
aSegment | the segment to obtain the tag for |
Definition at line 463 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 762 of file CPSegmentedControl.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 55 of file CPSegmentedControl.j.
|
implementation |
Definition at line 668 of file CPSegmentedControl.j.
|
implementation |
Returns the control's tracking mode.
Definition at line 269 of file CPSegmentedControl.j.
|
implementation |
Handles events for the segment
anEvent | the event to handle |
Definition at line 800 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 293 of file CPSegmentedControl.j.