#import <CPSegmentedControl.h>
 Inheritance diagram for CPSegmentedControl:Class Methods | |
| (CPString) | + defaultThemeClass | 
| (BOOL) | + isBindingExclusive: | 
| (CPDictionary) | + themeAttributes | 
  Class Methods inherited from CPControl | |
| (void) | + initialize | 
  Class Methods inherited from CPView | |
| (Class) | + animatorClass | 
| (CAAnimation) | + defaultAnimationForKey: | 
| (CPMenu) | + defaultMenu | 
| (BOOL) | + isHighDPIDrawingEnabled | 
| (CPSet) | + keyPathsForValuesAffectingBounds | 
| (CPSet) | + keyPathsForValuesAffectingFrame | 
| (void) | + setHighDPIDrawingEnabled: | 
This class is a horizontal button with multiple segments.
Definition at line 2 of file CPSegmentedControl.h.
      
  | 
  implementation | 
Definition at line 782 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Provided by category CPSegmentedControl(BindingSupport).
Definition at line 1052 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Definition at line 805 of file CPSegmentedControl.j.
Reimplemented from CPView.
Definition at line 598 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Reimplemented from CPView.
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 728 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 511 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 1020 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Returns the bounding rectangle for the specified segment.
| aSegment | the segment to get the rectangle for | 
Definition at line 768 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 351 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 952 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Initializes the receiver for usage with the specified bounding rectangle
Reimplemented from CPControl.
Definition at line 72 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Definition at line 118 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Provided by category CPSegmentedControl(BindingSupport).
Definition at line 1047 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 481 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 447 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Definition at line 267 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 374 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Reimplemented from CPView.
Definition at line 611 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 395 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Reimplemented from CPControl.
Definition at line 847 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Definition at line 856 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Reimplemented from CPView.
Definition at line 545 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Definition at line 137 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Returns the number of segments in the button.
Definition at line 194 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Synthesized accessor method.
Provided by category CPSegmentedControl(CPSynthesizedAccessors).
Definition at line 1198 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Returns the selected segment.
Definition at line 227 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Returns the tag of the selected segment.
Definition at line 104 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Selects the button segment with the specified tag.
Definition at line 235 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Sets the control's size.
| aControlSize | the control's size | 
Reimplemented from CPControl.
Definition at line 95 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 458 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Sets the font of the control.
Reimplemented from CPControl.
Definition at line 936 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 339 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 362 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 385 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Sets the number of segments in the button.
| aCount | the number of segments on the button | 
Definition at line 161 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Definition at line 110 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 407 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Selects a segment.
| aSegment | the segment to select | 
| CPRangeException | if aSegment is out of bounds  | 
Definition at line 205 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 491 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Definition at line 272 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 317 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Returns the tag for the specified segment.
| aSegment | the segment to obtain the tag for | 
Definition at line 500 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 826 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Reimplemented from CPControl.
Definition at line 55 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Definition at line 733 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Definition at line 739 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Returns the control's tracking mode.
Definition at line 305 of file CPSegmentedControl.j.
      
  | 
  implementation | 
Handles events for the segment
| anEvent | the event to handle | 
Definition at line 864 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 328 of file CPSegmentedControl.j.