API 0.9.5
CPBox Class Reference

#import <CPBox.h>

Inheritance diagram for CPBox:

List of all members.

Instance Methods

(CPColor- borderColor
(CPRect) - borderRect
(CPBorderType) - borderType
(float) - borderWidth
(CPBoxType) - boxType
(CPView- contentView
(CPSize) - 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) - sizeToFit

Class Methods

(id) + boxEnclosingView:

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

Definition at line 191 of file CPBox.j.

- (CPRect) borderRect

Returns the receiver's border rectangle.

Returns:
the border rectangle of the box

Definition at line 103 of file CPBox.j.

- (CPBorderType) borderType

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

    CPNoBorder
    CPLineBorder
    CPBezelBorder
    CPGrooveBorder
    
Returns:
the border type of the box

Definition at line 120 of file CPBox.j.

- (float) borderWidth

Definition at line 205 of file CPBox.j.

+ (id) boxEnclosingView: (CPView aView

Definition at line 58 of file CPBox.j.

- (CPBoxType) boxType

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 162 of file CPBox.j.

- (CPView) contentView

Definition at line 247 of file CPBox.j.

- (CPSize) contentViewMargins

Definition at line 264 of file CPBox.j.

- (float) cornerRadius

Definition at line 219 of file CPBox.j.

- (void) drawRect: (CPRect)  aRect

Draws the receiver into aRect. This method should be overridden by subclasses.

Parameters:
aRectthe area that should be drawn into

Reimplemented from CPView.

Definition at line 294 of file CPBox.j.

- (void) encodeWithCoder: (CPCoder aCoder

Archives the view to a coder.

Parameters:
aCoderthe object into which the view's data will be archived.

Reimplemented from CPView.

Definition at line 418 of file CPBox.j.

- (CPColor) fillColor

Definition at line 233 of file CPBox.j.

- (id) initWithCoder: (CPCoder aCoder

Initializes the view from an archive.

Parameters:
aCoderthe coder from which to initialize
Returns:
the initialized view

Reimplemented from CPView.

Definition at line 392 of file CPBox.j.

- (id) initWithFrame: (CPRect)  frameRect

Definition at line 73 of file CPBox.j.

- (void) setBorderColor: (CPColor color

Definition at line 196 of file CPBox.j.

- (void) setBorderType: (CPBorderType)  aBorderType

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

    CPNoBorder
    CPLineBorder
    CPBezelBorder
    CPGrooveBorder
    
Parameters:
borderTypethe border type to use

Definition at line 138 of file CPBox.j.

- (void) setBorderWidth: (float)  width

Definition at line 210 of file CPBox.j.

- (void) setBoxType: (CPBoxType)  aBoxType

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 182 of file CPBox.j.

- (void) setContentView: (CPView aView

Definition at line 252 of file CPBox.j.

- (void) setContentViewMargins: (CPSize)  size

Definition at line 269 of file CPBox.j.

- (void) setCornerRadius: (float)  radius

Definition at line 224 of file CPBox.j.

- (void) setFillColor: (CPColor color

Definition at line 238 of file CPBox.j.

- (void) setFrameFromContentFrame: (CPRect)  aRect

Definition at line 278 of file CPBox.j.

- (void) sizeToFit

Definition at line 284 of file CPBox.j.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Defines