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

#import <CPImageView.h>

+ Inheritance diagram for CPImageView:

Instance Methods

(void) - encodeWithCoder:
 
(BOOL) - hasShadow
 
(void) - hideOrDisplayContents
 
(CPImage- image
 
(unsigned) - imageAlignment
 
(void) - imageDidLoad:
 
(CGRect) - imageRect
 
(CPUInteger) - imageScaling
 
(id) - initWithCoder:
 
(id) - initWithFrame:
 
(BOOL) - isEditable
 
(void) - layoutSubviews
 
(void) - mouseDown:
 
(BOOL) - performDragOperation:
 
(void) - setEditable:
 
(void) - setHasShadow:
 
(void) - setImage:
 
(void) - setImageAlignment:
 
(void) - setImageScaling:
 
(void) - setObjectValue:
 
- Instance Methods inherited from CPControl
(BOOL) - acceptsFirstMouse:
 
(SEL) - action
 
(CPTextAlignment) - alignment
 
(BOOL) - continueTracking:at:
 
(double) - doubleValue
 
(float) - floatValue
 
(CPFont- font
 
(CPFormatter- formatter
 
(void) - highlight:
 
(CPCellImagePosition) - imagePosition
 
(int) - integerValue
 
(int) - intValue
 
(BOOL) - isContinuous
 
(BOOL) - isEnabled
 
(BOOL) - isHighlighted
 
(CPLineBreakMode) - lineBreakMode
 
(unsigned) - mouseDownFlags
 
(void) - mouseEntered:
 
(void) - mouseExited:
 
(CPInteger) - nextState
 
(id) - objectValue
 
(void) - performClick:
 
(BOOL) - sendAction:to:
 
(int) - sendActionOn:
 
(BOOL) - sendsActionOnEndEditing
 
(void) - setAction:
 
(void) - setAlignment:
 
(void) - setContinuous:
 
(void) - setDoubleValue:
 
(void) - setEnabled:
 
(void) - setFloatValue:
 
(void) - setFont:
 
(void) - setFormatter:
 
(void) - setHighlighted:
 
(void) - setImagePosition:
 
(void) - setIntegerValue:
 
(void) - setIntValue:
 
(void) - setLineBreakMode:
 
(void) - setObjectValue:
 
(void) - setSendsActionOnEndEditing:
 
(void) - setState:
 
(void) - setStringValue:
 
(void) - setTarget:
 
(void) - setTextColor:
 
(void) - setTextShadowColor:
 
(void) - setTextShadowOffset:
 
(void) - setVerticalAlignment:
 
(BOOL) - startTrackingAt:
 
(void) - stopTracking:at:mouseIsUp:
 
(CPString- stringValue
 
(void) - takeDoubleValueFrom:
 
(void) - takeFloatValueFrom:
 
(void) - takeIntegerValueFrom:
 
(void) - takeIntValueFrom:
 
(void) - takeObjectValueFrom:
 
(void) - takeStringValueFrom:
 
(id) - target
 
(CPColor- textColor
 
(void) - textDidBeginEditing:
 
(void) - textDidChange:
 
(void) - textDidEndEditing:
 
(CPColor- textShadowColor
 
(CGSize) - textShadowOffset
 
(void) - trackMouse:
 
(BOOL) - tracksMouseOutsideOfFrame
 
(void) - unhighlightButtonTimerDidFinish:
 
(CPTextVerticalAlignment) - verticalAlignment
 

Class Methods

(void) + initialize
 
- Class Methods inherited from CPControl
(CPDictionary+ themeAttributes
 

Detailed Description

This class is a control that displays an image.

Definition at line 2 of file CPImageView.h.

Method Documentation

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Writes the image view out to the coder.

Parameters
aCoderthe coder to which the image view will be written

Reimplemented from CPControl.

Provided by category CPImageView(CPCoding).

Definition at line 556 of file CPImageView.j.

- (BOOL) hasShadow
implementation

Returns YES if the image view draws with a drop shadow. The default is NO.

Definition at line 187 of file CPImageView.j.

- (void) hideOrDisplayContents
implementation

Toggles the display of the image view.

Definition at line 274 of file CPImageView.j.

- (CPImage) image
implementation

Returns the view's image.

Definition at line 120 of file CPImageView.j.

- (unsigned) imageAlignment
implementation

Definition at line 241 of file CPImageView.j.

- (void) imageDidLoad: (CPNotification aNotification
implementation

Definition at line 175 of file CPImageView.j.

- (CGRect) imageRect
implementation

Returns the view's image rectangle

Definition at line 295 of file CPImageView.j.

- (CPUInteger) imageScaling
implementation

Returns the image scaling of the control.

Reimplemented from CPControl.

Definition at line 266 of file CPImageView.j.

+ (void) initialize
implementation

Reimplemented from CPControl.

Definition at line 59 of file CPImageView.j.

- (id) initWithCoder: (CPCoder aCoder
implementation

Initializes the image view with the provided coder.

Parameters
aCoderthe coder from which data will be read.
Returns
the initialized image view

Reimplemented from CPControl.

Provided by category CPImageView(CPCoding).

Definition at line 528 of file CPImageView.j.

- (id) initWithFrame: (CGRect)  aFrame
implementation

Reimplemented from CPControl.

Definition at line 79 of file CPImageView.j.

- (BOOL) isEditable
implementation

Definition at line 448 of file CPImageView.j.

- (void) layoutSubviews
implementation

Add a description

Definition at line 303 of file CPImageView.j.

- (void) mouseDown: (CPEvent anEvent
implementation

Reimplemented from CPControl.

Definition at line 420 of file CPImageView.j.

- (BOOL) performDragOperation: (CPDraggingInfo aSender
implementation

Definition at line 453 of file CPImageView.j.

- (void) setEditable: (BOOL)  shouldBeEditable
implementation

Definition at line 426 of file CPImageView.j.

- (void) setHasShadow: (BOOL)  shouldHaveShadow
implementation

Sets whether the image view should draw with a drop shadow.

Parameters
shouldHaveShadowwhether the image view should have a shadow

Definition at line 196 of file CPImageView.j.

- (void) setImage: (CPImage anImage
implementation

Definition at line 125 of file CPImageView.j.

- (void) setImageAlignment: (CPImageAlignment)  anImageAlignment
implementation

Sets the type of image alignment that should be used to render the image.

Parameters
anImageAlignmentthe type of scaling to use

Definition at line 227 of file CPImageView.j.

- (void) setImageScaling: (CPImageScaling)  anImageScaling
implementation

Sets the type of image scaling that should be used to render the image.

Parameters
anImageScalingthe type of scaling to use

Reimplemented from CPControl.

Definition at line 251 of file CPImageView.j.

- (void) setObjectValue: (CPImage anImage
implementation

Definition at line 131 of file CPImageView.j.


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