![]() |
API
0.9.6
|
#import <CPButton.h>
Class Methods | |
(id) | + buttonWithTitle: |
(id) | + buttonWithTitle:theme: |
(CPString) | + defaultThemeClass |
(id) | + themeAttributes |
![]() | |
(void) | + initialize |
![]() | |
(CPMenu) | + defaultMenu |
(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 |
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 187 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 368 of file CPButton.j.
|
implementation |
Definition at line 341 of file CPButton.j.
|
implementation |
Definition at line 579 of file CPButton.j.
|
implementation |
Provided by category CPButton(NS).
Definition at line 880 of file CPButton.j.
|
implementation |
Definition at line 115 of file CPButton.j.
|
implementation |
Definition at line 120 of file CPButton.j.
|
implementation |
Definition at line 572 of file CPButton.j.
Reimplemented from CPView.
Definition at line 643 of file CPButton.j.
|
implementation |
Reimplemented from CPView.
Reimplemented in CPRadio, CPPopUpButton, and CPCheckBox.
Definition at line 131 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 961 of file CPButton.j.
|
implementation |
Definition at line 421 of file CPButton.j.
|
implementation |
Reimplemented in CPRadio, and CPCheckBox.
Definition at line 351 of file CPButton.j.
|
implementation |
Definition at line 483 of file CPButton.j.
|
implementation |
Definition at line 378 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 909 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 147 of file CPButton.j.
|
implementation |
Definition at line 557 of file CPButton.j.
|
implementation |
Definition at line 739 of file CPButton.j.
|
implementation |
Returns the keyboard shortcut for this button.
Definition at line 779 of file CPButton.j.
|
implementation |
Sets the mask to be used with this button's key equivalent.
Definition at line 795 of file CPButton.j.
|
implementation |
Reimplemented from CPView.
Definition at line 657 of file CPButton.j.
|
implementation |
Notifies the receiver that the user has clicked the mouse down in its area.
anEvent | contains information about the click |
Reimplemented from CPControl.
Reimplemented in CPPopUpButton.
Definition at line 494 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 261 of file CPButton.j.
|
implementation |
Definition at line 510 of file CPButton.j.
|
implementation |
Perform a click on the receiver.
sender | - The sender object |
Reimplemented from CPControl.
Definition at line 823 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 804 of file CPButton.j.
|
implementation |
Reimplemented from CPView.
Definition at line 632 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 196 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 360 of file CPButton.j.
|
implementation |
Definition at line 330 of file CPButton.j.
|
implementation |
Provided by category CPButton(NS).
Definition at line 863 of file CPButton.j.
|
implementation |
Definition at line 731 of file CPButton.j.
|
implementation |
Definition at line 426 of file CPButton.j.
|
implementation |
Definition at line 407 of file CPButton.j.
|
implementation |
Reimplemented in CPPopUpButton.
Definition at line 346 of file CPButton.j.
|
implementation |
Definition at line 467 of file CPButton.j.
|
implementation |
Definition at line 373 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 750 of file CPButton.j.
|
implementation |
Returns the mask used with this button's key equivalent.
Definition at line 787 of file CPButton.j.
|
implementation |
Sets the button's next state to aState
.
aState | Possible states are any of the CPButton globals: CPOffState , CPOnState , CPMixedState |
Definition at line 278 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.
Definition at line 213 of file CPButton.j.
|
implementation |
Definition at line 488 of file CPButton.j.
|
implementation |
Definition at line 383 of file CPButton.j.
|
implementation |
Sets the button's state to aState
.
aState | Possible states are any of the CPButton globals: CPOffState , CPOnState , CPMixedState |
Definition at line 291 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 309 of file CPButton.j.
|
implementation |
Definition at line 402 of file CPButton.j.
|
implementation |
Adjust the size of the button to fit the title and surrounding button image.
Definition at line 622 of file CPButton.j.
|
implementation |
Reimplemented from CPControl.
Reimplemented in CPRadio, and CPCheckBox.
Definition at line 516 of file CPButton.j.
|
implementation |
Returns the button's current state
Definition at line 299 of file CPButton.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 538 of file CPButton.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 136 of file CPButton.j.
|
implementation |
Returns the title displayed on the button when it’s in its normal state.
Definition at line 325 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 762 of file CPButton.j.