API  1.0.0
CPCollectionView Class Reference

#import <CPCollectionView.h>

+ Inheritance diagram for CPCollectionView:

Instance Methods

(BOOL) - acceptsFirstResponder
 
(BOOL) - allowsEmptySelection
 
(BOOL) - allowsMultipleSelection
 
(CPArray) - backgroundColors
 
(CPArray) - content
 
(id) - delegate
 
(void) - deleteBackward:
 
(void) - displayItems:frameSize:itemSize:columns:rows:count:
 
(void) - draggingEnded:
 
(CPDragOperation) - draggingEntered:
 
(void) - draggingExited:
 
(CPDragOperation) - draggingUpdated:
 
(CPView- draggingViewForItemsAtIndexes:withEvent:offset:
 
(void) - encodeWithCoder:
 
(CGRect) - frameForItemAtIndex:
 
(CGRect) - frameForItemsAtIndexes:
 
(id) - initWithCoder:
 
(id) - initWithFrame:
 
(BOOL) - isFirstResponder
 
(BOOL) - isSelectable
 
(CPCollectionViewItem- itemAtIndex:
 
(CPCollectionViewItem- itemPrototype
 
(CPArray) - items
 
(void) - keyDown:
 
(CGSize) - maxItemSize
 
(unsigned) - maxNumberOfColumns
 
(unsigned) - maxNumberOfRows
 
(CPMenu- menuForEvent:
 
(CGSize) - minItemSize
 
(void) - mouseDown:
 
(void) - mouseDragged:
 
(void) - mouseUp:
 
(void) - moveDown:
 
(void) - moveDownAndModifySelection:
 
(void) - moveLeft:
 
(void) - moveLeftAndModifySelection:
 
(void) - moveRight:
 
(void) - moveRightAndModifySelection:
 
(void) - moveUp:
 
(void) - moveUpAndModifySelection:
 
(CPCollectionViewItem- newItemForRepresentedObject:
 
(unsigned) - numberOfColumns
 
(unsigned) - numberOfRows
 
(void) - pasteboard:provideDataForType:
 
(BOOL) - performDragOperation:
 
(CGRect) - rectForItemAtIndex:
 
(CGRect) - rectForItemsAtIndexes:
 
(void) - reloadContent
 
(void) - resizeSubviewsWithOldSize:
 
(void) - resizeWithOldSuperviewSize:
 
(CPIndexSet- selectionIndexes
 
(void) - setAllowsEmptySelection:
 
(void) - setAllowsMultipleSelection:
 
(void) - setAutoresizingMask:
 
(void) - setBackgroundColors:
 
(void) - setContent:
 
(void) - setDelegate:
 
(void) - setItemPrototype:
 
(void) - setMaxItemSize:
 
(void) - setMaxNumberOfColumns:
 
(void) - setMaxNumberOfRows:
 
(void) - setMinItemSize:
 
(void) - setSelectable:
 
(void) - setSelectionIndexes:
 
(void) - setUniformSubviewsResizing:
 
(void) - setVerticalMargin:
 
(void) - tile
 
(void) - tileIfNeeded:
 
(BOOL) - uniformSubviewsResizing
 
(float) - verticalMargin
 
- Instance Methods inherited from CPView
(BOOL) - acceptsFirstMouse:
 
(void) - addSubview:
 
(void) - addSubview:positioned:relativeTo:
 
(void) - addTrackingArea:
 
(CGRect) - adjustScroll:
 
(float) - alphaValue
 
(CAAnimation- animationForKey:
 
(CPDictionary- animations
 
(id) - animator
 
(BOOL) - autoresizesSubviews
 
(unsigned) - autoresizingMask
 
(BOOL) - autoscroll:
 
(CPColor- backgroundColor
 
(BOOL) - becomeFirstResponder
 
(CGRect) - bounds
 
(CGPoint) - boundsOrigin
 
(CGSize) - boundsSize
 
(BOOL) - canBecomeKeyView
 
(CGPoint) - center
 
(BOOL) - clipsToBounds
 
(CGPoint) - convertPoint:fromView:
 
(CGPoint) - convertPoint:toView:
 
(CGPoint) - convertPointFromBase:
 
(CGPoint) - convertPointToBase:
 
(CGRect) - convertRect:fromView:
 
(CGRect) - convertRect:toView:
 
(CGRect) - convertRectFromBase:
 
(CGRect) - convertRectToBase:
 
(CGSize) - convertSize:fromView:
 
(CGSize) - convertSize:toView:
 
(CPView- createEphemeralSubviewNamed:
 
(CPString- debug_description
 
(void) - didAddSubview:
 
(void) - display
 
(void) - displayIfNeeded
 
(void) - displayIfNeededInRect:
 
(void) - displayRect:
 
(void) - displayRectIgnoringOpacity:inContext:
 
(void) - dragImage:at:offset:event:pasteboard:source:slideBack:
 
(void) - dragView:at:offset:event:pasteboard:source:slideBack:
 
(void) - drawRect:
 
(CPAppearance- effectiveAppearance
 
(CPMenuItem- enclosingMenuItem
 
(CPScrollView- enclosingScrollView
 
(BOOL) - enterFullScreenMode
 
(BOOL) - enterFullScreenMode:withOptions:
 
(CPView- ephemeralSubviewNamed:
 
(void) - exitFullScreenMode
 
(void) - exitFullScreenModeWithOptions:
 
(CGRect) - frame
 
(CGPoint) - frameOrigin
 
(CGRect) - frameRectOfView:inSuperviewSize:
 
(CGSize) - frameSize
 
(CGRect) - frameWithNewSuperviewSize:
 
(BOOL) - hasCustomDrawRect
 
(BOOL) - hasCustomLayoutSubviews
 
(CPView- hitTest:
 
(BOOL) - hitTests
 
(id) - init
 
(BOOL) - inLiveResize
 
(BOOL) - isDescendantOf:
 
(BOOL) - isFlipped
 
(BOOL) - isHidden
 
(BOOL) - isHiddenOrHasHiddenAncestor
 
(BOOL) - isInFullScreenMode
 
(BOOL) - isOpaque
 
(CALayer- layer
 
(void) - layout
 
(CPView- layoutEphemeralSubviewNamed:positioned:relativeToEphemeralSubviewNamed:
 
(void) - layoutIfNeeded
 
(void) - layoutSubviews
 
(void) - lockFocus
 
(BOOL) - mouseDownCanMoveWindow
 
(BOOL) - needsDisplay
 
(BOOL) - needsLayout
 
(BOOL) - needsPanelToBecomeKey
 
(CPView- nextKeyView
 
(CPView- nextValidKeyView
 
(void) - objectDidChangeTheme
 
(BOOL) - performKeyEquivalent:
 
(BOOL) - postsBoundsChangedNotifications
 
(BOOL) - postsFrameChangedNotifications
 
(CPView- previousKeyView
 
(CPView- previousValidKeyView
 
(CGRect) - rectForEphemeralSubviewNamed:
 
(void) - reflectScrolledClipView:
 
(CPArray) - registeredDraggedTypes
 
(void) - registerForDraggedTypes:
 
(void) - removeFromSuperview
 
(void) - removeTrackingArea:
 
(void) - replaceSubview:with:
 
(BOOL) - resignFirstResponder
 
(void) - rightMouseDown:
 
(CGSize) - scaleSize
 
(void) - scaleUnitSquareToSize:
 
(void) - scrollClipView:toPoint:
 
(void) - scrollPoint:
 
(void) - scrollRect:by:
 
(BOOL) - scrollRectToVisible:
 
(void) - setAlphaValue:
 
(void) - setAnimations:
 
(void) - setAppearance:
 
(void) - setAutoresizesSubviews:
 
(void) - setBackgroundColor:
 
(void) - setBounds:
 
(void) - setBoundsOrigin:
 
(void) - setBoundsSize:
 
(void) - setCenter:
 
(void) - setClipsToBounds:
 
(void) - setDOMClassName:
 
(void) - setFrame:
 
(void) - setFrameOrigin:
 
(void) - setFrameSize:
 
(void) - setHidden:
 
(void) - setHitTests:
 
(void) - setLayer:
 
(void) - setNeedsDisplay:
 
(void) - setNeedsDisplayInRect:
 
(void) - setNeedsLayout
 
(void) - setNeedsLayout:
 
(void) - setNextKeyView:
 
(void) - setPostsBoundsChangedNotifications:
 
(void) - setPostsFrameChangedNotifications:
 
(void) - setScaleSize:
 
(void) - setSubviews:
 
(void) - setTag:
 
(void) - setThemeClass:
 
(BOOL) - setThemeState:
 
(void) - setToolTip:
 
(void) - setValue:forThemeAttribute:
 
(void) - setValue:forThemeAttribute:inState:
 
(void) - setWantsLayer:
 
(CPArray) - subviews
 
(CPView- superview
 
(CPInteger) - tag
 
(void) - unlockFocus
 
(void) - unregisterDraggedTypes
 
(BOOL) - unsetThemeState:
 
(void) - updateTrackingAreas
 
(void) - viewDidEndLiveResize
 
(void) - viewDidHide
 
(void) - viewDidLayout
 
(void) - viewDidMoveToSuperview
 
(void) - viewDidMoveToWindow
 
(void) - viewDidUnhide
 
(void) - viewWillDraw
 
(void) - viewWillLayout
 
(void) - viewWillMoveToSuperview:
 
(void) - viewWillMoveToWindow:
 
(void) - viewWillStartLiveResize
 
(CPView- viewWithTag:
 
(CGRect) - visibleRect
 
(BOOL) - wantsLayer
 
(void) - willRemoveSubview:
 
(CPWindow- window
 

Additional Inherited Members

- Class Methods inherited from CPView
(Class) + animatorClass
 
(CAAnimation+ defaultAnimationForKey:
 
(CPMenu+ defaultMenu
 
(CPString+ defaultThemeClass
 
(void) + initialize
 
(BOOL) + isHighDPIDrawingEnabled
 
(CPSet) + keyPathsForValuesAffectingBounds
 
(CPSet) + keyPathsForValuesAffectingFrame
 
(void) + setHighDPIDrawingEnabled:
 
(CPDictionary+ themeAttributes
 

Detailed Description

This class displays an array as a grid of objects, where each object is represented by a view. The view is controlled by creating a CPCollectionViewItem and specifying its view, then setting that item as the collection view prototype.

Delegate Methods

- (void)collectionView:(CPCollectionView)collectionView didDoubleClickOnItemAtIndex:(int)index; Called when the user double-clicks on an item in the collection view.

Parameters
collectionViewthe collection view that received the double-click
indexthe index of the item that received the double-click

- (CPData)collectionView:(CPCollectionView)collectionView dataForItemsAtIndexes:(CPIndexSet)indices forType:(CPString)aType; Invoked to obtain data for a set of indices.

Parameters
collectionViewthe collection view to obtain data for
indicesthe indices to return data for
aTypethe data type
Returns
a data object containing the index items

- (CPArray)collectionView:(CPCollectionView)collectionView dragTypesForItemsAtIndexes:(CPIndexSet)indices; Invoked to obtain the data types supported by the specified indices for placement on the pasteboard.

Parameters
collectionViewthe collection view the items reside in
indicesthe indices to obtain drag types
Returns
an array of drag types (CPString)

Definition at line 2 of file CPCollectionView.h.

Method Documentation

◆ acceptsFirstResponder()

- (BOOL) acceptsFirstResponder
implementation

Returns YES by default.

Definition at line 321 of file CPCollectionView.j.

◆ allowsEmptySelection()

- (BOOL) allowsEmptySelection
implementation

Returns YES if the user can select no items, NO otherwise.

Definition at line 406 of file CPCollectionView.j.

◆ allowsMultipleSelection()

- (BOOL) allowsMultipleSelection
implementation

Returns YES if the user can select multiple items, NO otherwise.

Definition at line 423 of file CPCollectionView.j.

◆ backgroundColors()

- (CPArray) backgroundColors
implementation

Definition at line 795 of file CPCollectionView.j.

◆ content()

- (CPArray) content
implementation

Returns the collection view content array

Definition at line 356 of file CPCollectionView.j.

◆ delegate()

- (id) delegate
implementation

Returns the collection view's delegate

Definition at line 896 of file CPCollectionView.j.

◆ deleteBackward:()

- (void) deleteBackward: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 1335 of file CPCollectionView.j.

◆ displayItems:frameSize:itemSize:columns:rows:count:()

- (void) displayItems: (CPArray)  displayItems
frameSize: (CGSize)  aFrameSize
itemSize: (CGSize)  anItemSize
columns: (CPInteger)  numberOfColumns
rows: (CPInteger)  numberOfRows
count: (CPInteger)  displayCount 
implementation

Definition at line 604 of file CPCollectionView.j.

◆ draggingEnded:()

- (void) draggingEnded: (id)  draggingInfo
implementation

Provided by category CPCollectionView(DragAndDrop).

Definition at line 1116 of file CPCollectionView.j.

◆ draggingEntered:()

- (CPDragOperation) draggingEntered: (id)  draggingInfo
implementation

Provided by category CPCollectionView(DragAndDrop).

Definition at line 1059 of file CPCollectionView.j.

◆ draggingExited:()

- (void) draggingExited: (id)  draggingInfo
implementation

Provided by category CPCollectionView(DragAndDrop).

Definition at line 1111 of file CPCollectionView.j.

◆ draggingUpdated:()

- (CPDragOperation) draggingUpdated: (id)  draggingInfo
implementation

Provided by category CPCollectionView(DragAndDrop).

Definition at line 1074 of file CPCollectionView.j.

◆ draggingViewForItemsAtIndexes:withEvent:offset:()

- (CPView) draggingViewForItemsAtIndexes: (CPIndexSet indexes
withEvent: (CPEvent event
offset: (CGPoint)  dragImageOffset 
implementation

Provided by category CPCollectionView(DragAndDrop).

Definition at line 1047 of file CPCollectionView.j.

◆ encodeWithCoder:()

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Archives the view to a coder.

Parameters
aCoderthe object into which the view's data will be archived.

Reimplemented from CPView.

Provided by category CPCollectionView(CPCoding).

Definition at line 1562 of file CPCollectionView.j.

◆ frameForItemAtIndex:()

- (CGRect) frameForItemAtIndex: (CPUInteger)  anIndex
implementation

Definition at line 935 of file CPCollectionView.j.

◆ frameForItemsAtIndexes:()

- (CGRect) frameForItemsAtIndexes: (CPIndexSet anIndexSet
implementation

Definition at line 940 of file CPCollectionView.j.

◆ initWithCoder:()

- (id) initWithCoder: (CPCoder aCoder
implementation

Initializes the view from an archive.

Parameters
aCoderthe coder from which to initialize
Returns
the initialized view

Reimplemented from CPView.

Provided by category CPCollectionView(CPCoding).

Definition at line 1537 of file CPCollectionView.j.

◆ initWithFrame:()

- (id) initWithFrame: (CGRect)  aFrame
implementation

Initializes the receiver for usage with the specified bounding rectangle

Returns
the initialized view

Reimplemented from CPView.

Definition at line 138 of file CPCollectionView.j.

◆ isFirstResponder()

- (BOOL) isFirstResponder
implementation

Returns whether the receiver is currently the first responder.

Definition at line 329 of file CPCollectionView.j.

◆ isSelectable()

- (BOOL) isSelectable
implementation

Returns YES if the collection view is selectable, and NO otherwise.

Definition at line 389 of file CPCollectionView.j.

◆ itemAtIndex:()

- (CPCollectionViewItem) itemAtIndex: (CPUInteger)  anIndex
implementation

Definition at line 930 of file CPCollectionView.j.

◆ itemPrototype()

- (CPCollectionViewItem) itemPrototype
implementation

Returns the current item prototype

Definition at line 292 of file CPCollectionView.j.

◆ items()

- (CPArray) items
implementation

Returns the collection view items.

Definition at line 364 of file CPCollectionView.j.

◆ keyDown:()

- (void) keyDown: (CPEvent anEvent
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 1350 of file CPCollectionView.j.

◆ maxItemSize()

- (CGSize) maxItemSize
implementation

Returns the current maximum item size.

Definition at line 771 of file CPCollectionView.j.

◆ maxNumberOfColumns()

- (unsigned) maxNumberOfColumns
implementation

Returns the maximum number of columns

Definition at line 701 of file CPCollectionView.j.

◆ maxNumberOfRows()

- (unsigned) maxNumberOfRows
implementation

Returns the maximum number of rows.

Definition at line 679 of file CPCollectionView.j.

◆ menuForEvent:()

- (CPMenu) menuForEvent: (CPEvent theEvent
implementation

Reimplemented from CPView.

Definition at line 904 of file CPCollectionView.j.

◆ minItemSize()

- (CGSize) minItemSize
implementation

Returns the current minimum item size

Definition at line 746 of file CPCollectionView.j.

◆ mouseDown:()

- (void) mouseDown: (CPEvent anEvent
implementation

Reimplemented from CPView.

Definition at line 806 of file CPCollectionView.j.

◆ mouseDragged:()

- (void) mouseDragged: (CPEvent anEvent
implementation

Provided by category CPCollectionView(DragAndDrop).

Definition at line 998 of file CPCollectionView.j.

◆ mouseUp:()

- (void) mouseUp: (CPEvent anEvent
implementation

Definition at line 800 of file CPCollectionView.j.

◆ moveDown:()

- (void) moveDown: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 1307 of file CPCollectionView.j.

◆ moveDownAndModifySelection:()

- (void) moveDownAndModifySelection: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 1312 of file CPCollectionView.j.

◆ moveLeft:()

- (void) moveLeft: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 1279 of file CPCollectionView.j.

◆ moveLeftAndModifySelection:()

- (void) moveLeftAndModifySelection: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 1288 of file CPCollectionView.j.

◆ moveRight:()

- (void) moveRight: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 1297 of file CPCollectionView.j.

◆ moveRightAndModifySelection:()

- (void) moveRightAndModifySelection: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 1302 of file CPCollectionView.j.

◆ moveUp:()

- (void) moveUp: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 1317 of file CPCollectionView.j.

◆ moveUpAndModifySelection:()

- (void) moveUpAndModifySelection: (id)  sender
implementation

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 1326 of file CPCollectionView.j.

◆ newItemForRepresentedObject:()

- (CPCollectionViewItem) newItemForRepresentedObject: (id)  anObject
implementation

Returns a collection view item for anObject.

Parameters
anObjectthe object to be represented.

Definition at line 301 of file CPCollectionView.j.

◆ numberOfColumns()

- (unsigned) numberOfColumns
implementation

Returns the current number of columns

Definition at line 718 of file CPCollectionView.j.

◆ numberOfRows()

- (unsigned) numberOfRows
implementation

Returns the current number of rows

Definition at line 709 of file CPCollectionView.j.

◆ pasteboard:provideDataForType:()

- (void) pasteboard: (CPPasteboard aPasteboard
provideDataForType: (CPString aType 
implementation

Places the selected items on the specified pasteboard. The items are requested from the collection's delegate.

Parameters
aPasteboardthe pasteboard to put the items on
aTypethe format the pasteboard data

Provided by category CPCollectionView(DragAndDrop).

Definition at line 982 of file CPCollectionView.j.

◆ performDragOperation:()

- (BOOL) performDragOperation: (id)  draggingInfo
implementation

Provided by category CPCollectionView(DragAndDrop).

Definition at line 1132 of file CPCollectionView.j.

◆ rectForItemAtIndex:()

- (CGRect) rectForItemAtIndex: (int)  anIndex
implementation

Provided by category CPCollectionView(Deprecated).

Definition at line 1365 of file CPCollectionView.j.

◆ rectForItemsAtIndexes:()

- (CGRect) rectForItemsAtIndexes: (CPIndexSet anIndexSet
implementation

Provided by category CPCollectionView(Deprecated).

Definition at line 1374 of file CPCollectionView.j.

◆ reloadContent()

- (void) reloadContent
implementation

Definition at line 458 of file CPCollectionView.j.

◆ resizeSubviewsWithOldSize:()

- (void) resizeSubviewsWithOldSize: (CGSize)  aSize
implementation

Initiates -superviewSizeChanged: messages to subviews.

Parameters
aSizethe size for the subviews

Reimplemented from CPView.

Definition at line 502 of file CPCollectionView.j.

◆ resizeWithOldSuperviewSize:()

- (void) resizeWithOldSuperviewSize: (CGSize)  aSize
implementation

Notifies subviews that the superview changed size.

Parameters
aSizethe size of the old superview

Reimplemented from CPView.

Definition at line 507 of file CPCollectionView.j.

◆ selectionIndexes()

- (CPIndexSet) selectionIndexes
implementation

Returns a set of the selected indices.

Definition at line 453 of file CPCollectionView.j.

◆ setAllowsEmptySelection:()

- (void) setAllowsEmptySelection: (BOOL)  shouldAllowEmptySelection
implementation

Sets whether the user may have no items selected. If YES, mouse clicks not on any item will empty the current selection. The first item will also start off as selected.

Parameters
shouldAllowMultipleSelectionYES allows the user to select multiple items

Definition at line 398 of file CPCollectionView.j.

◆ setAllowsMultipleSelection:()

- (void) setAllowsMultipleSelection: (BOOL)  shouldAllowMultipleSelection
implementation

Sets whether the user can select multiple items.

Parameters
shouldAllowMultipleSelectionYES allows the user to select multiple items

Definition at line 415 of file CPCollectionView.j.

◆ setAutoresizingMask:()

- (void) setAutoresizingMask: (unsigned)  aMask
implementation

Determines automatic resizing behavior.

Parameters
aMaska bit mask with options

Reimplemented from CPView.

Provided by category CPCollectionView(KeyboardInteraction).

Definition at line 1355 of file CPCollectionView.j.

◆ setBackgroundColors:()

- (void) setBackgroundColors: (CPArray)  backgroundColors
implementation

Definition at line 776 of file CPCollectionView.j.

◆ setContent:()

- (void) setContent: (CPArray)  anArray
implementation

Sets the content of the collection view to the content in anArray. This array can be of any type, and each element will be passed to the -setRepresentedObject: method. It's the responsibility of your custom collection view item to interpret the object.

If the new content array is smaller than the previous one, note that [receiver selectionIndexes] may refer to out of range indices. selectionIndexes is not changed as a result of calling the setContent: method.

Parameters
anArraya content array

Definition at line 346 of file CPCollectionView.j.

◆ setDelegate:()

- (void) setDelegate: (id <CPCollectionViewDelegate>)  aDelegate
implementation

Set the delegate of the receiver

Parameters
aDelegatethe delegate object for the collectionView.

Definition at line 199 of file CPCollectionView.j.

◆ setItemPrototype:()

- (void) setItemPrototype: (CPCollectionViewItem anItem
implementation

Sets the item prototype to anItem

Parameters
anItemthe new item prototype.
@note
- If anItem is located in an external cib file, representedObject, outlets, and bindings will be automatically restored when an item is created.
- If anItem and its view belong to the same cib as the collection view, the item prototype should implement the CPCoding protocol because the item is copied by archiving and unarchiving the prototypal view.
@note
    Bindings won't be restored through archiving, instead you need to subclass the -representedObject: method and update the view there.

@par Example:
@implementation MyCustomPrototypeItem: CPCollectionViewItem
{
@outlet CPTextField textField;
}
- (id)initWithCoder:(CPCoder)aCoder
{
self = [super initWithCoder:aCoder];
textField = [aCoder decodeObjectForKey:@"TextField"];
return self;
}
- (void)encodeWithCoder:(CPCoder)aCoder
{
[super encodeWithCoder:aCoder];
[aCoder encodeConditionalObject:textField forKey:@"TextField"];
}
- (void)setRepresentedObject:(id)anObject
{
[super setRepresentedObject:anObject];
[textField setStringValue:[anObject objectForKey:@"value"]];
[[self view] setColor:[anObject objectForKey:@"color"]];
}
@end

Definition at line 279 of file CPCollectionView.j.

◆ setMaxItemSize:()

- (void) setMaxItemSize: (CGSize)  aSize
implementation

Sets the maximum item size.

Parameters
aSizethe new maximum item size

Definition at line 755 of file CPCollectionView.j.

◆ setMaxNumberOfColumns:()

- (void) setMaxNumberOfColumns: (unsigned)  aMaxNumberOfColumns
implementation

Sets the maximum number of columns.

Parameters
aMaxNumberOfColumnsthe new maximum number of columns

Definition at line 688 of file CPCollectionView.j.

◆ setMaxNumberOfRows:()

- (void) setMaxNumberOfRows: (unsigned)  aMaxNumberOfRows
implementation

Sets the maximum number of rows.

Parameters
aMaxNumberOfRowsthe new maximum number of rows

Definition at line 666 of file CPCollectionView.j.

◆ setMinItemSize:()

- (void) setMinItemSize: (CGSize)  aSize
implementation

Sets the minimum size for an item

Parameters
aSizethe new minimum item size

Definition at line 727 of file CPCollectionView.j.

◆ setSelectable:()

- (void) setSelectable: (BOOL)  isSelectable
implementation

Sets whether the user is allowed to select items

Parameters
isSelectableYES allows the user to select items.

Definition at line 374 of file CPCollectionView.j.

◆ setSelectionIndexes:()

- (void) setSelectionIndexes: (CPIndexSet anIndexSet
implementation

Sets the selected items based on the provided indices.

Parameters
anIndexSetthe set of items to be selected

Definition at line 432 of file CPCollectionView.j.

◆ setUniformSubviewsResizing:()

- (void) setUniformSubviewsResizing: (BOOL)  flag
implementation

Synthesized accessor method.

Provided by category CPCollectionView(CPSynthesizedAccessors).

Definition at line 877 of file CPCollectionView.j.

◆ setVerticalMargin:()

- (void) setVerticalMargin: (float)  aVerticalMargin
implementation

Sets the collection view's vertical spacing between elements.

Parameters
aVerticalMarginthe number of pixels to place between elements

Definition at line 867 of file CPCollectionView.j.

◆ tile()

- (void) tile
implementation

Definition at line 519 of file CPCollectionView.j.

◆ tileIfNeeded:()

- (void) tileIfNeeded: (BOOL)  lazyFlag
implementation

Definition at line 524 of file CPCollectionView.j.

◆ uniformSubviewsResizing()

- (BOOL) uniformSubviewsResizing
implementation

Synthesized accessor method.

Provided by category CPCollectionView(CPSynthesizedAccessors).

Definition at line 1601 of file CPCollectionView.j.

◆ verticalMargin()

- (float) verticalMargin
implementation

Gets the collection view's current vertical spacing between elements.

Definition at line 888 of file CPCollectionView.j.


The documentation for this class was generated from the following files: