![]() |
API 0.9.5
|
#import <CPImageView.h>
Instance Methods | |
(void) | - encodeWithCoder: |
(BOOL) | - hasShadow |
(void) | - hideOrDisplayContents |
(CPImage) | - image |
(unsigned) | - imageAlignment |
(void) | - imageDidLoad: |
(CGRect) | - imageRect |
(unsigned) | - 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: |
Class Methods | |
(void) | + initialize |
This class is a control that displays an image.
Definition at line 2 of file CPImageView.h.
- (void) encodeWithCoder: | (CPCoder) | aCoder |
Writes the image view out to the coder.
aCoder | the coder to which the image view will be written |
Reimplemented from CPControl.
Definition at line 510 of file CPImageView.j.
- (BOOL) hasShadow |
Returns YES
if the image view draws with a drop shadow. The default is NO
.
Definition at line 170 of file CPImageView.j.
- (void) hideOrDisplayContents |
Toggles the display of the image view.
Definition at line 257 of file CPImageView.j.
- (CPImage) image |
Returns the view's image.
Definition at line 106 of file CPImageView.j.
- (unsigned) imageAlignment |
Definition at line 224 of file CPImageView.j.
- (void) imageDidLoad: | (CPNotification) | aNotification |
Definition at line 158 of file CPImageView.j.
- (CGRect) imageRect |
Returns the view's image rectangle
Definition at line 278 of file CPImageView.j.
- (unsigned) imageScaling |
Returns the image scaling of the control.
Reimplemented from CPControl.
Definition at line 249 of file CPImageView.j.
+ (void) initialize |
Reimplemented from CPControl.
Definition at line 69 of file CPImageView.j.
- (id) initWithCoder: | (CPCoder) | aCoder |
Initializes the image view with the provided coder.
aCoder | the coder from which data will be read. |
Reimplemented from CPControl.
Definition at line 469 of file CPImageView.j.
- (id) initWithFrame: | (CGRect) | aFrame |
Initializes the receiver for usage with the specified bounding rectangle
Reimplemented from CPControl.
Definition at line 76 of file CPImageView.j.
- (BOOL) isEditable |
Definition at line 436 of file CPImageView.j.
- (void) layoutSubviews |
- (void) mouseDown: | (CPEvent) | anEvent |
Notifies the receiver that the user has clicked the mouse down in its area.
anEvent | contains information about the click |
Reimplemented from CPControl.
Definition at line 408 of file CPImageView.j.
- (BOOL) performDragOperation: | (CPDraggingInfo) | aSender |
Definition at line 441 of file CPImageView.j.
- (void) setEditable: | (BOOL) | shouldBeEditable |
Definition at line 414 of file CPImageView.j.
- (void) setHasShadow: | (BOOL) | shouldHaveShadow |
Sets whether the image view should draw with a drop shadow.
shouldHaveShadow | whether the image view should have a shadow |
Definition at line 179 of file CPImageView.j.
- (void) setImage: | (CPImage) | anImage |
Definition at line 111 of file CPImageView.j.
- (void) setImageAlignment: | (CPImageAlignment) | anImageAlignment |
Sets the type of image alignment that should be used to render the image.
anImageAlignment | the type of scaling to use |
Definition at line 210 of file CPImageView.j.
- (void) setImageScaling: | (CPImageScaling) | anImageScaling |
Sets the type of image scaling that should be used to render the image.
anImageScaling | the type of scaling to use |
Reimplemented from CPControl.
Definition at line 234 of file CPImageView.j.
- (void) setObjectValue: | (CPImage) | anImage |
Definition at line 117 of file CPImageView.j.