API  0.9.8
 All Classes Files Functions Variables Typedefs Macros Groups Pages
CPSegmentedControl Class Reference

#import <CPSegmentedControl.h>

+ Inheritance diagram for CPSegmentedControl:

Instance Methods

(CGRect) - bezelFrameForSegment:
 
(void) - bind:toObject:withKeyPath:options:
 
(CGRect) - contentFrameForSegment:
 
(CPView- createEphemeralSubviewNamed:
 
(void) - drawSegment:highlight:
 
(void) - drawSegmentBezel:highlight:
 
(void) - encodeWithCoder:
 
(CGRect) - frameForSegment:
 
(CPImage- imageForSegment:
 
(id) - initWithCoder:
 
(id) - initWithFrame:
 
(void) - insertSegments:atIndexes:
 
(CGSize) - intrinsicContentSize
 
(BOOL) - isEnabledForSegment:
 
(BOOL) - isSelectedForSegment:
 
(BOOL) - isTracking
 
(CPString- labelForSegment:
 
(void) - layoutSubviews
 
(CPMenu- menuForSegment:
 
(void) - mouseDown:
 
(void) - mouseUp:
 
(CGRect) - rectForEphemeralSubviewNamed:
 
(void) - removeSegmentsAtIndexes:
 
(unsigned) - segmentCount
 
(CPArray) - segments
 
(unsigned) - selectedSegment
 
(int) - selectedTag
 
(BOOL) - selectSegmentWithTag:
 
(void) - setControlSize:
 
(void) - setEnabled:forSegment:
 
(void) - setFont:
 
(void) - setImage:forSegment:
 
(void) - setLabel:forSegment:
 
(void) - setMenu:forSegment:
 
(void) - setSegmentCount:
 
(void) - setSegments:
 
(void) - setSelected:forSegment:
 
(void) - setSelectedSegment:
 
(void) - setTag:forSegment:
 
(void) - setTrackingMode:
 
(void) - setWidth:forSegment:
 
(int) - tagForSegment:
 
(unsigned) - testSegment:
 
(void) - tile
 
(void) - tileWithChangedSegment:
 
(CPSegmentSwitchTracking) - trackingMode
 
(void) - trackSegment:
 
(float) - widthForSegment:
 
- Instance Methods inherited from CPControl
(BOOL) - acceptsFirstMouse:
 
(SEL) - action
 
(CPTextAlignment) - alignment
 
(BOOL) - continueTracking:at:
 
(CPControlSize) - controlSize
 
(double) - doubleValue
 
(float) - floatValue
 
(CPFont- font
 
(CPFormatter- formatter
 
(void) - highlight:
 
(CPCellImagePosition) - imagePosition
 
(CPUInteger) - imageScaling
 
(int) - integerValue
 
(int) - intValue
 
(BOOL) - isContinuous
 
(BOOL) - isEnabled
 
(BOOL) - isHighlighted
 
(CPLineBreakMode) - lineBreakMode
 
(unsigned) - mouseDownFlags
 
(void) - mouseEntered:
 
(void) - mouseExited:
 
(CPInteger) - nextState
 
(id) - objectValue
 
(void) - performClick:
 
(BOOL) - sendAction:to:
 
(int) - sendActionOn:
 
(BOOL) - sendsActionOnEndEditing
 
(void) - setAction:
 
(void) - setAlignment:
 
(void) - setContinuous:
 
(void) - setDoubleValue:
 
(void) - setEnabled:
 
(void) - setFloatValue:
 
(void) - setFormatter:
 
(void) - setHighlighted:
 
(void) - setImagePosition:
 
(void) - setImageScaling:
 
(void) - setIntegerValue:
 
(void) - setIntValue:
 
(void) - setLineBreakMode:
 
(void) - setObjectValue:
 
(void) - setSendsActionOnEndEditing:
 
(void) - setState:
 
(void) - setStringValue:
 
(void) - setTarget:
 
(void) - setTextColor:
 
(void) - setTextShadowColor:
 
(void) - setTextShadowOffset:
 
(void) - setVerticalAlignment:
 
(BOOL) - startTrackingAt:
 
(void) - stopTracking:at:mouseIsUp:
 
(CPString- stringValue
 
(void) - takeDoubleValueFrom:
 
(void) - takeFloatValueFrom:
 
(void) - takeIntegerValueFrom:
 
(void) - takeIntValueFrom:
 
(void) - takeObjectValueFrom:
 
(void) - takeStringValueFrom:
 
(id) - target
 
(CPColor- textColor
 
(void) - textDidBeginEditing:
 
(void) - textDidChange:
 
(void) - textDidEndEditing:
 
(CPColor- textShadowColor
 
(CGSize) - textShadowOffset
 
(void) - trackMouse:
 
(BOOL) - tracksMouseOutsideOfFrame
 
(void) - unhighlightButtonTimerDidFinish:
 
(CPTextVerticalAlignment) - verticalAlignment
 
- Instance Methods inherited from CPView
(void) - addSubview:
 
(void) - addSubview:positioned:relativeTo:
 
(CGRect) - adjustScroll:
 
(float) - alphaValue
 
(BOOL) - autoresizesSubviews
 
(unsigned) - autoresizingMask
 
(BOOL) - autoscroll:
 
(CPColor- backgroundColor
 
(BOOL) - becomeFirstResponder
 
(CGRect) - bounds
 
(CGPoint) - boundsOrigin
 
(CGSize) - boundsSize
 
(BOOL) - canBecomeKeyView
 
(CGPoint) - center
 
(BOOL) - clipsToBounds
 
(CGPoint) - convertPoint:fromView:
 
(CGPoint) - convertPoint:toView:
 
(CGPoint) - convertPointFromBase:
 
(CGPoint) - convertPointToBase:
 
(CGRect) - convertRect:fromView:
 
(CGRect) - convertRect:toView:
 
(CGRect) - convertRectFromBase:
 
(CGRect) - convertRectToBase:
 
(CGSize) - convertSize:fromView:
 
(CGSize) - convertSize:toView:
 
(id) - currentValueForThemeAttribute:
 
(void) - didAddSubview:
 
(void) - display
 
(void) - displayIfNeeded
 
(void) - displayIfNeededInRect:
 
(void) - displayRect:
 
(void) - displayRectIgnoringOpacity:inContext:
 
(void) - dragImage:at:offset:event:pasteboard:source:slideBack:
 
(void) - dragView:at:offset:event:pasteboard:source:slideBack:
 
(void) - drawRect:
 
(CPMenuItem- enclosingMenuItem
 
(CPScrollView- enclosingScrollView
 
(BOOL) - enterFullScreenMode
 
(BOOL) - enterFullScreenMode:withOptions:
 
(CPView- ephemeralSubviewNamed:
 
(void) - exitFullScreenMode
 
(void) - exitFullScreenModeWithOptions:
 
(CGRect) - frame
 
(CGPoint) - frameOrigin
 
(CGSize) - frameSize
 
(BOOL) - hasThemeAttribute:
 
(BOOL) - hasThemeState:
 
(CPView- hitTest:
 
(BOOL) - hitTests
 
(CPString- identifier
 
(id) - init
 
(BOOL) - inLiveResize
 
(BOOL) - isDescendantOf:
 
(BOOL) - isFlipped
 
(BOOL) - isHidden
 
(BOOL) - isHiddenOrHasHiddenAncestor
 
(BOOL) - isInFullScreenMode
 
(BOOL) - isOpaque
 
(CALayer- layer
 
(CPView- layoutEphemeralSubviewNamed:positioned:relativeToEphemeralSubviewNamed:
 
(void) - layoutIfNeeded
 
(void) - lockFocus
 
(CPMenu- menuForEvent:
 
(BOOL) - mouseDownCanMoveWindow
 
(BOOL) - needsDisplay
 
(BOOL) - needsLayout
 
(BOOL) - needsPanelToBecomeKey
 
(CPView- nextKeyView
 
(CPView- nextValidKeyView
 
(BOOL) - performKeyEquivalent:
 
(BOOL) - postsBoundsChangedNotifications
 
(BOOL) - postsFrameChangedNotifications
 
(CPView- previousKeyView
 
(CPView- previousValidKeyView
 
(void) - reflectScrolledClipView:
 
(CPArray) - registeredDraggedTypes
 
(void) - registerForDraggedTypes:
 
(void) - registerThemeValues:
 
(void) - registerThemeValues:inherit:
 
(void) - removeFromSuperview
 
(void) - replaceSubview:with:
 
(BOOL) - resignFirstResponder
 
(void) - resizeSubviewsWithOldSize:
 
(void) - resizeWithOldSuperviewSize:
 
(void) - rightMouseDown:
 
(CGSize) - scaleSize
 
(void) - scaleUnitSquareToSize:
 
(void) - scrollClipView:toPoint:
 
(void) - scrollPoint:
 
(void) - scrollRect:by:
 
(BOOL) - scrollRectToVisible:
 
(void) - setAlphaValue:
 
(void) - setAutoresizesSubviews:
 
(void) - setAutoresizingMask:
 
(void) - setBackgroundColor:
 
(void) - setBounds:
 
(void) - setBoundsOrigin:
 
(void) - setBoundsSize:
 
(void) - setCenter:
 
(void) - setClipsToBounds:
 
(void) - setFrame:
 
(void) - setFrameOrigin:
 
(void) - setFrameSize:
 
(void) - setHidden:
 
(void) - setHitTests:
 
(void) - setIdentifier:
 
(void) - setLayer:
 
(void) - setNeedsDisplay:
 
(void) - setNeedsDisplayInRect:
 
(void) - setNeedsLayout
 
(void) - setNeedsLayout:
 
(void) - setNextKeyView:
 
(void) - setPostsBoundsChangedNotifications:
 
(void) - setPostsFrameChangedNotifications:
 
(void) - setScaleSize:
 
(void) - setSubviews:
 
(void) - setTag:
 
(void) - setTheme:
 
(void) - setThemeClass:
 
(BOOL) - setThemeState:
 
(void) - setToolTip:
 
(void) - setValue:forThemeAttribute:
 
(void) - setValue:forThemeAttribute:inState:
 
(void) - setWantsLayer:
 
(CPArray) - subviews
 
(CPView- superview
 
(CPInteger) - tag
 
(CPTheme- theme
 
(CPString- themeClass
 
(unsigned) - themeState
 
(CPString- toolTip
 
(void) - unlockFocus
 
(void) - unregisterDraggedTypes
 
(BOOL) - unsetThemeState:
 
(id) - valueForThemeAttribute:
 
(id) - valueForThemeAttribute:inState:
 
(void) - viewDidChangeTheme
 
(void) - viewDidEndLiveResize
 
(void) - viewDidHide
 
(void) - viewDidMoveToSuperview
 
(void) - viewDidMoveToWindow
 
(void) - viewDidUnhide
 
(void) - viewWillDraw
 
(void) - viewWillMoveToSuperview:
 
(void) - viewWillMoveToWindow:
 
(void) - viewWillStartLiveResize
 
(CPView- viewWithTag:
 
(CGRect) - visibleRect
 
(BOOL) - wantsLayer
 
(void) - willRemoveSubview:
 
(CPWindow- window
 
- Instance Methods inherited from CPResponder
(BOOL) - acceptsFirstResponder
 
(void) - doCommandBySelector:
 
(void) - flagsChanged:
 
(void) - insertBackTab:
 
(void) - insertLineBreak:
 
(void) - insertNewline:
 
(void) - insertTab:
 
(void) - insertText:
 
(void) - interpretKeyEvents:
 
(void) - keyDown:
 
(void) - keyUp:
 
(CPMenu- menu
 
(void) - mouseDragged:
 
(void) - mouseMoved:
 
(CPResponder- nextResponder
 
(void) - noResponderFor:
 
(void) - rightMouseUp:
 
(void) - scrollWheel:
 
(void) - setMenu:
 
(void) - setNextResponder:
 
(BOOL) - tryToPerform:with:
 
(CPUndoManager- undoManager
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context:
 
(void) - applyChange:toKeyPath:
 
(id) - autorelease
 
(id) - awakeAfterUsingCoder:
 
(void) - awakeFromCib
 
(Class) - classForCoder
 
(Class) - classForKeyedArchiver
 
(CPString- className
 
(id) - copy
 
(void) - dealloc
 
(CPString- description
 
(CPDictionary- dictionaryWithValuesForKeys:
 
(void) - didChange:valuesAtIndexes:forKey:
 
(void) - didChangeValueForKey:
 
(void) - didChangeValueForKey:withSetMutation:usingObjects:
 
(void) - doesNotRecognizeSelector:
 
(CPArray) - exposedBindings
 
(id) - forwardingTargetForSelector:
 
(void) - forwardInvocation:
 
(unsigned) - hash
 
(BOOL) - implementsSelector:
 
(CPDictionary- infoForBinding:
 
(BOOL) - isEqual:
 
(BOOL) - isKindOfClass:
 
(BOOL) - isMemberOfClass:
 
(BOOL) - isProxy
 
(IMP) - methodForSelector:
 
(CPMethodSignature) - methodSignatureForSelector:
 
(id) - mutableArrayValueForKey:
 
(id) - mutableArrayValueForKeyPath:
 
(id) - mutableCopy
 
(id) - mutableSetValueForKey:
 
(id) - mutableSetValueForKeyPath:
 
(id) - performSelector:
 
(id) - performSelector:withObject:
 
(void) - performSelector:withObject:afterDelay:
 
(void) - performSelector:withObject:afterDelay:inModes:
 
(id) - performSelector:withObject:withObject:
 
(id) - performSelector:withObjects:
 
(void) - release
 
(void) - removeObserver:forKeyPath:
 
(id) - replacementObjectForArchiver:
 
(id) - replacementObjectForCoder:
 
(id) - replacementObjectForKeyedArchiver:
 
(BOOL) - respondsToSelector:
 
(id) - retain
 
(id) - self
 
(void) - setValue:forKey:
 
(void) - setValue:forKeyPath:
 
(void) - setValue:forUndefinedKey:
 
(void) - setValuesForKeysWithDictionary:
 
(CPString- UID
 
(void) - unbind:
 
(Class) - valueClassForBinding:
 
(id) - valueForKey:
 
(id) - valueForKeyPath:
 
(id) - valueForUndefinedKey:
 
(void) - willChange:valuesAtIndexes:forKey:
 
(void) - willChangeValueForKey:
 
(void) - willChangeValueForKey:withSetMutation:usingObjects:
 

Class Methods

(CPString+ defaultThemeClass
 
(BOOL) + isBindingExclusive:
 
(CPDictionary+ themeAttributes
 
- Class Methods inherited from CPControl
(void) + initialize
 
- Class Methods inherited from CPView
(CPMenu+ defaultMenu
 
(BOOL) + isHighDPIDrawingEnabled
 
(CPSet) + keyPathsForValuesAffectingBounds
 
(CPSet) + keyPathsForValuesAffectingFrame
 
(void) + setHighDPIDrawingEnabled:
 

Detailed Description

This class is a horizontal button with multiple segments.

Definition at line 2 of file CPSegmentedControl.h.

Method Documentation

- (CGRect) bezelFrameForSegment: (unsigned)  aSegment
implementation

Definition at line 771 of file CPSegmentedControl.j.

- (void) bind: (CPString aBinding
toObject: (id)  anObject
withKeyPath: (CPString aKeyPath
options: (CPDictionary options 
implementation

Reimplemented from CPObject.

Provided by category CPSegmentedControl(BindingSupport).

Definition at line 1031 of file CPSegmentedControl.j.

- (CGRect) contentFrameForSegment: (unsigned)  aSegment
implementation

Definition at line 794 of file CPSegmentedControl.j.

- (CPView) createEphemeralSubviewNamed: (CPString aName
implementation

Reimplemented from CPView.

Definition at line 586 of file CPSegmentedControl.j.

+ (CPString) defaultThemeClass
implementation

Reimplemented from CPView.

Definition at line 50 of file CPSegmentedControl.j.

- (void) drawSegment: (int)  aSegment
highlight: (BOOL)  shouldHighlight 
implementation

Draws the specified segment

Parameters
aSegmentthe segment to draw
shouldHighlightYES highlights the bezel

Definition at line 711 of file CPSegmentedControl.j.

- (void) drawSegmentBezel: (int)  aSegment
highlight: (BOOL)  shouldHighlight 
implementation

Draws the specified segment bezel

Parameters
aSegmentthe segment to draw the bezel for
shouldHighlightYES highlights the bezel

Definition at line 499 of file CPSegmentedControl.j.

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Archives the view to a coder.

Parameters
aCoderthe object into which the view's data will be archived.

Reimplemented from CPControl.

Provided by category CPSegmentedControl(CPCoding).

Definition at line 999 of file CPSegmentedControl.j.

- (CGRect) frameForSegment: (unsigned)  aSegment
implementation

Returns the bounding rectangle for the specified segment.

Parameters
aSegmentthe segment to get the rectangle for

Definition at line 757 of file CPSegmentedControl.j.

- (CPImage) imageForSegment: (unsigned)  aSegment
implementation

Returns the image for the specified segment

Parameters
aSegmentthe segment to obtain the image for
Exceptions
CPRangeExceptionif aSegment is out of bounds

Definition at line 339 of file CPSegmentedControl.j.

- (id) initWithCoder: (CPCoder aCoder
implementation

Initializes the view from an archive.

Parameters
aCoderthe coder from which to initialize
Returns
the initialized view

Reimplemented from CPControl.

Provided by category CPSegmentedControl(CPCoding).

Definition at line 931 of file CPSegmentedControl.j.

- (id) initWithFrame: (CGRect)  aFrame
implementation

Initializes the receiver for usage with the specified bounding rectangle

Returns
the initialized view

Reimplemented from CPControl.

Definition at line 72 of file CPSegmentedControl.j.

- (void) insertSegments: (CPArray)  segments
atIndexes: (CPIndexSet indices 
implementation

Definition at line 119 of file CPSegmentedControl.j.

- (CGSize) intrinsicContentSize
implementation

Definition at line 741 of file CPSegmentedControl.j.

+ (BOOL) isBindingExclusive: (CPString aBinding
implementation

Reimplemented from CPObject.

Provided by category CPSegmentedControl(BindingSupport).

Definition at line 1026 of file CPSegmentedControl.j.

- (BOOL) isEnabledForSegment: (unsigned)  aSegment
implementation

Returns YES if the specified segment is enabled.

Parameters
aSegmentthe segment to check
Exceptions
CPRangeExceptionif aSegment is out of bounds

Definition at line 469 of file CPSegmentedControl.j.

- (BOOL) isSelectedForSegment: (unsigned)  aSegment
implementation

Returns YES if the specified segment is selected.

Parameters
aSegmentthe segment to check for selection
Exceptions
CPRangeExceptionif aSegment is out of bounds

Definition at line 435 of file CPSegmentedControl.j.

- (BOOL) isTracking
implementation

Definition at line 255 of file CPSegmentedControl.j.

- (CPString) labelForSegment: (unsigned)  aSegment
implementation

Returns the label for the specified segment

Parameters
thesegment to obtain the label for
Exceptions
CPRangeExceptionif aSegment is out of bounds

Definition at line 362 of file CPSegmentedControl.j.

- (void) layoutSubviews
implementation

Reimplemented from CPView.

Definition at line 594 of file CPSegmentedControl.j.

- (CPMenu) menuForSegment: (unsigned)  aSegment
implementation

Returns the menu for the specified segment.

Parameters
aSegmentthe segment to obtain the menu for
Exceptions
CPRangeExceptionif aSegment is out of bounds

Definition at line 383 of file CPSegmentedControl.j.

- (void) mouseDown: (CPEvent anEvent
implementation

Notifies the receiver that the user has clicked the mouse down in its area.

Parameters
anEventcontains information about the click

Reimplemented from CPControl.

Definition at line 830 of file CPSegmentedControl.j.

- (void) mouseUp: (CPEvent anEvent
implementation

Notifies the receiver that the user has released the left mouse button.

Parameters
anEventcontains information about the release

Reimplemented from CPResponder.

Definition at line 839 of file CPSegmentedControl.j.

- (CGRect) rectForEphemeralSubviewNamed: (CPString aName
implementation

Reimplemented from CPView.

Definition at line 533 of file CPSegmentedControl.j.

- (void) removeSegmentsAtIndexes: (CPIndexSet indices
implementation

Definition at line 135 of file CPSegmentedControl.j.

- (unsigned) segmentCount
implementation

Returns the number of segments in the button.

Definition at line 182 of file CPSegmentedControl.j.

- (CPArray) segments
implementation

Synthesized accessor method.

Provided by category CPSegmentedControl(CPSynthesizedAccessors).

Definition at line 1177 of file CPSegmentedControl.j.

- (unsigned) selectedSegment
implementation

Returns the selected segment.

Definition at line 215 of file CPSegmentedControl.j.

- (int) selectedTag
implementation

Returns the tag of the selected segment.

Definition at line 104 of file CPSegmentedControl.j.

- (BOOL) selectSegmentWithTag: (int)  aTag
implementation

Selects the button segment with the specified tag.

Definition at line 223 of file CPSegmentedControl.j.

- (void) setControlSize: (CPControlSize)  aControlSize
implementation

Sets the control's size.

Parameters
aControlSizethe control's size

Reimplemented from CPControl.

Definition at line 95 of file CPSegmentedControl.j.

- (void) setEnabled: (BOOL)  shouldBeEnabled
forSegment: (unsigned)  aSegment 
implementation

Enables/disables the specified segment.

Parameters
isEnabledYES enables the segment
aSegmentthe segment to enable/disable
Exceptions
CPRangeExceptionif aSegment is out of bounds

Definition at line 446 of file CPSegmentedControl.j.

- (void) setFont: (CPFont aFont
implementation

Sets the font of the control.

Reimplemented from CPControl.

Definition at line 915 of file CPSegmentedControl.j.

- (void) setImage: (CPImage anImage
forSegment: (unsigned)  aSegment 
implementation

Sets the image for the specified segment.

Parameters
anImagethe image for the segment
aSegmentthe segment to set the image on
Exceptions
CPRangeExceptionif aSegment is out of bounds

Definition at line 327 of file CPSegmentedControl.j.

- (void) setLabel: (CPString aLabel
forSegment: (unsigned)  aSegment 
implementation

Sets the label for the specified segment

Parameters
aLabelthe label for the segment
aSegmentthe segment to label
Exceptions
CPRangeExceptionif aSegment is out of bounds

Definition at line 350 of file CPSegmentedControl.j.

- (void) setMenu: (CPMenu aMenu
forSegment: (unsigned)  aSegment 
implementation

Sets the menu for the specified segment

Parameters
aMenuthe menu to set
aSegmentthe segment to set the menu on
Exceptions
CPRangeExceptionif aSegment is out of bounds

Definition at line 373 of file CPSegmentedControl.j.

- (void) setSegmentCount: (unsigned)  aCount
implementation

Sets the number of segments in the button.

Parameters
aCountthe number of segments on the button

Definition at line 149 of file CPSegmentedControl.j.

- (void) setSegments: (CPArray)  segments
implementation

Definition at line 110 of file CPSegmentedControl.j.

- (void) setSelected: (BOOL)  isSelected
forSegment: (unsigned)  aSegment 
implementation

Sets the selection for the specified segment. If only one segment can be selected at a time, any other segment will be deselected.

Parameters
isSelectedYES selects the segment. NO deselects it.
aSegmentthe segment to set the selection for
Exceptions
CPRangeExceptionif aSegment is out of bounds

Definition at line 395 of file CPSegmentedControl.j.

- (void) setSelectedSegment: (unsigned)  aSegment
implementation

Selects a segment.

Parameters
aSegmentthe segment to select
Exceptions
CPRangeExceptionif aSegment is out of bounds

Definition at line 193 of file CPSegmentedControl.j.

- (void) setTag: (int)  aTag
forSegment: (unsigned)  aSegment 
implementation

Sets a tag for the specified segment.

Parameters
aTagthe tag to set
aSegmentthe segment to set the tag on

Definition at line 479 of file CPSegmentedControl.j.

- (void) setTrackingMode: (CPSegmentSwitchTracking)  aTrackingMode
implementation

Definition at line 260 of file CPSegmentedControl.j.

- (void) setWidth: (float)  aWidth
forSegment: (unsigned)  aSegment 
implementation

Sets the width of the specified segment.

Parameters
aWidththe new width for the segment
aSegmentthe segment to set the width for
Exceptions
CPRangeExceptionif aSegment is out of bounds

Definition at line 305 of file CPSegmentedControl.j.

- (int) tagForSegment: (unsigned)  aSegment
implementation

Returns the tag for the specified segment.

Parameters
aSegmentthe segment to obtain the tag for

Definition at line 488 of file CPSegmentedControl.j.

- (unsigned) testSegment: (CGPoint)  aPoint
implementation

Returns the segment that is hit by the specified point.

Parameters
aPointthe point to test for a segment hit
Returns
the intersecting segment

Definition at line 809 of file CPSegmentedControl.j.

+ (CPDictionary) themeAttributes
implementation

Reimplemented from CPControl.

Definition at line 55 of file CPSegmentedControl.j.

- (void) tile
implementation

Definition at line 716 of file CPSegmentedControl.j.

- (void) tileWithChangedSegment: (CPInteger)  aSegment
implementation

Definition at line 722 of file CPSegmentedControl.j.

- (CPSegmentSwitchTracking) trackingMode
implementation

Returns the control's tracking mode.

Definition at line 293 of file CPSegmentedControl.j.

- (void) trackSegment: (CPEvent anEvent
implementation

Handles events for the segment

Parameters
anEventthe event to handle

Definition at line 847 of file CPSegmentedControl.j.

- (float) widthForSegment: (unsigned)  aSegment
implementation

Returns the width for the specified segment.

Parameters
aSegmentthe segment to get the width for
Exceptions
CPRangeExceptionif aSegment is out of bounds

Definition at line 316 of file CPSegmentedControl.j.


The documentation for this class was generated from the following files: