API  1.0.0
CPControl Class Reference

#import <CPControl.h>

+ Inheritance diagram for CPControl:

Instance Methods

(BOOL) - acceptsFirstMouse:
 
(SEL) - action
 
(CPTextAlignment) - alignment
 
(CPWritingDirection) - baseWritingDirection
 
(BOOL) - continueTracking:at:
 
(CPControlSize) - controlSize
 
(double) - doubleValue
 
(void) - encodeWithCoder:
 
(float) - floatValue
 
(CPFont- font
 
(CPFormatter- formatter
 
(void) - highlight:
 
(CPCellImagePosition) - imagePosition
 
(CPUInteger) - imageScaling
 
(id) - initWithCoder:
 
(id) - initWithFrame:
 
(int) - integerValue
 
(int) - intValue
 
(BOOL) - isContinuous
 
(BOOL) - isEnabled
 
(BOOL) - isHighlighted
 
(CPLineBreakMode) - lineBreakMode
 
(void) - mouseDown:
 
(unsigned) - mouseDownFlags
 
(void) - mouseEntered:
 
(void) - mouseExited:
 
(CPInteger) - nextState
 
(id) - objectValue
 
(void) - performClick:
 
(BOOL) - sendAction:to:
 
(int) - sendActionOn:
 
(BOOL) - sendsActionOnEndEditing
 
(void) - setAction:
 
(void) - setAlignment:
 
(void) - setBaseWritingDirection:
 
(void) - setContinuous:
 
(void) - setControlSize:
 
(void) - setDoubleValue:
 
(void) - setEnabled:
 
(void) - setFloatValue:
 
(void) - setFont:
 
(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:
 
(void) - updateTrackingAreas
 
(CPTextVerticalAlignment) - verticalAlignment
 
- Instance Methods inherited from CPView
(void) - addSubview:
 
(void) - addSubview:positioned:relativeTo:
 
(void) - addTrackingArea:
 
(CGRect) - adjustScroll:
 
(float) - alphaValue
 
(CAAnimation- animationForKey:
 
(CPDictionary- animations
 
(id) - animator
 
(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:
 
(CPView- createEphemeralSubviewNamed:
 
(CPString- debug_description
 
(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:
 
(CPAppearance- effectiveAppearance
 
(CPMenuItem- enclosingMenuItem
 
(CPScrollView- enclosingScrollView
 
(BOOL) - enterFullScreenMode
 
(BOOL) - enterFullScreenMode:withOptions:
 
(CPView- ephemeralSubviewNamed:
 
(void) - exitFullScreenMode
 
(void) - exitFullScreenModeWithOptions:
 
(CGRect) - frame
 
(CGPoint) - frameOrigin
 
(CGRect) - frameRectOfView:inSuperviewSize:
 
(CGSize) - frameSize
 
(CGRect) - frameWithNewSuperviewSize:
 
(BOOL) - hasCustomDrawRect
 
(BOOL) - hasCustomLayoutSubviews
 
(CPView- hitTest:
 
(BOOL) - hitTests
 
(id) - init
 
(BOOL) - inLiveResize
 
(BOOL) - isDescendantOf:
 
(BOOL) - isFlipped
 
(BOOL) - isHidden
 
(BOOL) - isHiddenOrHasHiddenAncestor
 
(BOOL) - isInFullScreenMode
 
(BOOL) - isOpaque
 
(CALayer- layer
 
(void) - layout
 
(CPView- layoutEphemeralSubviewNamed:positioned:relativeToEphemeralSubviewNamed:
 
(void) - layoutIfNeeded
 
(void) - layoutSubviews
 
(void) - lockFocus
 
(CPMenu- menuForEvent:
 
(BOOL) - mouseDownCanMoveWindow
 
(BOOL) - needsDisplay
 
(BOOL) - needsLayout
 
(BOOL) - needsPanelToBecomeKey
 
(CPView- nextKeyView
 
(CPView- nextValidKeyView
 
(void) - objectDidChangeTheme
 
(BOOL) - performKeyEquivalent:
 
(BOOL) - postsBoundsChangedNotifications
 
(BOOL) - postsFrameChangedNotifications
 
(CPView- previousKeyView
 
(CPView- previousValidKeyView
 
(CGRect) - rectForEphemeralSubviewNamed:
 
(void) - reflectScrolledClipView:
 
(CPArray) - registeredDraggedTypes
 
(void) - registerForDraggedTypes:
 
(void) - removeFromSuperview
 
(void) - removeTrackingArea:
 
(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) - setAnimations:
 
(void) - setAppearance:
 
(void) - setAutoresizesSubviews:
 
(void) - setAutoresizingMask:
 
(void) - setBackgroundColor:
 
(void) - setBounds:
 
(void) - setBoundsOrigin:
 
(void) - setBoundsSize:
 
(void) - setCenter:
 
(void) - setClipsToBounds:
 
(void) - setDOMClassName:
 
(void) - setFrame:
 
(void) - setFrameOrigin:
 
(void) - setFrameSize:
 
(void) - setHidden:
 
(void) - setHitTests:
 
(void) - setLayer:
 
(void) - setNeedsDisplay:
 
(void) - setNeedsDisplayInRect:
 
(void) - setNeedsLayout
 
(void) - setNeedsLayout:
 
(void) - setNextKeyView:
 
(void) - setPostsBoundsChangedNotifications:
 
(void) - setPostsFrameChangedNotifications:
 
(void) - setScaleSize:
 
(void) - setSubviews:
 
(void) - setTag:
 
(void) - setThemeClass:
 
(BOOL) - setThemeState:
 
(void) - setToolTip:
 
(void) - setValue:forThemeAttribute:
 
(void) - setValue:forThemeAttribute:inState:
 
(void) - setWantsLayer:
 
(CPArray) - subviews
 
(CPView- superview
 
(CPInteger) - tag
 
(void) - unlockFocus
 
(void) - unregisterDraggedTypes
 
(BOOL) - unsetThemeState:
 
(void) - viewDidEndLiveResize
 
(void) - viewDidHide
 
(void) - viewDidLayout
 
(void) - viewDidMoveToSuperview
 
(void) - viewDidMoveToWindow
 
(void) - viewDidUnhide
 
(void) - viewWillDraw
 
(void) - viewWillLayout
 
(void) - viewWillMoveToSuperview:
 
(void) - viewWillMoveToWindow:
 
(void) - viewWillStartLiveResize
 
(CPView- viewWithTag:
 
(CGRect) - visibleRect
 
(BOOL) - wantsLayer
 
(void) - willRemoveSubview:
 
(CPWindow- window
 

Class Methods

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

Detailed Description

CPControl is an abstract superclass used to implement user interface elements. As a subclass of CPView and CPResponder it has the ability to handle screen drawing and handling user input.

Definition at line 2 of file CPControl.h.

Method Documentation

◆ acceptsFirstMouse:()

- (BOOL) acceptsFirstMouse: (CPEvent anEvent
implementation

Enabled controls accept first mouse by default.

Reimplemented from CPView.

Reimplemented in CPTextField.

Definition at line 491 of file CPControl.j.

◆ action()

- (SEL) action
implementation

Returns the receiver's target action.

Definition at line 290 of file CPControl.j.

◆ alignment()

- (CPTextAlignment) alignment
implementation

Returns the text alignment of the control.

Definition at line 784 of file CPControl.j.

◆ baseWritingDirection()

- (CPWritingDirection) baseWritingDirection
implementation

Synthesized accessor method.

Provided by category CPControl(CPSynthesizedAccessors).

Definition at line 1255 of file CPControl.j.

◆ continueTracking:at:()

- (BOOL) continueTracking: (CGPoint)  lastPoint
at: (CGPoint)  aPoint 
implementation

Reimplemented in CPTableView, and CPSlider.

Definition at line 475 of file CPControl.j.

◆ controlSize()

- (CPControlSize) controlSize
implementation

Returns the control's control size

Definition at line 202 of file CPControl.j.

◆ doubleValue()

- (double) doubleValue
implementation

Returns the receiver's double value.

Definition at line 562 of file CPControl.j.

◆ encodeWithCoder:()

- (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 CPView.

Reimplemented in CPTokenField, CPSearchField, CPRadio, CPTableView, CPOutlineView, CPTextField, CPButton, CPBrowser, CPScroller, CPComboBox, CPDatePicker, CPImageView, CPLevelIndicator, CPSegmentedControl, CPSlider, CPColorWell, and CPStepper.

Provided by category CPControl(CPCoding).

Definition at line 1121 of file CPControl.j.

◆ floatValue()

- (float) floatValue
implementation

Returns the receiver's float value.

Definition at line 545 of file CPControl.j.

◆ font()

- (CPFont) font
implementation

Returns the font of the control.

Definition at line 899 of file CPControl.j.

◆ formatter()

- (CPFormatter) formatter
implementation

Synthesized accessor method.

Provided by category CPControl(CPSynthesizedAccessors).

Definition at line 1223 of file CPControl.j.

◆ highlight:()

- (void) highlight: (BOOL)  shouldHighlight
implementation

Highlights the receiver.

Parameters
BOOL- YES if the receiver should be highlighted, otherwise NO.

Definition at line 980 of file CPControl.j.

◆ imagePosition()

- (CPCellImagePosition) imagePosition
implementation

Returns the image position of the receiver.

Definition at line 925 of file CPControl.j.

◆ imageScaling()

- (CPUInteger) imageScaling
implementation

Returns the image scaling of the control.

Reimplemented in CPImageView.

Definition at line 948 of file CPControl.j.

◆ initialize()

+ (void) initialize
implementation

Reimplemented from CPView.

Reimplemented in CPImageView.

Definition at line 137 of file CPControl.j.

◆ initWithCoder:()

- (id) initWithCoder: (CPCoder aCoder
implementation

Initializes the view from an archive.

Parameters
aCoderthe coder from which to initialize
Returns
the initialized view

Reimplemented from CPView.

Reimplemented in CPTokenField, CPSearchField, CPRadio, CPTableView, CPOutlineView, CPTextField, CPButton, CPBrowser, CPScroller, CPComboBox, CPDatePicker, CPImageView, CPLevelIndicator, CPSegmentedControl, CPSlider, CPColorWell, CPStepper, and CPPopUpButton.

Provided by category CPControl(CPCoding).

Definition at line 1092 of file CPControl.j.

◆ initWithFrame:()

- (id) initWithFrame: (CGRect)  aFrame
implementation

Initializes the receiver for usage with the specified bounding rectangle

Returns
the initialized view

Reimplemented from CPView.

Reimplemented in CPRadio, CPTableView, CPOutlineView, CPDisclosureButton, CPTextField, CPButton, CPBrowser, CPTokenField, CPScroller, CPComboBox, CPDatePicker, CPImageView, CPLevelIndicator, CPSearchField, CPSegmentedControl, CPSlider, CPColorWell, CPStepper, CPPopUpButton, and CPCheckBox.

Definition at line 183 of file CPControl.j.

◆ integerValue()

- (int) integerValue
implementation

Returns the receiver's int value.

Definition at line 596 of file CPControl.j.

◆ intValue()

- (int) intValue
implementation

Returns the receiver's int value.

Definition at line 579 of file CPControl.j.

◆ isContinuous()

- (BOOL) isContinuous
implementation

Returns whether the control can continuously send its action messages.

Reimplemented in CPSlider.

Definition at line 341 of file CPControl.j.

◆ isEnabled()

- (BOOL) isEnabled
implementation

Returns YES if the receiver is enabled, otherwise NO.

Definition at line 970 of file CPControl.j.

◆ isHighlighted()

- (BOOL) isHighlighted
implementation

Returns YES if the control is highlighted, otherwise NO.

Definition at line 1001 of file CPControl.j.

◆ lineBreakMode()

- (CPLineBreakMode) lineBreakMode
implementation

Returns the line break mode of the control.

Definition at line 831 of file CPControl.j.

◆ mouseDown:()

- (void) mouseDown: (CPEvent anEvent
implementation

Reimplemented from CPView.

Reimplemented in CPTextField, CPButton, CPTokenField, CPScroller, CPImageView, CPLevelIndicator, CPSearchField, CPSegmentedControl, and CPPopUpButton.

Definition at line 496 of file CPControl.j.

◆ mouseDownFlags()

- (unsigned) mouseDownFlags
implementation

Returns the mask of modifier keys held down when the user clicked.

Definition at line 463 of file CPControl.j.

◆ mouseEntered:()

- (void) mouseEntered: (CPEvent anEvent
implementation

Reimplemented in CPScroller.

Definition at line 504 of file CPControl.j.

◆ mouseExited:()

- (void) mouseExited: (CPEvent anEvent
implementation

Reimplemented in CPScroller.

Definition at line 512 of file CPControl.j.

◆ nextState()

- (CPInteger) nextState
implementation

Reimplemented in CPRadio, and CPButton.

Definition at line 419 of file CPControl.j.

◆ objectValue()

- (id) objectValue
implementation

Returns the receiver's object value.

Reimplemented in CPTextField, CPTokenField, CPDatePicker, and CPPopUpButton.

Definition at line 526 of file CPControl.j.

◆ performClick:()

- (void) performClick: (id)  sender
implementation

Perform a click on the receiver.

Parameters
sender- The sender object

Reimplemented in CPButton.

Definition at line 429 of file CPControl.j.

◆ sendAction:to:()

- (BOOL) sendAction: (SEL)  anAction
to: (id)  anObject 
implementation

Causes anAction to be sent to anObject.

Parameters
anActionthe action to send
anObjectthe object to which the action will be sent

Reimplemented in CPRadio, CPTokenField, CPComboBox, and CPSearchField.

Definition at line 319 of file CPControl.j.

◆ sendActionOn:()

- (int) sendActionOn: (int)  mask
implementation

Definition at line 329 of file CPControl.j.

◆ sendsActionOnEndEditing()

- (BOOL) sendsActionOnEndEditing
implementation

Synthesized accessor method.

Provided by category CPControl(CPSynthesizedAccessors).

Definition at line 1239 of file CPControl.j.

◆ setAction:()

- (void) setAction: (SEL)  anAction
implementation

Sets the receiver's target action.

Parameters
anActionSets the action message that gets sent to the target.

Definition at line 282 of file CPControl.j.

◆ setAlignment:()

- (void) setAlignment: (CPTextAlignment)  alignment
implementation

Sets the text alignment of the control.

CPLeftTextAlignment
CPCenterTextAlignment
CPRightTextAlignment
CPJustifiedTextAlignment
CPNaturalTextAlignment

Reimplemented in CPComboBox.

Definition at line 776 of file CPControl.j.

◆ setBaseWritingDirection:()

- (void) setBaseWritingDirection: (CPWritingDirection)  writingDirection
implementation

Sets the initial writing direction of the receiver

Parameters
writingDirection- It could be CPWritingDirectionNatural, CPWritingDirectionLeftToRight, CPWritingDirectionRightToLeft

Provided by category CPControl(CPSynthesizedAccessors).

Definition at line 1014 of file CPControl.j.

◆ setContinuous:()

- (void) setContinuous: (BOOL)  flag
implementation

Sets whether the cell can continuously send its action messages.

Reimplemented in CPSlider.

Definition at line 350 of file CPControl.j.

◆ setControlSize:()

- (void) setControlSize: (CPControlSize)  aControlSize
implementation

Sets the control's size.

Parameters
aControlSizethe control's size

Reimplemented in CPTextField, CPButton, CPDatePicker, CPSegmentedControl, and CPStepper.

Definition at line 211 of file CPControl.j.

◆ setDoubleValue:()

- (void) setDoubleValue: (double)  anObject
implementation

Sets the receiver's double value.

Reimplemented in CPStepper.

Definition at line 571 of file CPControl.j.

◆ setEnabled:()

- (void) setEnabled: (BOOL)  isEnabled
implementation

Sets the enabled status of the control. Controls that are not enabled can not be used by the user and obtain the CPThemeStateDisabled theme state.

Parameters
BOOL- YES if the control should be enabled, otherwise NO.

Reimplemented in CPTextField, CPTokenField, CPDatePicker, and CPStepper.

Definition at line 959 of file CPControl.j.

◆ setFloatValue:()

- (void) setFloatValue: (float)  aValue
implementation

Sets the receiver's float value.

Definition at line 554 of file CPControl.j.

◆ setFont:()

- (void) setFont: (CPFont aFont
implementation

Sets the font of the control.

Reimplemented in CPComboBox, and CPSegmentedControl.

Definition at line 891 of file CPControl.j.

◆ setFormatter:()

- (void) setFormatter: (CPFormatter aValue
implementation

Synthesized accessor method.

Provided by category CPControl(CPSynthesizedAccessors).

Definition at line 1231 of file CPControl.j.

◆ setHighlighted:()

- (void) setHighlighted: (BOOL)  isHighlighted
implementation

Highlights the receiver.

Parameters
BOOL- YES if the receiver should be highlighted, otherwise NO.

Definition at line 990 of file CPControl.j.

◆ setImagePosition:()

- (void) setImagePosition: (CPCellImagePosition)  position
implementation

Sets the image position of the control.

CPNoImage
CPImageOnly
CPImageLeft
CPImageRight
CPImageBelow
CPImageAbove
CPImageOverlaps

Definition at line 917 of file CPControl.j.

◆ setImageScaling:()

- (void) setImageScaling: (CPImageScaling)  scaling
implementation

Sets the image scaling of the control.

CPImageScaleProportionallyDown
CPImageScaleAxesIndependently
CPImageScaleNone
CPImageScaleProportionallyUpOrDown

Reimplemented in CPImageView.

Definition at line 940 of file CPControl.j.

◆ setIntegerValue:()

- (void) setIntegerValue: (int)  anObject
implementation

Sets the receiver's int value.

Definition at line 605 of file CPControl.j.

◆ setIntValue:()

- (void) setIntValue: (int)  anObject
implementation

Sets the receiver's int value.

Definition at line 588 of file CPControl.j.

◆ setLineBreakMode:()

- (void) setLineBreakMode: (CPLineBreakMode)  mode
implementation

Sets the line break mode of the receiver.

CPLineBreakByWordWrapping
CPLineBreakByCharWrapping
CPLineBreakByClipping
CPLineBreakByTruncatingHead
CPLineBreakByTruncatingTail
CPLineBreakByTruncatingMiddle

Definition at line 823 of file CPControl.j.

◆ setObjectValue:()

- (void) setObjectValue: (id)  anObject
implementation

Sets the receiver's object value.

Reimplemented in CPRadio, CPTextField, CPButton, CPTokenField, CPScroller, CPComboBox, CPSlider, and CPPopUpButton.

Definition at line 534 of file CPControl.j.

◆ setSendsActionOnEndEditing:()

- (void) setSendsActionOnEndEditing: (BOOL)  aValue
implementation

Synthesized accessor method.

Provided by category CPControl(CPSynthesizedAccessors).

Definition at line 1247 of file CPControl.j.

◆ setState:()

- (void) setState: (CPInteger)  state
implementation

Reimplemented in CPDisclosureButton, and CPButton.

Definition at line 415 of file CPControl.j.

◆ setStringValue:()

- (void) setStringValue: (CPString aString
implementation

Sets the receiver's string value.

Definition at line 629 of file CPControl.j.

◆ setTarget:()

- (void) setTarget: (id)  aTarget
implementation

Sets the receiver's target. The target receives action messages from the receiver.

Parameters
aTargetthe object that will receive the message specified by action

Definition at line 300 of file CPControl.j.

◆ setTextColor:()

- (void) setTextColor: (CPColor aColor
implementation

Sets the text color of the receiver.

Parameters
aColor- A CPColor object.

Reimplemented in CPTextField.

Definition at line 841 of file CPControl.j.

◆ setTextShadowColor:()

- (void) setTextShadowColor: (CPColor aColor
implementation

Sets the shadow color of the text for the receiver.

Definition at line 857 of file CPControl.j.

◆ setTextShadowOffset:()

- (void) setTextShadowOffset: (CGSize)  offset
implementation

Sets the shadow offset for the text.

Parameters
offset- a CGSize with the x and y offsets.

Definition at line 875 of file CPControl.j.

◆ setVerticalAlignment:()

- (void) setVerticalAlignment: (CPTextVerticalAlignment)  alignment
implementation

Set the vertical text alignment of the control.

CPTopVerticalTextAlignment
CPCenterVerticalTextAlignment
CPBottomVerticalTextAlignment

Definition at line 798 of file CPControl.j.

◆ startTrackingAt:()

- (BOOL) startTrackingAt: (CGPoint)  aPoint
implementation

Reimplemented in CPRadio, CPTableView, CPButton, CPSlider, and CPCheckBox.

Definition at line 468 of file CPControl.j.

◆ stopTracking:at:mouseIsUp:()

- (void) stopTracking: (CGPoint)  lastPoint
at: (CGPoint)  aPoint
mouseIsUp: (BOOL)  mouseIsUp 
implementation

Reimplemented in CPTableView, CPButton, CPSlider, and CPColorWell.

Definition at line 480 of file CPControl.j.

◆ stringValue()

- (CPString) stringValue
implementation

Returns the receiver's string value.

Reimplemented in CPTokenField.

Definition at line 613 of file CPControl.j.

◆ takeDoubleValueFrom:()

- (void) takeDoubleValueFrom: (id)  sender
implementation

Definition at line 657 of file CPControl.j.

◆ takeFloatValueFrom:()

- (void) takeFloatValueFrom: (id)  sender
implementation

Definition at line 664 of file CPControl.j.

◆ takeIntegerValueFrom:()

- (void) takeIntegerValueFrom: (id)  sender
implementation

Definition at line 670 of file CPControl.j.

◆ takeIntValueFrom:()

- (void) takeIntValueFrom: (id)  sender
implementation

Definition at line 676 of file CPControl.j.

◆ takeObjectValueFrom:()

- (void) takeObjectValueFrom: (id)  sender
implementation

Definition at line 682 of file CPControl.j.

◆ takeStringValueFrom:()

- (void) takeStringValueFrom: (id)  sender
implementation

Definition at line 688 of file CPControl.j.

◆ target()

- (id) target
implementation

Returns the receiver's target. The target receives action messages from the receiver.

Definition at line 308 of file CPControl.j.

◆ textColor()

- (CPColor) textColor
implementation

Returns the text color of the receiver.

Definition at line 849 of file CPControl.j.

◆ textDidBeginEditing:()

- (void) textDidBeginEditing: (CPNotification note
implementation

Reimplemented in CPTextField.

Definition at line 694 of file CPControl.j.

◆ textDidChange:()

- (void) textDidChange: (CPNotification note
implementation

Reimplemented in CPTextField, CPTokenField, and CPComboBox.

Definition at line 703 of file CPControl.j.

◆ textDidEndEditing:()

- (void) textDidEndEditing: (CPNotification note
implementation

Reimplemented in CPTextField.

Definition at line 712 of file CPControl.j.

◆ textShadowColor()

- (CPColor) textShadowColor
implementation

Returns the shadow color of the text for the control.

Definition at line 865 of file CPControl.j.

◆ textShadowOffset()

- (CGSize) textShadowOffset
implementation

Returns the text shadow offset of the receiver.

Definition at line 883 of file CPControl.j.

◆ themeAttributes()

+ (CPDictionary) themeAttributes
implementation

◆ trackMouse:()

- (void) trackMouse: (CPEvent anEvent
implementation

Reimplemented in CPTableView, and CPBrowser.

Definition at line 367 of file CPControl.j.

◆ tracksMouseOutsideOfFrame()

- (BOOL) tracksMouseOutsideOfFrame
implementation

Returns YES if the receiver tracks the mouse outside the frame, otherwise NO.

Reimplemented in CPTableView, and CPSlider.

Definition at line 362 of file CPControl.j.

◆ unhighlightButtonTimerDidFinish:()

- (void) unhighlightButtonTimerDidFinish: (id)  sender
implementation

Fired when the button timer finished, usually after the user hits enter.

Definition at line 455 of file CPControl.j.

◆ updateTrackingAreas()

- (void) updateTrackingAreas
implementation

Invoked automatically when the view’s geometry changes such that its tracking areas need to be recalculated.

You should override this method to remove out of date tracking areas, add recomputed tracking areas and then call super;

Cocoa calls this on every view, whereas they have tracking area(s) or not. Cappuccino behaves differently :

  • updateTrackingAreas is called during initWithFrame
  • updateTrackingAreas is also called when placing a view in the view hierarchy (that is in a window)
  • if you have only CPTrackingInVisibleRect tracking areas attached to a view, it will not be called again (until you move the view in the hierarchy)
  • if you have at least one non-CPTrackingInVisibleRect tracking area attached, it will be called every time the view geometry could be modified You don't have to touch to CPTrackingInVisibleRect tracking areas, they will be automatically updated

Please note that it is the owner of a tracking area who is called for updateTrackingAreas. But, if a view without any tracking area is inserted in the view hierarchy (that is, in a window), the view is called for updateTrackingAreas. This enables you to use updateTrackingArea to initially attach your tracking areas to the view.

Reimplemented from CPView.

Reimplemented in CPTextField, and CPSearchField.

Provided by category CPControl(CPTrackingArea).

Definition at line 1056 of file CPControl.j.

◆ verticalAlignment()

- (CPTextVerticalAlignment) verticalAlignment
implementation

Returns the vertical text alignment of the receiver.

Definition at line 806 of file CPControl.j.


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