API  0.9.6
 All Classes Files Functions Variables Macros Modules Pages
CPBox Class Reference

#import <CPBox.h>

+ Inheritance diagram for CPBox:

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) - setTitle:
 
(void) - setTitleFont:
 
(void) - setTitlePosition:
 
(void) - sizeToFit
 
(CPString- title
 
(CPFont- titleFont
 
(int) - titlePosition
 
(CPTextField- titleView
 
- Instance Methods inherited from CPView
(BOOL) - acceptsFirstMouse:
 
(void) - addSubview:
 
(void) - addSubview:positioned:relativeTo:
 
(CGRect) - adjustScroll:
 
(float) - alphaValue
 
(BOOL) - autoresizesSubviews
 
(unsigned) - autoresizingMask
 
(BOOL) - autoscroll:
 
(CPColor- backgroundColor
 
(CGRect) - bounds
 
(CGPoint) - boundsOrigin
 
(CGSize) - boundsSize
 
(BOOL) - canBecomeKeyView
 
(CGPoint) - center
 
(BOOL) - clipsToBounds
 
(CGPoint) - convertPoint:fromView:
 
(CGPoint) - convertPoint:toView:
 
(CGPoint) - convertPointFromBase:
 
(CGPoint) - convertPointToBase:
 
(CGRect) - convertRect:fromView:
 
(CGRect) - convertRect:toView:
 
(CGRect) - convertRectFromBase:
 
(CGRect) - convertRectToBase:
 
(CGSize) - convertSize:fromView:
 
(CGSize) - convertSize:toView:
 
(CPView- createEphemeralSubviewNamed:
 
(id) - currentValueForThemeAttribute:
 
(void) - didAddSubview:
 
(void) - display
 
(void) - displayIfNeeded
 
(void) - displayIfNeededInRect:
 
(void) - displayRect:
 
(void) - displayRectIgnoringOpacity:inContext:
 
(void) - dragImage:at:offset:event:pasteboard:source:slideBack:
 
(void) - dragView:at:offset:event:pasteboard:source:slideBack:
 
(CPMenuItem- enclosingMenuItem
 
(CPScrollView- enclosingScrollView
 
(BOOL) - enterFullScreenMode
 
(BOOL) - enterFullScreenMode:withOptions:
 
(CPView- ephemeralSubviewNamed:
 
(void) - exitFullScreenMode
 
(void) - exitFullScreenModeWithOptions:
 
(CGRect) - frame
 
(CGPoint) - frameOrigin
 
(CGSize) - frameSize
 
(BOOL) - hasThemeAttribute:
 
(BOOL) - hasThemeState:
 
(CPView- hitTest:
 
(BOOL) - hitTests
 
(id) - init
 
(id) - initWithFrame:
 
(BOOL) - inLiveResize
 
(BOOL) - isDescendantOf:
 
(BOOL) - isFlipped
 
(BOOL) - isHidden
 
(BOOL) - isHiddenOrHasHiddenAncestor
 
(BOOL) - isInFullScreenMode
 
(BOOL) - isOpaque
 
(CALayer- layer
 
(CPView- layoutEphemeralSubviewNamed:positioned:relativeToEphemeralSubviewNamed:
 
(void) - layoutIfNeeded
 
(void) - layoutSubviews
 
(void) - lockFocus
 
(CPMenu- menuForEvent:
 
(void) - mouseDown:
 
(BOOL) - mouseDownCanMoveWindow
 
(BOOL) - needsDisplay
 
(BOOL) - needsPanelToBecomeKey
 
(CPView- nextKeyView
 
(CPView- nextValidKeyView
 
(BOOL) - performKeyEquivalent:
 
(BOOL) - postsBoundsChangedNotifications
 
(BOOL) - postsFrameChangedNotifications
 
(CPView- previousKeyView
 
(CPView- previousValidKeyView
 
(CGRect) - rectForEphemeralSubviewNamed:
 
(void) - reflectScrolledClipView:
 
(CPArray- registeredDraggedTypes
 
(void) - registerForDraggedTypes:
 
(void) - registerThemeValues:
 
(void) - registerThemeValues:inherit:
 
(void) - removeFromSuperview
 
(void) - replaceSubview:with:
 
(void) - resizeSubviewsWithOldSize:
 
(void) - resizeWithOldSuperviewSize:
 
(void) - rightMouseDown:
 
(void) - scrollClipView:toPoint:
 
(void) - scrollPoint:
 
(void) - scrollRect:by:
 
(BOOL) - scrollRectToVisible:
 
(void) - setAlphaValue:
 
(void) - setAutoresizesSubviews:
 
(void) - setAutoresizingMask:
 
(void) - setBackgroundColor:
 
(void) - setBounds:
 
(void) - setBoundsOrigin:
 
(void) - setBoundsSize:
 
(void) - setCenter:
 
(void) - setClipsToBounds:
 
(void) - setFrame:
 
(void) - setFrameOrigin:
 
(void) - setFrameSize:
 
(void) - setHidden:
 
(void) - setHitTests:
 
(void) - setLayer:
 
(void) - setNeedsDisplay:
 
(void) - setNeedsDisplayInRect:
 
(void) - setNeedsLayout
 
(void) - setNextKeyView:
 
(void) - setPostsBoundsChangedNotifications:
 
(void) - setPostsFrameChangedNotifications:
 
(void) - setSubviews:
 
(void) - setTag:
 
(void) - setTheme:
 
(void) - setThemeClass:
 
(BOOL) - setThemeState:
 
(void) - setToolTip:
 
(void) - setValue:forThemeAttribute:
 
(void) - setValue:forThemeAttribute:inState:
 
(void) - setWantsLayer:
 
(CPArray- subviews
 
(CPView- superview
 
(CPInteger) - tag
 
(CPTheme- theme
 
(CPString- themeClass
 
(unsigned) - themeState
 
(CPString- toolTip
 
(void) - unlockFocus
 
(void) - unregisterDraggedTypes
 
(BOOL) - unsetThemeState:
 
(id) - valueForThemeAttribute:
 
(id) - valueForThemeAttribute:inState:
 
(void) - viewDidChangeTheme
 
(void) - viewDidEndLiveResize
 
(void) - viewDidHide
 
(void) - viewDidMoveToSuperview
 
(void) - viewDidMoveToWindow
 
(void) - viewDidUnhide
 
(void) - viewWillDraw
 
(void) - viewWillMoveToSuperview:
 
(void) - viewWillMoveToWindow:
 
(void) - viewWillStartLiveResize
 
(CPView- viewWithTag:
 
(CGRect) - visibleRect
 
(BOOL) - wantsLayer
 
(void) - willRemoveSubview:
 
(CPWindow- window
 
- Instance Methods inherited from CPResponder
(BOOL) - acceptsFirstResponder
 
(BOOL) - becomeFirstResponder
 
(void) - doCommandBySelector:
 
(void) - flagsChanged:
 
(void) - insertBackTab:
 
(void) - insertLineBreak:
 
(void) - insertNewline:
 
(void) - insertTab:
 
(void) - insertText:
 
(void) - interpretKeyEvents:
 
(void) - keyDown:
 
(void) - keyUp:
 
(CPMenu- menu
 
(void) - mouseDragged:
 
(void) - mouseEntered:
 
(void) - mouseExited:
 
(void) - mouseMoved:
 
(void) - mouseUp:
 
(CPResponder- nextResponder
 
(void) - noResponderFor:
 
(BOOL) - resignFirstResponder
 
(void) - rightMouseUp:
 
(void) - scrollWheel:
 
(void) - setMenu:
 
(void) - setNextResponder:
 
(BOOL) - tryToPerform:with:
 
(CPUndoManager- undoManager
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context:
 
(void) - applyChange:toKeyPath:
 
(id) - autorelease
 
(id) - awakeAfterUsingCoder:
 
(void) - awakeFromCib
 
(void) - bind:toObject:withKeyPath:options:
 
(Class) - classForCoder
 
(Class) - classForKeyedArchiver
 
(CPString- className
 
(id) - copy
 
(void) - dealloc
 
(CPString- description
 
(CPDictionary- dictionaryWithValuesForKeys:
 
(void) - didChange:valuesAtIndexes:forKey:
 
(void) - didChangeValueForKey:
 
(void) - didChangeValueForKey:withSetMutation:usingObjects:
 
(void) - doesNotRecognizeSelector:
 
(CPArray- exposedBindings
 
(id) - forwardingTargetForSelector:
 
(void) - forwardInvocation:
 
(unsigned) - hash
 
(BOOL) - implementsSelector:
 
(CPDictionary- infoForBinding:
 
(BOOL) - isEqual:
 
(BOOL) - isKindOfClass:
 
(BOOL) - isMemberOfClass:
 
(BOOL) - isProxy
 
(IMP) - methodForSelector:
 
(CPMethodSignature) - methodSignatureForSelector:
 
(id) - mutableArrayValueForKey:
 
(id) - mutableArrayValueForKeyPath:
 
(id) - mutableCopy
 
(id) - mutableSetValueForKey:
 
(id) - mutableSetValueForKeyPath:
 
(id) - performSelector:
 
(id) - performSelector:withObject:
 
(id) - performSelector:withObject:withObject:
 
(id) - performSelector:withObjects:
 
(void) - release
 
(void) - removeObserver:forKeyPath:
 
(id) - replacementObjectForArchiver:
 
(id) - replacementObjectForCoder:
 
(id) - replacementObjectForKeyedArchiver:
 
(BOOL) - respondsToSelector:
 
(id) - retain
 
(id) - self
 
(void) - setValue:forKey:
 
(void) - setValue:forKeyPath:
 
(void) - setValue:forUndefinedKey:
 
(void) - setValuesForKeysWithDictionary:
 
(CPString- UID
 
(void) - unbind:
 
(Class) - valueClassForBinding:
 
(id) - valueForKey:
 
(id) - valueForKeyPath:
 
(id) - valueForUndefinedKey:
 
(void) - willChange:valuesAtIndexes:forKey:
 
(void) - willChangeValueForKey:
 
(void) - willChangeValueForKey:withSetMutation:usingObjects:
 

Class Methods

(id) + boxEnclosingView:
 
- Class Methods inherited from CPView
(CPMenu+ defaultMenu
 
(CPString+ defaultThemeClass
 
(void) + initialize
 
(CPSet+ keyPathsForValuesAffectingBounds
 
(CPSet+ keyPathsForValuesAffectingFrame
 
(CPDictionary+ themeAttributes
 
- Class Methods inherited from CPObject
(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

- Instance Variables inherited from CPObject
Class isa
 

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

- (CPRect) borderRect
implementation

Returns the receiver's border rectangle.

Returns
the border rectangle of the box

Definition at line 120 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 137 of file CPBox.j.

- (float) borderWidth
implementation

Definition at line 222 of file CPBox.j.

+ (id) boxEnclosingView: (CPView aView
implementation

Definition at line 72 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 179 of file CPBox.j.

- (CPView) contentView
implementation

Definition at line 264 of file CPBox.j.

- (CPSize) contentViewMargins
implementation

Definition at line 281 of file CPBox.j.

- (float) cornerRadius
implementation

Definition at line 236 of file CPBox.j.

- (void) drawRect: (CPRect)  aRect
implementation

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

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Archives the view to a coder.

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

Reimplemented from CPView.

Provided by category CPBox(CPCoding).

Definition at line 556 of file CPBox.j.

- (CPColor) fillColor
implementation

Definition at line 250 of file CPBox.j.

- (id) initWithCoder: (CPCoder aCoder
implementation

Initializes the view from an archive.

Parameters
aCoderthe coder from which to initialize
Returns
the initialized view

Reimplemented from CPView.

Provided by category CPBox(CPCoding).

Definition at line 524 of file CPBox.j.

- (id) initWithFrame: (CPRect)  frameRect
implementation

Definition at line 87 of file CPBox.j.

- (void) setBorderColor: (CPColor color
implementation

Definition at line 213 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 155 of file CPBox.j.

- (void) setBorderWidth: (float)  width
implementation

Definition at line 227 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 199 of file CPBox.j.

- (void) setContentView: (CPView aView
implementation

Definition at line 269 of file CPBox.j.

- (void) setContentViewMargins: (CPSize)  size
implementation

Definition at line 286 of file CPBox.j.

- (void) setCornerRadius: (float)  radius
implementation

Definition at line 241 of file CPBox.j.

- (void) setFillColor: (CPColor color
implementation

Definition at line 255 of file CPBox.j.

- (void) setFrameFromContentFrame: (CPRect)  aRect
implementation

Definition at line 295 of file CPBox.j.

- (void) setTitle: (CPString aTitle
implementation

Definition at line 304 of file CPBox.j.

- (void) setTitleFont: (CPFont aFont
implementation

Definition at line 329 of file CPBox.j.

- (void) setTitlePosition: (int)  aTitlePotisition
implementation

Definition at line 314 of file CPBox.j.

- (void) sizeToFit
implementation

Definition at line 379 of file CPBox.j.

- (CPString) title
implementation

Synthesized accessor method.

Provided by category CPBox(CPSynthesizedAccessors).

Definition at line 583 of file CPBox.j.

- (CPFont) titleFont
implementation

Definition at line 324 of file CPBox.j.

- (int) titlePosition
implementation

Synthesized accessor method.

Provided by category CPBox(CPSynthesizedAccessors).

Definition at line 591 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 339 of file CPBox.j.


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