API  1.0.0
CPImage.j File Reference

Go to the source code of this file.

Classes

protocol  <CPImageDelegate >
 

Functions

function CPAppKitImage (aFilename, aSize)
 
function CPImageInBundle ()
 

Variables

var AppKitImageForNames = { }
 
var CPImageCSSAfterDictionaryKey = @"@"CPImageCSSAfterDictionaryKey"
 
var CPImageCSSBeforeDictionaryKey = @"@"CPImageCSSBeforeDictionaryKey"
 
var CPImageCSSDictionaryKey = @"@"CPImageCSSDictionaryKey"
 
var CPImageDelegate_imageDidAbort_ = 1 << 3
 
var CPImageDelegate_imageDidError_ = 1 << 2
 
var CPImageDelegate_imageDidLoad_ = 1 << 1
 
 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

◆ CPAppKitImage()

function CPAppKitImage ( aFilename  ,
aSize   
)

Definition at line 100 of file CPImage.j.

◆ CPImageInBundle()

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 72 of file CPImage.j.

Variable Documentation

◆ AppKitImageForNames

AppKitImageForNames[CPImageNameColorPanelHighlighted] = { }

Definition at line 54 of file CPImage.j.

◆ CPImageCSSAfterDictionaryKey

var CPImageCSSAfterDictionaryKey = @"@"CPImageCSSAfterDictionaryKey"

Definition at line 705 of file CPImage.j.

◆ CPImageCSSBeforeDictionaryKey

var CPImageCSSBeforeDictionaryKey = @"@"CPImageCSSBeforeDictionaryKey"

Definition at line 704 of file CPImage.j.

◆ CPImageCSSDictionaryKey

var CPImageCSSDictionaryKey = @"@"CPImageCSSDictionaryKey"

Definition at line 703 of file CPImage.j.

◆ CPImageDelegate_imageDidAbort_

var CPImageDelegate_imageDidAbort_ = 1 << 3

Definition at line 37 of file CPImage.j.

◆ CPImageDelegate_imageDidError_

var CPImageDelegate_imageDidError_ = 1 << 2

Definition at line 36 of file CPImage.j.

◆ CPImageDelegate_imageDidLoad_

var CPImageDelegate_imageDidLoad_ = 1 << 1

Definition at line 35 of file CPImage.j.

◆ CPImageDidLoadNotification

CPImageDidLoadNotification = @"@"CPImageDidLoadNotification"

Definition at line 47 of file CPImage.j.

◆ CPImageLoadStatusCancelled

CPImageLoadStatusCancelled = 3

Definition at line 42 of file CPImage.j.

◆ CPImageLoadStatusCompleted

CPImageLoadStatusCompleted = 2

Definition at line 41 of file CPImage.j.

◆ CPImageLoadStatusInitialized

CPImageLoadStatusInitialized = 0

Definition at line 39 of file CPImage.j.

◆ CPImageLoadStatusInvalidData

CPImageLoadStatusInvalidData = 4

Definition at line 43 of file CPImage.j.

◆ CPImageLoadStatusLoading

CPImageLoadStatusLoading = 1

Definition at line 40 of file CPImage.j.

◆ CPImageLoadStatusReadError

CPImageLoadStatusReadError = 6

Definition at line 45 of file CPImage.j.

◆ CPImageLoadStatusUnexpectedEOF

CPImageLoadStatusUnexpectedEOF = 5

Definition at line 44 of file CPImage.j.

◆ CPImageNameColorPanel

CPImageNameColorPanel = @"@"CPImageNameColorPanel"

Definition at line 50 of file CPImage.j.

◆ CPImageNameColorPanelHighlighted

CPImageNameColorPanelHighlighted = @"@"CPImageNameColorPanelHighlighted"

Definition at line 51 of file CPImage.j.

◆ CPNinePartImageImageSlicesKey

var CPNinePartImageImageSlicesKey = @"@"CPNinePartImageImageSlicesKey"

Definition at line 864 of file CPImage.j.

◆ CPThreePartImageImageSlicesKey

var CPThreePartImageImageSlicesKey = @"@"CPThreePartImageImageSlicesKey"

Definition at line 795 of file CPImage.j.

◆ CPThreePartImageIsVerticalKey

var CPThreePartImageIsVerticalKey = @"@"CPThreePartImageIsVerticalKey"

Definition at line 796 of file CPImage.j.

◆ ImageDescriptionFormat

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

Definition at line 55 of file CPImage.j.

◆ imagesForNames

var imagesForNames = { }

Definition at line 53 of file CPImage.j.