Go to the source code of this file.
◆ CPAppKitImage()
function CPAppKitImage |
( |
aFilename |
, |
|
|
aSize |
|
|
) |
| |
◆ CPImageInBundle()
function CPImageInBundle |
( |
| ) |
|
Returns a resource image with a relative path and size in a bundle.
- Parameters
-
filename | A filename or relative path to a resource image. |
width | Width of the image. May be omitted. |
height | Height of the image. May be omitted if width is omitted. |
size | Instead of passing width/height, a CGSize may be passed. |
bundle | Bundle 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.
◆ AppKitImageForNames
◆ CPImageCSSAfterDictionaryKey
var CPImageCSSAfterDictionaryKey = @"@"CPImageCSSAfterDictionaryKey" |
◆ CPImageCSSBeforeDictionaryKey
var CPImageCSSBeforeDictionaryKey = @"@"CPImageCSSBeforeDictionaryKey" |
◆ CPImageCSSDictionaryKey
var CPImageCSSDictionaryKey = @"@"CPImageCSSDictionaryKey" |
◆ CPImageDelegate_imageDidAbort_
var CPImageDelegate_imageDidAbort_ = 1 << 3 |
◆ CPImageDelegate_imageDidError_
var CPImageDelegate_imageDidError_ = 1 << 2 |
◆ CPImageDelegate_imageDidLoad_
var CPImageDelegate_imageDidLoad_ = 1 << 1 |
◆ CPImageDidLoadNotification
CPImageDidLoadNotification = @"@"CPImageDidLoadNotification" |
◆ CPImageLoadStatusCancelled
CPImageLoadStatusCancelled = 3 |
◆ CPImageLoadStatusCompleted
CPImageLoadStatusCompleted = 2 |
◆ CPImageLoadStatusInitialized
CPImageLoadStatusInitialized = 0 |
◆ CPImageLoadStatusInvalidData
CPImageLoadStatusInvalidData = 4 |
◆ CPImageLoadStatusLoading
CPImageLoadStatusLoading = 1 |
◆ CPImageLoadStatusReadError
CPImageLoadStatusReadError = 6 |
◆ CPImageLoadStatusUnexpectedEOF
CPImageLoadStatusUnexpectedEOF = 5 |
◆ CPImageNameColorPanel
CPImageNameColorPanel = @"@"CPImageNameColorPanel" |
◆ CPImageNameColorPanelHighlighted
CPImageNameColorPanelHighlighted = @"@"CPImageNameColorPanelHighlighted" |
◆ CPNinePartImageImageSlicesKey
var CPNinePartImageImageSlicesKey = @"@"CPNinePartImageImageSlicesKey" |
◆ CPThreePartImageImageSlicesKey
var CPThreePartImageImageSlicesKey = @"@"CPThreePartImageImageSlicesKey" |
◆ CPThreePartImageIsVerticalKey
var CPThreePartImageIsVerticalKey = @"@"CPThreePartImageIsVerticalKey" |
◆ ImageDescriptionFormat
var ImageDescriptionFormat = "%s {\n filename: \"%s\",\n size: { width:%f, height:%f }\n}" |
◆ imagesForNames