Cappuccino  1.0.0
 All Classes Files Functions Variables Typedefs Macros Groups Pages
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

function CPAppKitImage ( aFilename  ,
aSize   
)

Definition at line 100 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 72 of file CPImage.j.

Variable Documentation

AppKitImageForNames[CPImageNameColorPanelHighlighted] = { }

Definition at line 54 of file CPImage.j.

var CPImageCSSAfterDictionaryKey = @"@"CPImageCSSAfterDictionaryKey"

Definition at line 705 of file CPImage.j.

var CPImageCSSBeforeDictionaryKey = @"@"CPImageCSSBeforeDictionaryKey"

Definition at line 704 of file CPImage.j.

var CPImageCSSDictionaryKey = @"@"CPImageCSSDictionaryKey"

Definition at line 703 of file CPImage.j.

var CPImageDelegate_imageDidAbort_ = 1 << 3

Definition at line 37 of file CPImage.j.

var CPImageDelegate_imageDidError_ = 1 << 2

Definition at line 36 of file CPImage.j.

var CPImageDelegate_imageDidLoad_ = 1 << 1

Definition at line 35 of file CPImage.j.

CPImageDidLoadNotification = @"@"CPImageDidLoadNotification"

Definition at line 47 of file CPImage.j.

CPImageLoadStatusCancelled = 3

Definition at line 42 of file CPImage.j.

CPImageLoadStatusCompleted = 2

Definition at line 41 of file CPImage.j.

CPImageLoadStatusInitialized = 0

Definition at line 39 of file CPImage.j.

CPImageLoadStatusInvalidData = 4

Definition at line 43 of file CPImage.j.

CPImageLoadStatusLoading = 1

Definition at line 40 of file CPImage.j.

CPImageLoadStatusReadError = 6

Definition at line 45 of file CPImage.j.

CPImageLoadStatusUnexpectedEOF = 5

Definition at line 44 of file CPImage.j.

CPImageNameColorPanel = @"@"CPImageNameColorPanel"

Definition at line 50 of file CPImage.j.

CPImageNameColorPanelHighlighted = @"@"CPImageNameColorPanelHighlighted"

Definition at line 51 of file CPImage.j.

var CPNinePartImageImageSlicesKey = @"@"CPNinePartImageImageSlicesKey"

Definition at line 864 of file CPImage.j.

var CPThreePartImageImageSlicesKey = @"@"CPThreePartImageImageSlicesKey"

Definition at line 795 of file CPImage.j.

var CPThreePartImageIsVerticalKey = @"@"CPThreePartImageIsVerticalKey"

Definition at line 796 of file CPImage.j.

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

Definition at line 55 of file CPImage.j.

var imagesForNames = { }

Definition at line 53 of file CPImage.j.