#import <CPButton.h>
Class Methods | |
(id) | + buttonWithTitle: |
(id) | + buttonWithTitle:theme: |
(CPString) | + defaultThemeClass |
(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: |
CPButton is a subclass of CPControl that intercepts mouse-down events and sends an action message to a target object when it's clicked or pressed.
Definition at line 2 of file CPButton.h.
|
implementation |
Returns a Boolean value indicating whether the button allows a mixed state.
YES
if the button has a 'mixed' state in addition to on and off. Definition at line 213 of file CPButton.j.
|
implementation |
Returns the image used when the button is in an alternate state.
Reimplemented in CPRadio, and CPCheckBox.
Definition at line 394 of file CPButton.j.
|
implementation |
Definition at line 367 of file CPButton.j.
|
implementation |
Definition at line 616 of file CPButton.j.
|
implementation |
Provided by category CPButton(NS).
Definition at line 917 of file CPButton.j.
|
implementation |
Definition at line 124 of file CPButton.j.
|
implementation |
Definition at line 129 of file CPButton.j.
|
implementation |
Definition at line 609 of file CPButton.j.
Reimplemented from CPView.
Definition at line 680 of file CPButton.j.
|
implementation |
Reimplemented from CPView.
Reimplemented in CPRadio, CPPopUpButton, and CPCheckBox.
Definition at line 140 of file CPButton.j.
|
implementation |
Archives this button into the provided coder.
aCoder | the coder to which the button's instance data will be written. |
Reimplemented from CPControl.
Reimplemented in CPRadio.
Provided by category CPButton(CPCoding).
Definition at line 998 of file CPButton.j.
|
implementation |
Definition at line 447 of file CPButton.j.
|
implementation |
Reimplemented in CPRadio, and CPCheckBox.
Definition at line 377 of file CPButton.j.
|
implementation |
Definition at line 518 of file CPButton.j.
|
implementation |
Definition at line 404 of file CPButton.j.
|
implementation |
Initializes the button by unarchiving data from aCoder
.
aCoder | the coder containing the archived CPButton. |
Reimplemented from CPControl.
Reimplemented in CPRadio, and CPPopUpButton.
Provided by category CPButton(CPCoding).
Definition at line 946 of file CPButton.j.
|
implementation |
Initializes and returns a newly allocated CPButton object with a specified frame rectangle.
aFrame | The frame rectangle for the created button object. |
Reimplemented from CPControl.
Reimplemented in CPRadio, CPDisclosureButton, CPPopUpButton, and CPCheckBox.
Definition at line 161 of file CPButton.j.
|
implementation |
Definition at line 594 of file CPButton.j.
|
implementation |
Definition at line 776 of file CPButton.j.
|
implementation |
Returns the keyboard shortcut for this button.
Definition at line 816 of file CPButton.j.
|
implementation |
Sets the mask to be used with this button's key equivalent.
Definition at line 832 of file CPButton.j.
|
implementation |
Reimplemented from CPView.
Definition at line 694 of file CPButton.j.
|
implementation |
Reimplemented from CPControl.
Reimplemented in CPPopUpButton.
Definition at line 529 of file CPButton.j.
|
implementation |
Returns the button's next state.
CPOffState
(the normal or unpressed state) or CPOnState
(the alternate or pressed state). If it has three, this value can be CPOnState
(the feature is in effect everywhere), CPOffState
(the feature is in effect nowhere), or CPMixedState
(the feature is in effect somewhere). Reimplemented from CPControl.
Reimplemented in CPRadio.
Definition at line 287 of file CPButton.j.
|
implementation |
Definition at line 545 of file CPButton.j.
|
implementation |
Perform a click on the receiver.
sender | - The sender object |
Reimplemented from CPControl.
Definition at line 860 of file CPButton.j.
|
implementation |
Checks the button's key equivalent against that in the event, and if they match simulates a button click.
Reimplemented from CPView.
Definition at line 841 of file CPButton.j.
|
implementation |
Reimplemented from CPView.
Definition at line 669 of file CPButton.j.
|
implementation |
Sets whether the button can have a 'mixed' state.
aFlag | specifies whether a 'mixed' state is allowed or not |
Definition at line 222 of file CPButton.j.
|
implementation |
Sets the button's image which is used in its alternate state.
anImage | the image to be used while the button is in an alternate state |
Definition at line 386 of file CPButton.j.
|
implementation |
Definition at line 356 of file CPButton.j.
|
implementation |
Provided by category CPButton(NS).
Definition at line 900 of file CPButton.j.
|
implementation |
Definition at line 768 of file CPButton.j.
|
implementation |
Definition at line 452 of file CPButton.j.
|
implementation |
Sets the control's size.
aControlSize | the control's size |
Reimplemented from CPControl.
Definition at line 197 of file CPButton.j.
|
implementation |
Definition at line 433 of file CPButton.j.
|
implementation |
Reimplemented in CPPopUpButton.
Definition at line 372 of file CPButton.j.
|
implementation |
Definition at line 502 of file CPButton.j.
|
implementation |
Definition at line 399 of file CPButton.j.
|
implementation |
Sets the keyboard shortcut for this button. For special keys see CPEvent.j CP...FunctionKey and CPText.j CP...Character.
aString | the keyboard shortcut as a string |
Definition at line 787 of file CPButton.j.
|
implementation |
Returns the mask used with this button's key equivalent.
Definition at line 824 of file CPButton.j.
|
implementation |
Sets the button's state to the next available state.
aState | Possible states are any of the CPButton globals: CPOffState , CPOnState , CPMixedState |
Definition at line 304 of file CPButton.j.
|
implementation |
Sets the value of the button using an Objective-J object.
anObjectValue | The value of the button interpreted as an Objective-J object. |
Reimplemented from CPControl.
Reimplemented in CPRadio, and CPPopUpButton.
Definition at line 239 of file CPButton.j.
|
implementation |
Definition at line 523 of file CPButton.j.
|
implementation |
Definition at line 409 of file CPButton.j.
|
implementation |
Sets the button's state to aState
.
aState | Possible states are any of the CPButton globals: CPOffState , CPOnState , CPMixedState |
Reimplemented from CPControl.
Reimplemented in CPDisclosureButton.
Definition at line 317 of file CPButton.j.
|
implementation |
Sets the title displayed by the button when in its normal state.
aTitle | The string to set as the button's title. This title is always shown on buttons that don’t use their alternate contents when highlighting or displaying their alternate state. |
Reimplemented in CPPopUpButton.
Definition at line 335 of file CPButton.j.
|
implementation |
Definition at line 428 of file CPButton.j.
|
implementation |
Adjust the size of the button to fit the title and surrounding button image.
Definition at line 659 of file CPButton.j.
|
implementation |
Reimplemented from CPControl.
Reimplemented in CPRadio, and CPCheckBox.
Definition at line 551 of file CPButton.j.
|
implementation |
Returns the button's current state
Definition at line 325 of file CPButton.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 575 of file CPButton.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 145 of file CPButton.j.
|
implementation |
Returns the title displayed on the button when it’s in its normal state.
Definition at line 351 of file CPButton.j.
|
implementation |
Called when the receiver is about to be moved to a new window.
aWindow | the window to which the receiver will be moved. |
Reimplemented from CPView.
Definition at line 799 of file CPButton.j.