CPImage Class Reference
[AppKit]

List of all members.

Public Member Functions

(CPImage- initByReferencingFile:size: [implementation]
(CPImage- initWithContentsOfFile:size: [implementation]
(CPImage- initWithContentsOfFile: [implementation]
(CPString- filename [implementation]
(void) - setSize: [implementation]
(CGSize) - size [implementation]
(void) - setDelegate: [implementation]
(id) - delegate [implementation]
(BOOL) - loadStatus [implementation]
(void) - load [implementation]
(BOOL) - isThreePartImage [implementation]
(BOOL) - isNinePartImage [implementation]
(id) - initWithCoder: [implementation]
(void) - encodeWithCoder: [implementation]


Detailed Description

CPImage is used to represent images in the Cappuccino framework. It supports loading all image types supported by the browser.

Delegate Methods
-(void)imageDidLoad:(CPImage)image; Called when the specified image has finished loading.
Parameters:
image the image that loaded
-(void)imageDidError:(CPImage)image; Called when the specified image had an error loading.
Parameters:
image the image with the loading error
-(void)imageDidAbort:(CPImage)image; Called when the image loading was aborted.
Parameters:
image the image that was aborted

Definition at line 82 of file CPImage.j.


Member Function Documentation

- (id) delegate   [implementation]

Returns the receiver's delegate

Definition at line 184 of file CPImage.j.

- (void) encodeWithCoder: (CPCoder aCoder   [implementation]

Writes the image data from memory into the coder.

Parameters:
aCoder the coder to which the data will be written

Definition at line 327 of file CPImage.j.

- (CPString) filename   [implementation]

Returns the path of the file associated with this image.

Definition at line 150 of file CPImage.j.

- (CPImage) initByReferencingFile: (CPString aFilename
size: (CGSize)  aSize 
[implementation]

Initializes the image, by associating it with a filename. The image denoted in aFilename is not actually loaded. It will be loaded once needed.

Parameters:
aFilename the file containing the image
aSize the image's size
Returns:
the initialized image

Definition at line 101 of file CPImage.j.

- (id) initWithCoder: (CPCoder aCoder   [implementation]

Initializes the image with data from a coder.

Parameters:
aCoder the coder from which to read the image data
Returns:
the initialized image

Definition at line 318 of file CPImage.j.

- (CPImage) initWithContentsOfFile: (CPString aFilename   [implementation]

Initializes the receiver with the contents of the specified image file. The method loads the data into memory.

Parameters:
aFilename the file name of the image
Returns:
the initialized image

Definition at line 137 of file CPImage.j.

- (CPImage) initWithContentsOfFile: (CPString aFilename
size: (CGSize)  aSize 
[implementation]

Initializes the image. Loads the specified image into memory.

Parameters:
aFilename the image to load
aSize the size of the image
Returns:
the initialized image.

Definition at line 121 of file CPImage.j.

- (BOOL) isNinePartImage   [implementation]

Definition at line 261 of file CPImage.j.

- (BOOL) isThreePartImage   [implementation]

Definition at line 256 of file CPImage.j.

- (void) load   [implementation]

Loads the image data from the file into memory. You should not call this method directly. Instead use one of the initializers.

Definition at line 203 of file CPImage.j.

- (BOOL) loadStatus   [implementation]

Returns YES if the image data has already been loaded.

Definition at line 192 of file CPImage.j.

- (void) setDelegate: (id)  aDelegate   [implementation]

Sets the receiver's delegate.

Parameters:
the delegate

Definition at line 176 of file CPImage.j.

- (void) setSize: (CGSize)  aSize   [implementation]

Sets the size of the image.

Parameters:
the size of the image

Definition at line 159 of file CPImage.j.

- (CGSize) size   [implementation]

Returns the size of the image

Definition at line 167 of file CPImage.j.


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

Generated on Wed May 20 12:44:00 2009 for Cappuccino by  doxygen 1.5.8