API  0.9.7
 All Classes Files Functions Variables Macros Groups Pages
CPBox Class Reference

#import <CPBox.h>

+ Inheritance diagram for CPBox:

Instance Methods

(CPColor- borderColor
 
(CGRect) - borderRect
 
(CPBorderType) - borderType
 
(float) - borderWidth
 
(CPBoxType) - boxType
 
(CPView- contentView
 
(CGSize) - contentViewMargins
 
(float) - cornerRadius
 
(void) - drawRect:
 
(void) - encodeWithCoder:
 
(CPColor- fillColor
 
(id) - initWithCoder:
 
(id) - initWithFrame:
 
(void) - setBorderColor:
 
(void) - setBorderType:
 
(void) - setBorderWidth:
 
(void) - setBoxType:
 
(void) - setContentView:
 
(void) - setContentViewMargins:
 
(void) - setCornerRadius:
 
(void) - setFillColor:
 
(void) - setFrameFromContentFrame:
 
(void) - setTitle:
 
(void) - setTitleFont:
 
(void) - setTitlePosition:
 
(void) - setValue:forKey:
 
(void) - sizeToFit
 
(CPString- title
 
(CPFont- titleFont
 
(int) - titlePosition
 
(CPTextField- titleView
 

Class Methods

(id) + boxEnclosingView:
 
(CPString+ defaultThemeClass
 
(CPDictionary+ themeAttributes
 

Detailed Description

A CPBox is a simple view which can display a border.

Definition at line 2 of file CPBox.h.

Method Documentation

- (CPColor) borderColor
implementation

Definition at line 222 of file CPBox.j.

- (CGRect) borderRect
implementation

Returns the receiver's border rectangle.

Returns
the border rectangle of the box

Definition at line 134 of file CPBox.j.

- (CPBorderType) borderType
implementation

Returns the receiver's border type. Possible values are:

CPNoBorder
CPLineBorder
CPBezelBorder
CPGrooveBorder
Returns
the border type of the box

Definition at line 151 of file CPBox.j.

- (float) borderWidth
implementation

Definition at line 235 of file CPBox.j.

+ (id) boxEnclosingView: (CPView aView
implementation

Definition at line 91 of file CPBox.j.

- (CPBoxType) boxType
implementation

Returns the receiver's box type. Possible values are:

CPBoxPrimary
CPBoxSecondary
CPBoxSeparator
CPBoxOldStyle
CPBoxCustom

(In the current implementation, all values act the same except CPBoxSeparator.)

Returns
the box type of the box.

Definition at line 193 of file CPBox.j.

- (CPView) contentView
implementation

Definition at line 274 of file CPBox.j.

- (CGSize) contentViewMargins
implementation

Definition at line 301 of file CPBox.j.

- (float) cornerRadius
implementation

Definition at line 248 of file CPBox.j.

+ (CPString) defaultThemeClass
implementation

Definition at line 72 of file CPBox.j.

- (void) drawRect: (CGRect)  rect
implementation

Definition at line 436 of file CPBox.j.

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Provided by category CPBox(CPCoding).

Definition at line 624 of file CPBox.j.

- (CPColor) fillColor
implementation

Definition at line 261 of file CPBox.j.

- (id) initWithCoder: (CPCoder aCoder
implementation

Provided by category CPBox(CPCoding).

Definition at line 600 of file CPBox.j.

- (id) initWithFrame: (CGRect)  frameRect
implementation

Definition at line 106 of file CPBox.j.

- (void) setBorderColor: (CPColor color
implementation

Definition at line 227 of file CPBox.j.

- (void) setBorderType: (CPBorderType)  aBorderType
implementation

Sets the receiver's border type. Valid values are:

CPNoBorder
CPLineBorder
CPBezelBorder
CPGrooveBorder
Parameters
borderTypethe border type to use

Definition at line 169 of file CPBox.j.

- (void) setBorderWidth: (float)  width
implementation

Definition at line 240 of file CPBox.j.

- (void) setBoxType: (CPBoxType)  aBoxType
implementation

Sets the receiver's box type. Valid values are:

CPBoxPrimary
CPBoxSecondary
CPBoxSeparator
CPBoxOldStyle
CPBoxCustom

(In the current implementation, all values act the same except CPBoxSeparator.)

Parameters
aBoxTypethe box type of the box.

Definition at line 213 of file CPBox.j.

- (void) setContentView: (CPView aView
implementation

Definition at line 279 of file CPBox.j.

- (void) setContentViewMargins: (CGSize)  size
implementation

Definition at line 306 of file CPBox.j.

- (void) setCornerRadius: (float)  radius
implementation

Definition at line 253 of file CPBox.j.

- (void) setFillColor: (CPColor color
implementation

Definition at line 266 of file CPBox.j.

- (void) setFrameFromContentFrame: (CGRect)  aRect
implementation

Definition at line 314 of file CPBox.j.

- (void) setTitle: (CPString aTitle
implementation

Definition at line 323 of file CPBox.j.

- (void) setTitleFont: (CPFont aFont
implementation

Definition at line 348 of file CPBox.j.

- (void) setTitlePosition: (int)  aTitlePotisition
implementation

Definition at line 333 of file CPBox.j.

- (void) setValue: (id)  aValue
forKey: (CPString aKey 
implementation

Definition at line 428 of file CPBox.j.

- (void) sizeToFit
implementation

Definition at line 398 of file CPBox.j.

+ (CPDictionary) themeAttributes
implementation

Definition at line 77 of file CPBox.j.

- (CPString) title
implementation

Synthesized accessor method.

Provided by category CPBox(CPSynthesizedAccessors).

Definition at line 642 of file CPBox.j.

- (CPFont) titleFont
implementation

Definition at line 343 of file CPBox.j.

- (int) titlePosition
implementation

Synthesized accessor method.

Provided by category CPBox(CPSynthesizedAccessors).

Definition at line 650 of file CPBox.j.

- (CPTextField) titleView
implementation

Return the text field used to display the receiver's title.

This is the Cappuccino equivalent to the titleCell method.

Definition at line 358 of file CPBox.j.


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