CNGridViewItemLayout Class Reference
Inherits from | NSObject |
Declared in | CNGridViewItemLayout.h |
Overview
CNGridViewLayout
is a wrapper class containing all neccessary layout properties a CNGridView
can adopt.
Tasks
Other Methods
-
backgroundColor
The background color of the
propertyCNGridViewItem
. -
selectionRingColor
The color of the selection ring.
property -
selectionRingLineWidth
property -
contentInset
property -
itemBorderRadius
property -
itemTitleTextAttributes
property -
visibleContentMask
A bit mask that defines the content a
propertyCNGridViewItem
should show.
Creating Default Layouts
-
+ defaultLayout
Creates and returns an
CNGridViewItemLayout
object with default values.
Properties
backgroundColor
The background color of the CNGridViewItem
.
@property (nonatomic, strong) NSColor *backgroundColor
Discussion
You can set any known NSColor
values, also pattern images. If this property is not used it will be set to the default value [NSColor itemBackgroundColor]
. Also see NSColor(CNGridViewPalette).
Declared In
CNGridViewItemLayout.h
contentInset
@property (nonatomic, assign) NSUInteger contentInset
Declared In
CNGridViewItemLayout.h
itemBorderRadius
@property (nonatomic, assign) NSUInteger itemBorderRadius
Declared In
CNGridViewItemLayout.h
itemTitleTextAttributes
@property (strong) NSDictionary *itemTitleTextAttributes
Declared In
CNGridViewItemLayout.h
selectionRingColor
The color of the selection ring.
@property (nonatomic, strong) NSColor *selectionRingColor
Discussion
If this property is not used it will be set to the default value [NSColor itemSelectionRingColor]
. Also see NSColor(CNGridViewPalette).
Declared In
CNGridViewItemLayout.h
selectionRingLineWidth
@property (nonatomic, assign) CGFloat selectionRingLineWidth
Declared In
CNGridViewItemLayout.h
visibleContentMask
A bit mask that defines the content a CNGridViewItem
should show.
@property (nonatomic, assign) CNGridViewItemVisibleContent visibleContentMask
Discussion
There are three possible values:
typedef enum {
CNGridViewItemVisibleContentNothing = 0,
CNGridViewItemVisibleContentImage = 1 << 0,
CNGridViewItemVisibleContentTitle = 1 << 1,
} CNGridViewItemVisibleContent;
Default value is CNGridViewItemVisibleContentImage | CNGridViewItemVisibleContentTitle
.
Declared In
CNGridViewItemLayout.h