API 0.9.5
CPImageView Class Reference

#import <CPImageView.h>

Inheritance diagram for CPImageView:

List of all members.

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

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

Writes the image view out to the coder.

Parameters:
aCoderthe 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.

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

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

Returns:
the initialized view

Reimplemented from CPControl.

Definition at line 76 of file CPImageView.j.

- (BOOL) isEditable

Definition at line 436 of file CPImageView.j.

- (void) layoutSubviews

Add a description

Reimplemented from CPView.

Definition at line 286 of file CPImageView.j.

- (void) mouseDown: (CPEvent anEvent

Notifies the receiver that the user has clicked the mouse down in its area.

Parameters:
anEventcontains 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.

Parameters:
shouldHaveShadowwhether 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.

Parameters:
anImageAlignmentthe 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.

Parameters:
anImageScalingthe 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.


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