API  0.9.7
 All Classes Files Functions Variables Macros Groups Pages
CPImage.j File Reference

Go to the source code of this file.

Functions

function CPAppKitImage (aFilename, aSize)
 
function CPImageInBundle ()
 

Variables

var AppKitImageForNames = { }
 
 CPImageDidLoadNotification = @"CPImageDidLoadNotification"
 
 CPImageLoadStatusCancelled = 3
 
 CPImageLoadStatusCompleted = 2
 
 CPImageLoadStatusInitialized = 0
 
 CPImageLoadStatusInvalidData = 4
 
 CPImageLoadStatusLoading = 1
 
 CPImageLoadStatusReadError = 6
 
 CPImageLoadStatusUnexpectedEOF = 5
 
 CPImageNameColorPanel = @"CPImageNameColorPanel"
 
 CPImageNameColorPanelHighlighted = @"CPImageNameColorPanelHighlighted"
 
var CPNinePartImageImageSlicesKey = @"@"CPNinePartImageImageSlicesKey"
 
var CPThreePartImageImageSlicesKey = @"@"CPThreePartImageImageSlicesKey"
 
var CPThreePartImageIsVerticalKey = @"@"CPThreePartImageIsVerticalKey"
 
var ImageDescriptionFormat = "%s {\n filename: \"%s\",\n size: { width:%f, height:%f }\n}"
 
var imagesForNames = { }
 

Function Documentation

function CPAppKitImage ( aFilename  ,
aSize   
)

Definition at line 86 of file CPImage.j.

function CPImageInBundle ( )

Returns a resource image with a relative path and size in a bundle.

Parameters
filenameA filename or relative path to a resource image.
widthWidth of the image. May be omitted.
heightHeight of the image. May be omitted if width is omitted.
sizeInstead of passing width/height, a CGSize may be passed.
bundleBundle in which the image resource can be found. If omitted, defaults to the main bundle.
Returns
CPImage

Definition at line 58 of file CPImage.j.

Variable Documentation

AppKitImageForNames[CPImageNameColorPanelHighlighted] = { }

Definition at line 40 of file CPImage.j.

CPImageDidLoadNotification = @"CPImageDidLoadNotification"

Definition at line 33 of file CPImage.j.

CPImageLoadStatusCancelled = 3

Definition at line 28 of file CPImage.j.

CPImageLoadStatusCompleted = 2

Definition at line 27 of file CPImage.j.

CPImageLoadStatusInitialized = 0

Definition at line 25 of file CPImage.j.

CPImageLoadStatusInvalidData = 4

Definition at line 29 of file CPImage.j.

CPImageLoadStatusLoading = 1

Definition at line 26 of file CPImage.j.

CPImageLoadStatusReadError = 6

Definition at line 31 of file CPImage.j.

CPImageLoadStatusUnexpectedEOF = 5

Definition at line 30 of file CPImage.j.

CPImageNameColorPanel = @"CPImageNameColorPanel"

Definition at line 36 of file CPImage.j.

CPImageNameColorPanelHighlighted = @"CPImageNameColorPanelHighlighted"

Definition at line 37 of file CPImage.j.

var CPNinePartImageImageSlicesKey = @"@"CPNinePartImageImageSlicesKey"

Definition at line 620 of file CPImage.j.

var CPThreePartImageImageSlicesKey = @"@"CPThreePartImageImageSlicesKey"

Definition at line 551 of file CPImage.j.

var CPThreePartImageIsVerticalKey = @"@"CPThreePartImageIsVerticalKey"

Definition at line 552 of file CPImage.j.

var ImageDescriptionFormat = "%s {\n filename: \"%s\",\n size: { width:%f, height:%f }\n}"

Definition at line 41 of file CPImage.j.

var imagesForNames = { }

Definition at line 39 of file CPImage.j.