![]() |
API
0.9.6
|
#import <CPControl.h>
Class Methods | |
(void) | + initialize |
(CPDictionary) | + themeAttributes |
![]() | |
(CPMenu) | + defaultMenu |
(CPString) | + defaultThemeClass |
(CPSet) | + keyPathsForValuesAffectingBounds |
(CPSet) | + keyPathsForValuesAffectingFrame |
![]() | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(Class) | + class |
(void) | + exposeBinding: |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
Additional Inherited Members | |
![]() | |
Class | isa |
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 |
Returns the receiver's target action.
Definition at line 200 of file CPControl.j.
|
implementation |
Returns the text alignment of the control.
Definition at line 641 of file CPControl.j.
|
implementation |
Reimplemented in CPTableView, and CPSlider.
Definition at line 382 of file CPControl.j.
|
implementation |
Returns the receiver's double value.
Definition at line 461 of file CPControl.j.
|
implementation |
Archives the view to a coder.
aCoder | the object into which the view's data will be archived. |
Reimplemented from CPView.
Reimplemented in CPTokenField, CPRadio, CPTableView, CPOutlineView, CPTextField, CPButton, CPScroller, CPSearchField, CPLevelIndicator, CPBrowser, CPImageView, CPComboBox, CPSegmentedControl, CPColorWell, CPSlider, and CPStepper.
Provided by category CPControl(CPCoding).
Definition at line 909 of file CPControl.j.
|
implementation |
Returns the receiver's float value.
Definition at line 444 of file CPControl.j.
|
implementation |
Returns the font of the control.
Definition at line 756 of file CPControl.j.
|
implementation |
Synthesized accessor method.
Provided by category CPControl(CPSynthesizedAccessors).
Definition at line 1006 of file CPControl.j.
|
implementation |
Highlights the receiver.
BOOL | - YES if the receiver should be highlighted, otherwise NO. |
Definition at line 837 of file CPControl.j.
|
implementation |
Returns the image position of the receiver.
Definition at line 782 of file CPControl.j.
|
implementation |
Returns the image scaling of the control.
Reimplemented in CPImageView.
Definition at line 805 of file CPControl.j.
|
implementation |
Reimplemented from CPView.
Reimplemented in CPSearchField, CPLevelIndicator, and CPImageView.
Definition at line 130 of file CPControl.j.
|
implementation |
Initializes the view from an archive.
aCoder | the coder from which to initialize |
Reimplemented from CPView.
Reimplemented in CPTokenField, CPRadio, CPTableView, CPOutlineView, CPTextField, CPButton, CPScroller, CPSearchField, CPLevelIndicator, CPBrowser, CPImageView, CPComboBox, CPSegmentedControl, CPColorWell, CPSlider, CPStepper, and CPPopUpButton.
Provided by category CPControl(CPCoding).
Definition at line 884 of file CPControl.j.
|
implementation |
Initializes the receiver for usage with the specified bounding rectangle
Reimplemented from CPView.
Reimplemented in CPRadio, CPTableView, CPOutlineView, CPDisclosureButton, CPTextField, CPButton, CPScroller, CPSearchField, CPLevelIndicator, CPBrowser, CPImageView, CPComboBox, CPSegmentedControl, CPColorWell, CPSlider, CPStepper, CPPopUpButton, and CPCheckBox.
Definition at line 174 of file CPControl.j.
|
implementation |
Returns the receiver's int value.
Definition at line 495 of file CPControl.j.
|
implementation |
Returns the receiver's int value.
Definition at line 478 of file CPControl.j.
|
implementation |
Returns whether the control can continuously send its action messages.
Reimplemented in CPSlider.
Definition at line 248 of file CPControl.j.
|
implementation |
Returns YES if the receiver is enabled, otherwise NO.
Definition at line 827 of file CPControl.j.
|
implementation |
Returns YES if the control is highlighted, otherwise NO.
Definition at line 858 of file CPControl.j.
|
implementation |
Returns the line break mode of the control.
Definition at line 688 of file CPControl.j.
|
implementation |
Notifies the receiver that the user has clicked the mouse down in its area.
anEvent | contains information about the click |
Reimplemented from CPView.
Reimplemented in CPTextField, CPButton, CPScroller, CPTokenField, CPSearchField, CPLevelIndicator, CPImageView, CPSegmentedControl, and CPPopUpButton.
Definition at line 395 of file CPControl.j.
|
implementation |
Returns the mask of modifier keys held down when the user clicked.
Definition at line 370 of file CPControl.j.
|
implementation |
Reimplemented from CPResponder.
Reimplemented in CPScroller.
Definition at line 403 of file CPControl.j.
|
implementation |
Notifies the receiver that the mouse exited the receiver's area.
anEvent | contains information about the exit |
Reimplemented from CPResponder.
Reimplemented in CPScroller.
Definition at line 411 of file CPControl.j.
|
implementation |
Reimplemented in CPRadio, and CPButton.
Definition at line 326 of file CPControl.j.
|
implementation |
Returns the receiver's object value.
Reimplemented in CPTextField, CPTokenField, and CPPopUpButton.
Definition at line 425 of file CPControl.j.
|
implementation |
Perform a click on the receiver.
sender | - The sender object |
Reimplemented in CPButton.
Definition at line 336 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, CPSearchField, and CPComboBox.
Definition at line 229 of file CPControl.j.
|
implementation |
Definition at line 236 of file CPControl.j.
|
implementation |
Synthesized accessor method.
Provided by category CPControl(CPSynthesizedAccessors).
Definition at line 1022 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 192 of file CPControl.j.
|
implementation |
Sets the text alignment of the control.
CPLeftTextAlignment CPCenterTextAlignment CPRightTextAlignment CPJustifiedTextAlignment CPNaturalTextAlignment
Reimplemented in CPComboBox.
Definition at line 633 of file CPControl.j.
|
implementation |
Sets whether the cell can continuously send its action messages.
Reimplemented in CPSlider.
Definition at line 257 of file CPControl.j.
|
implementation |
Sets the receiver's double value.
Definition at line 470 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 CPTextField, CPTokenField, and CPStepper.
Definition at line 816 of file CPControl.j.
|
implementation |
Sets the receiver's float value.
Definition at line 453 of file CPControl.j.
|
implementation |
Sets the font of the control.
Reimplemented in CPComboBox, and CPSegmentedControl.
Definition at line 748 of file CPControl.j.
|
implementation |
Synthesized accessor method.
Provided by category CPControl(CPSynthesizedAccessors).
Definition at line 1014 of file CPControl.j.
|
implementation |
Highlights the receiver.
BOOL | - YES if the receiver should be highlighted, otherwise NO. |
Definition at line 847 of file CPControl.j.
|
implementation |
Sets the image position of the control.
CPNoImage CPImageOnly CPImageLeft CPImageRight CPImageBelow CPImageAbove CPImageOverlaps
Definition at line 774 of file CPControl.j.
|
implementation |
Sets the image scaling of the control.
CPImageScaleProportionallyDown CPImageScaleAxesIndependently CPImageScaleNone CPImageScaleProportionallyUpOrDown
Reimplemented in CPImageView.
Definition at line 797 of file CPControl.j.
|
implementation |
Sets the receiver's int value.
Definition at line 504 of file CPControl.j.
|
implementation |
Sets the receiver's int value.
Definition at line 487 of file CPControl.j.
|
implementation |
Sets the line break mode of the receiver.
CPLineBreakByWordWrapping CPLineBreakByCharWrapping CPLineBreakByClipping CPLineBreakByTruncatingHead CPLineBreakByTruncatingTail CPLineBreakByTruncatingMiddle
Definition at line 680 of file CPControl.j.
|
implementation |
Sets the receiver's object value.
Reimplemented in CPRadio, CPTextField, CPButton, CPScroller, CPTokenField, CPComboBox, and CPSlider.
Definition at line 433 of file CPControl.j.
|
implementation |
Synthesized accessor method.
Provided by category CPControl(CPSynthesizedAccessors).
Definition at line 1030 of file CPControl.j.
|
implementation |
Definition at line 322 of file CPControl.j.
|
implementation |
Sets the receiver's string value.
Definition at line 528 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 210 of file CPControl.j.
|
implementation |
Sets the text color of the receiver.
aColor | - A CPColor object. |
Definition at line 698 of file CPControl.j.
|
implementation |
Sets the shadow color of the text for the receiver.
Definition at line 714 of file CPControl.j.
|
implementation |
Sets the shadow offset for the text.
offset | - a CGSize with the x and y offsets. |
Definition at line 732 of file CPControl.j.
|
implementation |
Set the vertical text alignment of the control.
CPTopVerticalTextAlignment CPCenterVerticalTextAlignment CPBottomVerticalTextAlignment
Definition at line 655 of file CPControl.j.
|
implementation |
Reimplemented in CPRadio, CPTableView, CPButton, CPSlider, and CPCheckBox.
Definition at line 375 of file CPControl.j.
|
implementation |
Reimplemented in CPTableView, CPButton, CPColorWell, and CPSlider.
Definition at line 387 of file CPControl.j.
|
implementation |
Returns the receiver's string value.
Reimplemented in CPTokenField.
Definition at line 512 of file CPControl.j.
|
implementation |
Definition at line 556 of file CPControl.j.
|
implementation |
Definition at line 563 of file CPControl.j.
|
implementation |
Definition at line 569 of file CPControl.j.
|
implementation |
Definition at line 575 of file CPControl.j.
|
implementation |
Definition at line 581 of file CPControl.j.
|
implementation |
Definition at line 587 of file CPControl.j.
|
implementation |
Returns the receiver's target. The target receives action messages from the receiver.
Definition at line 218 of file CPControl.j.
|
implementation |
Returns the text color of the receiver.
Definition at line 706 of file CPControl.j.
|
implementation |
Definition at line 593 of file CPControl.j.
|
implementation |
Reimplemented in CPTextField, CPTokenField, and CPComboBox.
Definition at line 602 of file CPControl.j.
|
implementation |
Definition at line 611 of file CPControl.j.
|
implementation |
Returns the shadow color of the text for the control.
Definition at line 722 of file CPControl.j.
|
implementation |
Returns the text shadow offset of the receiver.
Definition at line 740 of file CPControl.j.
|
implementation |
Reimplemented from CPView.
Reimplemented in CPTableView, CPTextField, CPButton, CPScroller, CPTokenField, CPComboBox, CPSegmentedControl, CPColorWell, CPSlider, and CPStepper.
Definition at line 104 of file CPControl.j.
|
implementation |
Reimplemented in CPTableView, and CPBrowser.
Definition at line 274 of file CPControl.j.
|
implementation |
Returns YES if the receiver tracks the mouse outside the frame, otherwise NO.
Reimplemented in CPTableView, and CPSlider.
Definition at line 269 of file CPControl.j.
|
implementation |
Fired when the button timer finished, usually after the user hits enter.
Definition at line 362 of file CPControl.j.
|
implementation |
Returns the vertical text alignment of the receiver.
Definition at line 663 of file CPControl.j.