![]() |
API
0.9.7
|
#import <CPControl.h>
Class Methods | |
(void) | + initialize |
(CPDictionary) | + themeAttributes |
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.
|
implementation |
Enabled controls accept first mouse by default.
Definition at line 395 of file CPControl.j.
|
implementation |
Returns the receiver's target action.
Definition at line 194 of file CPControl.j.
|
implementation |
Returns the text alignment of the control.
Definition at line 688 of file CPControl.j.
|
implementation |
Reimplemented in CPSlider.
Definition at line 379 of file CPControl.j.
|
implementation |
Returns the receiver's double value.
Definition at line 466 of file CPControl.j.
|
implementation |
Reimplemented in CPTokenField, CPRadio, CPOutlineView, CPButton, CPScroller, CPBrowser, CPImageView, CPLevelIndicator, CPComboBox, CPSegmentedControl, CPSlider, CPColorWell, and CPStepper.
Provided by category CPControl(CPCoding).
Definition at line 956 of file CPControl.j.
|
implementation |
Returns the receiver's float value.
Definition at line 449 of file CPControl.j.
|
implementation |
Returns the font of the control.
Definition at line 803 of file CPControl.j.
|
implementation |
Synthesized accessor method.
Provided by category CPControl(CPSynthesizedAccessors).
Definition at line 1053 of file CPControl.j.
|
implementation |
Highlights the receiver.
BOOL | - YES if the receiver should be highlighted, otherwise NO. |
Definition at line 884 of file CPControl.j.
|
implementation |
Returns the image position of the receiver.
Definition at line 829 of file CPControl.j.
|
implementation |
Returns the image scaling of the control.
Reimplemented in CPImageView.
Definition at line 852 of file CPControl.j.
|
implementation |
Reimplemented in CPImageView.
Definition at line 122 of file CPControl.j.
|
implementation |
Reimplemented in CPTokenField, CPRadio, CPOutlineView, CPButton, CPScroller, CPBrowser, CPImageView, CPLevelIndicator, CPComboBox, CPSegmentedControl, CPSlider, CPColorWell, CPStepper, and CPPopUpButton.
Provided by category CPControl(CPCoding).
Definition at line 931 of file CPControl.j.
|
implementation |
Reimplemented in CPRadio, CPOutlineView, CPDisclosureButton, CPButton, CPScroller, CPTokenField, CPBrowser, CPImageView, CPLevelIndicator, CPComboBox, CPSegmentedControl, CPSlider, CPColorWell, CPStepper, CPPopUpButton, and CPCheckBox.
Definition at line 168 of file CPControl.j.
|
implementation |
Returns the receiver's int value.
Definition at line 500 of file CPControl.j.
|
implementation |
Returns the receiver's int value.
Definition at line 483 of file CPControl.j.
|
implementation |
Returns whether the control can continuously send its action messages.
Reimplemented in CPSlider.
Definition at line 245 of file CPControl.j.
|
implementation |
Returns YES if the receiver is enabled, otherwise NO.
Definition at line 874 of file CPControl.j.
|
implementation |
Returns YES if the control is highlighted, otherwise NO.
Definition at line 905 of file CPControl.j.
|
implementation |
Returns the line break mode of the control.
Definition at line 735 of file CPControl.j.
|
implementation |
Reimplemented in CPButton, CPScroller, CPTokenField, CPImageView, CPLevelIndicator, CPSegmentedControl, and CPPopUpButton.
Definition at line 400 of file CPControl.j.
|
implementation |
Returns the mask of modifier keys held down when the user clicked.
Definition at line 367 of file CPControl.j.
|
implementation |
Reimplemented in CPScroller.
Definition at line 408 of file CPControl.j.
|
implementation |
Reimplemented in CPScroller.
Definition at line 416 of file CPControl.j.
|
implementation |
Reimplemented in CPRadio, and CPButton.
Definition at line 323 of file CPControl.j.
|
implementation |
Returns the receiver's object value.
Reimplemented in CPTokenField, and CPPopUpButton.
Definition at line 430 of file CPControl.j.
|
implementation |
Perform a click on the receiver.
sender | - The sender object |
Reimplemented in CPButton.
Definition at line 333 of file CPControl.j.
|
implementation |
Causes anAction
to be sent to anObject
.
anAction | the action to send |
anObject | the object to which the action will be sent |
Reimplemented in CPRadio, CPTokenField, and CPComboBox.
Definition at line 223 of file CPControl.j.
|
implementation |
Definition at line 233 of file CPControl.j.
|
implementation |
Synthesized accessor method.
Provided by category CPControl(CPSynthesizedAccessors).
Definition at line 1069 of file CPControl.j.
|
implementation |
Sets the receiver's target action.
anAction | Sets the action message that gets sent to the target. |
Definition at line 186 of file CPControl.j.
|
implementation |
Sets the text alignment of the control.
CPLeftTextAlignment CPCenterTextAlignment CPRightTextAlignment CPJustifiedTextAlignment CPNaturalTextAlignment
Reimplemented in CPComboBox.
Definition at line 680 of file CPControl.j.
|
implementation |
Sets whether the cell can continuously send its action messages.
Reimplemented in CPSlider.
Definition at line 254 of file CPControl.j.
|
implementation |
Sets the receiver's double value.
Reimplemented in CPStepper.
Definition at line 475 of file CPControl.j.
|
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.
BOOL | - YES if the control should be enabled, otherwise NO. |
Reimplemented in CPTokenField, and CPStepper.
Definition at line 863 of file CPControl.j.
|
implementation |
Sets the receiver's float value.
Definition at line 458 of file CPControl.j.
|
implementation |
Sets the font of the control.
Reimplemented in CPComboBox, and CPSegmentedControl.
Definition at line 795 of file CPControl.j.
|
implementation |
Synthesized accessor method.
Provided by category CPControl(CPSynthesizedAccessors).
Definition at line 1061 of file CPControl.j.
|
implementation |
Highlights the receiver.
BOOL | - YES if the receiver should be highlighted, otherwise NO. |
Definition at line 894 of file CPControl.j.
|
implementation |
Sets the image position of the control.
CPNoImage CPImageOnly CPImageLeft CPImageRight CPImageBelow CPImageAbove CPImageOverlaps
Definition at line 821 of file CPControl.j.
|
implementation |
Sets the image scaling of the control.
CPImageScaleProportionallyDown CPImageScaleAxesIndependently CPImageScaleNone CPImageScaleProportionallyUpOrDown
Reimplemented in CPImageView.
Definition at line 844 of file CPControl.j.
|
implementation |
Sets the receiver's int value.
Definition at line 509 of file CPControl.j.
|
implementation |
Sets the receiver's int value.
Definition at line 492 of file CPControl.j.
|
implementation |
Sets the line break mode of the receiver.
CPLineBreakByWordWrapping CPLineBreakByCharWrapping CPLineBreakByClipping CPLineBreakByTruncatingHead CPLineBreakByTruncatingTail CPLineBreakByTruncatingMiddle
Definition at line 727 of file CPControl.j.
|
implementation |
Sets the receiver's object value.
Reimplemented in CPRadio, CPButton, CPScroller, CPTokenField, CPComboBox, CPSlider, and CPPopUpButton.
Definition at line 438 of file CPControl.j.
|
implementation |
Synthesized accessor method.
Provided by category CPControl(CPSynthesizedAccessors).
Definition at line 1077 of file CPControl.j.
|
implementation |
Reimplemented in CPDisclosureButton, and CPButton.
Definition at line 319 of file CPControl.j.
|
implementation |
Sets the receiver's string value.
Definition at line 533 of file CPControl.j.
|
implementation |
Sets the receiver's target. The target receives action messages from the receiver.
aTarget | the object that will receive the message specified by action |
Definition at line 204 of file CPControl.j.
|
implementation |
Sets the text color of the receiver.
aColor | - A CPColor object. |
Definition at line 745 of file CPControl.j.
|
implementation |
Sets the shadow color of the text for the receiver.
Definition at line 761 of file CPControl.j.
|
implementation |
Sets the shadow offset for the text.
offset | - a CGSize with the x and y offsets. |
Definition at line 779 of file CPControl.j.
|
implementation |
Set the vertical text alignment of the control.
CPTopVerticalTextAlignment CPCenterVerticalTextAlignment CPBottomVerticalTextAlignment
Definition at line 702 of file CPControl.j.
|
implementation |
Reimplemented in CPRadio, CPButton, CPSlider, and CPCheckBox.
Definition at line 372 of file CPControl.j.
|
implementation |
Reimplemented in CPButton, CPSlider, and CPColorWell.
Definition at line 384 of file CPControl.j.
|
implementation |
Returns the receiver's string value.
Reimplemented in CPTokenField.
Definition at line 517 of file CPControl.j.
|
implementation |
Definition at line 561 of file CPControl.j.
|
implementation |
Definition at line 568 of file CPControl.j.
|
implementation |
Definition at line 574 of file CPControl.j.
|
implementation |
Definition at line 580 of file CPControl.j.
|
implementation |
Definition at line 586 of file CPControl.j.
|
implementation |
Definition at line 592 of file CPControl.j.
|
implementation |
Returns the receiver's target. The target receives action messages from the receiver.
Definition at line 212 of file CPControl.j.
|
implementation |
Returns the text color of the receiver.
Definition at line 753 of file CPControl.j.
|
implementation |
Definition at line 598 of file CPControl.j.
|
implementation |
Reimplemented in CPTokenField, and CPComboBox.
Definition at line 607 of file CPControl.j.
|
implementation |
Definition at line 616 of file CPControl.j.
|
implementation |
Returns the shadow color of the text for the control.
Definition at line 769 of file CPControl.j.
|
implementation |
Returns the text shadow offset of the receiver.
Definition at line 787 of file CPControl.j.
|
implementation |
Reimplemented in CPButton, CPScroller, CPTokenField, CPBrowser, CPLevelIndicator, CPComboBox, CPSegmentedControl, CPSlider, CPColorWell, and CPStepper.
Definition at line 105 of file CPControl.j.
|
implementation |
Reimplemented in CPBrowser.
Definition at line 271 of file CPControl.j.
|
implementation |
Returns YES if the receiver tracks the mouse outside the frame, otherwise NO.
Reimplemented in CPSlider.
Definition at line 266 of file CPControl.j.
|
implementation |
Fired when the button timer finished, usually after the user hits enter.
Definition at line 359 of file CPControl.j.
|
implementation |
Returns the vertical text alignment of the receiver.
Definition at line 710 of file CPControl.j.