Inherits from | |
Conforms to | |
Framework | /System/Library/Frameworks/Quartz.framework/ImageKit.framework |
Availability | Available in Mac OS X v10.6 and later. |
Declared in | IKImageBrowserCell.h |
The IKImageBrowserCell
class is used to display a cell conforming to the IKImageBrowserItem Protocol
protocol in an IKImageBrowserView
.
Returns the current cell state of the receiver.
- (IKImageBrowserCellState)cellState
The current state of the cell. See “IKImageBrowserCellState” for possible values.
The IKImageBrowserView
creates thumbnails asynchronously. This method returns the current state.
IKImageBrowserCell.h
Returns the receiver’s frame rectangle, which defines its position in its IKImageBrowserView
.
- (NSRect)frame
The coordinates of the frame, in the IKImageBrowserView
coordinate space.
Subclasses should not override this method.
IKImageBrowserCell.h
Returns the position of the cell’s image in the frame.
- (NSImageAlignment)imageAlignment
The alignment of the image. See NSImageAlignment
for possible values.
Subclasses can override this method to customize the image alignment.
The image frame will be computed automatically from the image container frame by taking in account the image alignment and the image aspect ratio.
IKImageBrowserCell.h
Returns the view the receiver uses to display the cell.
- (IKImageBrowserView *)imageBrowserView
The browser view containing the cell.
Subclasses should not override this method.
IKImageBrowserCell.h
Returns the receiver’s image container frame rectangle, which defines the position of the container of the thumbnail.
- (NSRect)imageContainerFrame
The coordinates of image container frame, in the IKImageBrowserView
coordinate space.
The image frame is computed automatically from the image container frame by taking in account the image alignment and the image aspect ratio.
Subclasses can override this method to customize the position of the thumbnail container.
IKImageBrowserCell.h
Returns the receiver’s image frame rectangle, which defines the position of the thumbnail in its IKImageBrowserView
.
- (NSRect)imageFrame
The coordinates of the frame, in the IKImageBrowserView
coordinate space.
It is the developer’s responsibility to compute the imageFrame
such that it lies entirely within the cell’s frame
rectangle.
Subclasses can override this method to customize the position of the thumbnail.
IKImageBrowserCell.h
Returns the index of the receiver’s represented object in the datasource.
- (NSUInteger)indexOfRepresentedItem
The index of the represented object in the datasource.
Subclasses should not override this method.
IKImageBrowserCell.h
Returns whether the cell is selected.
- (BOOL)isSelected
YES
if the cell is selected, otherwise NO
.
Subclasses should not override this method.
IKImageBrowserCell.h
Returns a layer for the specified position.
- (CALayer *)layerForType:(NSString *)type
A string representing the layer location. See “Cell Layer Positions” for possible values.
The CALayer
to display in the specified position.
Subclasses can override this method to add a Core Animation layer to the cell
IKImageBrowserCell.h
Returns the opacity of the receiver.
- (CGFloat)opacity
The cell’s opacity.
Possible values are between 0.0 (transparent) and 1.0 (opaque).
Subclasses can override this method to customize the opacity of the cell.
IKImageBrowserCell.h
Returns the receiver’s represented object.
- (id)representedItem
The item represented by the cell.
Subclasses should not override this method.
IKImageBrowserCell.h
Returns the receiver’s selection frame rectangle, which defines the position of the selection rectangle in its IKImageBrowserView
.
- (NSRect)selectionFrame
The cells selection frame, in the IKImageBrowserView
coordinate space.
Subclasses can override this method to customize the position of the selection frame.
IKImageBrowserCell.h
Returns the receiver’s subtitle frame rectangle.
- (NSRect)subtitleFrame
The coordinates of the subtitle frame, in the IKImageBrowserView
coordinate space.
It is the developer’s responsibility to compute the subtitleFrame
such that it lies entirely within the cell’s frame
rectangle.
Subclasses can override this method to customize the position of the subtitle.
IKImageBrowserCell.h
Returns the receiver’s title frame rectangle.
- (NSRect)titleFrame
The coordinates of the title frame, in the IKImageBrowserView
coordinate space.
It is the developer’s responsibility to compute the titleFrame
such that it lies entirely within the cell’s frame
rectangle.
Subclasses can override this method to customize the position of the title.
IKImageBrowserCell.h
The possible states for the browser cell. These values are used by the cellState
method.
typedef enum{ IKImageStateNoImage=0, IKImageStateInvalid, IKImageStateReady, } IKImageBrowserCellState;
IKImageStateNoImage
Returned until a thumbnail has been created from the represented object.
Available in Mac OS X v10.6 and later.
Declared in IKImageBrowserCell.h
.
IKImageStateInvalid
The thumbnail is invalid. For example, an unsupported image is provided.
Available in Mac OS X v10.6 and later.
Declared in IKImageBrowserCell.h
.
IKImageStateReady
The receiver’s represented object has been set and the cell is ready to display.
Available in Mac OS X v10.6 and later.
Declared in IKImageBrowserCell.h
.
Optional positioning of additional layers displayed with the cell. Used by the layerForType:
method.
NSString *const IKImageBrowserCellBackgroundLayer; NSString *const IKImageBrowserCellForegroundLayer; NSString *const IKImageBrowserCellSelectionLayer; NSString *const IKImageBrowserCellPlaceHolderLayer;
IKImageBrowserCellBackgroundLayer
Layer displayed in the background.
Available in Mac OS X v10.6 and later.
Declared in IKImageBrowserCell.h
.
IKImageBrowserCellForegroundLayer
Layer displayed in the foreground.
Available in Mac OS X v10.6 and later.
Declared in IKImageBrowserCell.h
.
IKImageBrowserCellSelectionLayer
Layer displayed as the selection.
Available in Mac OS X v10.6 and later.
Declared in IKImageBrowserCell.h
.
IKImageBrowserCellPlaceHolderLayer
Layer displayed as a placeholder when an image is not yet available.
Available in Mac OS X v10.6 and later.
Declared in IKImageBrowserCell.h
.
Last updated: 2010-03-24