CPButton Class Reference
[AppKit]

List of all members.

Public Member Functions

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

Static Public Member Functions

(id) + buttonWithTitle: [implementation]
(id) + buttonWithTitle:theme: [implementation]
(id) + themeAttributes [implementation]
(CPString+ themeClass [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 85 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 156 of file CPButton.j.

- (CPImage) alternateImage   [implementation]

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

Definition at line 313 of file CPButton.j.

- (CPString) alternateTitle   [implementation]

Definition at line 274 of file CPButton.j.

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

Definition at line 442 of file CPButton.j.

- (unsigned) bezelStyle   [implementation]

Definition at line 565 of file CPButton.j.

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

Definition at line 104 of file CPButton.j.

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

Definition at line 109 of file CPButton.j.

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

Definition at line 427 of file CPButton.j.

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

Definition at line 493 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 609 of file CPButton.j.

- (CPImage) image   [implementation]

Definition at line 290 of file CPButton.j.

- (BOOL) imageDimsWhenDisabled   [implementation]

Definition at line 405 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 584 of file CPButton.j.

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

Definition at line 131 of file CPButton.j.

- (BOOL) isBordered   [implementation]

Definition at line 552 of file CPButton.j.

- (void) layoutSubviews   [implementation]

Definition at line 507 of file CPButton.j.

- (CPInteger) nextState   [implementation]

Definition at line 212 of file CPButton.j.

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

Definition at line 482 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 165 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 299 of file CPButton.j.

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

Definition at line 263 of file CPButton.j.

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

Definition at line 561 of file CPButton.j.

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

Definition at line 544 of file CPButton.j.

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

Definition at line 348 of file CPButton.j.

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

Definition at line 536 of file CPButton.j.

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

Definition at line 334 of file CPButton.j.

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

Definition at line 279 of file CPButton.j.

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

Definition at line 389 of file CPButton.j.

- (void) setNextState   [implementation]

Definition at line 224 of file CPButton.j.

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

Definition at line 178 of file CPButton.j.

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

Definition at line 318 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 234 of file CPButton.j.

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

Definition at line 247 of file CPButton.j.

- (CPInteger) showsStateBy   [implementation]

Definition at line 329 of file CPButton.j.

- (void) sizeToFit   [implementation]

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

Definition at line 463 of file CPButton.j.

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

Definition at line 410 of file CPButton.j.

- (CPInteger) state   [implementation]

Returns the button's current state

Definition at line 242 of file CPButton.j.

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

Definition at line 417 of file CPButton.j.

+ (id) themeAttributes   [implementation]

Definition at line 125 of file CPButton.j.

+ (CPString) themeClass   [implementation]

Definition at line 120 of file CPButton.j.

- (CPString) title   [implementation]

Definition at line 258 of file CPButton.j.


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

Generated on Fri Apr 9 11:04:20 2010 for Cappuccino API by  doxygen 1.6.1