CPButton Class Reference
[AppKit]

List of all members.

Public Member Functions

(id) - initWithFrame: [implementation]
(BOOL) - allowsMixedState [implementation]
(void) - setAllowsMixedState: [implementation]
(void) - setObjectValue: [implementation]
(CPInteger) - nextState [implementation]
(void) - setNextState [implementation]
(void) - setState: [implementation]
(CPInteger) - state [implementation]
(void) - setTitle: [implementation]
(CPString- title [implementation]
(void) - setAlternateTitle: [implementation]
(CPString- alternateTitle [implementation]
(void) - setImage: [implementation]
(CPImage- image [implementation]
(void) - setAlternateImage: [implementation]
(CPImage- alternateImage [implementation]
(void) - setShowsStateBy: [implementation]
(CPInteger) - showsStateBy [implementation]
(void) - setHighlightsBy: [implementation]
(void) - setButtonType: [implementation]
(void) - setImageDimsWhenDisabled: [implementation]
(BOOL) - imageDimsWhenDisabled [implementation]
(BOOL) - startTrackingAt: [implementation]
(void) - stopTracking:at:mouseIsUp: [implementation]
(CGRect) - contentRectForBounds: [implementation]
(CGRect) - bezelRectForBounds: [implementation]
(void) - sizeToFit [implementation]
(CGRect) - rectForEphemeralSubviewNamed: [implementation]
(CPView- createEphemeralSubviewNamed: [implementation]
(void) - layoutSubviews [implementation]
(void) - setDefaultButton: [implementation]
(void) - setBordered: [implementation]
(BOOL) - isBordered [implementation]
(void) - setBezelStyle: [implementation]
(unsigned) - bezelStyle [implementation]
(id) - initWithCoder: [implementation]
(void) - encodeWithCoder: [implementation]

Static Public Member Functions

(id) + buttonWithTitle: [implementation]
(id) + buttonWithTitle:theme: [implementation]
(CPString+ themeClass [implementation]
(id) + themeAttributes [implementation]


Detailed Description

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 106 of file CPButton.j.


Member Function Documentation

- (BOOL) allowsMixedState   [implementation]

Returns YES if the button has a 'mixed' state in addition to on and off.

Definition at line 177 of file CPButton.j.

- (CPImage) alternateImage   [implementation]

Returns the image used when the button is in an alternate state.

Definition at line 334 of file CPButton.j.

- (CPString) alternateTitle   [implementation]

Definition at line 295 of file CPButton.j.

- (CGRect) bezelRectForBounds: (CFRect)  bounds   [implementation]

Definition at line 463 of file CPButton.j.

- (unsigned) bezelStyle   [implementation]

Definition at line 589 of file CPButton.j.

+ (id) buttonWithTitle: (CPString aTitle   [implementation]

Definition at line 125 of file CPButton.j.

+ (id) buttonWithTitle: (CPString aTitle
theme: (CPTheme aTheme 
[implementation]

Definition at line 130 of file CPButton.j.

- (CGRect) contentRectForBounds: (CGRect)  bounds   [implementation]

Definition at line 448 of file CPButton.j.

- (CPView) createEphemeralSubviewNamed: (CPString aName   [implementation]

Definition at line 514 of file CPButton.j.

- (void) encodeWithCoder: (CPCoder aCoder   [implementation]

Archives this button into the provided coder.

Parameters:
aCoder the coder to which the button's instance data will be written.

Definition at line 633 of file CPButton.j.

- (CPImage) image   [implementation]

Definition at line 311 of file CPButton.j.

- (BOOL) imageDimsWhenDisabled   [implementation]

Definition at line 426 of file CPButton.j.

- (id) initWithCoder: (CPCoder aCoder   [implementation]

Initializes the button by unarchiving data from aCoder.

Parameters:
aCoder the coder containing the archived CPButton.

Definition at line 608 of file CPButton.j.

- (id) initWithFrame: (CGRect)  aFrame   [implementation]

Definition at line 152 of file CPButton.j.

- (BOOL) isBordered   [implementation]

Definition at line 576 of file CPButton.j.

- (void) layoutSubviews   [implementation]

Definition at line 530 of file CPButton.j.

- (CPInteger) nextState   [implementation]

Definition at line 233 of file CPButton.j.

- (CGRect) rectForEphemeralSubviewNamed: (CPString aName   [implementation]

Definition at line 503 of file CPButton.j.

- (void) setAllowsMixedState: (BOOL)  aFlag   [implementation]

Sets whether the button can have a 'mixed' state.

Parameters:
aFlag specifies whether a 'mixed' state is allowed or not

Definition at line 186 of file CPButton.j.

- (void) setAlternateImage: (CPImage anImage   [implementation]

Sets the button's image which is used in its alternate state.

Parameters:
anImage the image to be used while the button is in an alternate state

Definition at line 320 of file CPButton.j.

- (void) setAlternateTitle: (CPString aTitle   [implementation]

Definition at line 284 of file CPButton.j.

- (void) setBezelStyle: (unsigned)  aBezelStyle   [implementation]

Definition at line 585 of file CPButton.j.

- (void) setBordered: (BOOL)  shouldBeBordered   [implementation]

Definition at line 568 of file CPButton.j.

- (void) setButtonType: (CPButtonType)  aButtonType   [implementation]

Definition at line 369 of file CPButton.j.

- (void) setDefaultButton: (BOOL)  shouldBeDefaultButton   [implementation]

Definition at line 560 of file CPButton.j.

- (void) setHighlightsBy: (CPInteger)  aMask   [implementation]

Definition at line 355 of file CPButton.j.

- (void) setImage: (CPImage anImage   [implementation]

Definition at line 300 of file CPButton.j.

- (void) setImageDimsWhenDisabled: (BOOL)  imageShouldDimWhenDisabled   [implementation]

Definition at line 410 of file CPButton.j.

- (void) setNextState   [implementation]

Definition at line 245 of file CPButton.j.

- (void) setObjectValue: (id)  anObjectValue   [implementation]

Definition at line 199 of file CPButton.j.

- (void) setShowsStateBy: (CPInteger)  aMask   [implementation]

Definition at line 339 of file CPButton.j.

- (void) setState: (CPInteger)  aState   [implementation]

Sets the button's state to aState.

Parameters:
aState Possible states are any of the CPButton globals: CPOffState, CPOnState, CPMixedState

Definition at line 255 of file CPButton.j.

- (void) setTitle: (CPString aTitle   [implementation]

Definition at line 268 of file CPButton.j.

- (CPInteger) showsStateBy   [implementation]

Definition at line 350 of file CPButton.j.

- (void) sizeToFit   [implementation]

Adjust the size of the button to fit the title and surrounding button image.

Definition at line 484 of file CPButton.j.

- (BOOL) startTrackingAt: (CGPoint)  aPoint   [implementation]

Definition at line 431 of file CPButton.j.

- (CPInteger) state   [implementation]

Returns the button's current state

Definition at line 263 of file CPButton.j.

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

Definition at line 438 of file CPButton.j.

+ (id) themeAttributes   [implementation]

Definition at line 146 of file CPButton.j.

+ (CPString) themeClass   [implementation]

Definition at line 141 of file CPButton.j.

- (CPString) title   [implementation]

Definition at line 279 of file CPButton.j.


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

Generated on Wed May 20 12:44:00 2009 for Cappuccino by  doxygen 1.5.8