ReorderableListControl Class

Base class for custom reorderable list control.
[SerializableAttribute]
public class ReorderableListControl
All Members Constructors Methods Properties Fields Events
Member Description
ReorderableListControl()()()()
Initializes a new instance of ReorderableListControl.
ReorderableListControl(ReorderableListFlags)
Initializes a new instance of ReorderableListControl.

addButtonStyle
Gets or sets style used to draw add button.

AddItem(IReorderableListAdaptor)
Add item at end of list and raises the event ItemInserted.

AddItemsToMenu(GenericMenu, Int32, IReorderableListAdaptor)
Invoked to generate context menu for list item.

AnchorBackgroundColor
Background color of anchor list item.

CalculateListHeight(IReorderableListAdaptor)
Calculate height of list control in pixels.

CalculateListHeight(Int32, Single)
Calculate height of list control in pixels.

canDragItem
Optional delegate to determine whether item can be dragged.

canRemoveItem
Optional delegate to determine whether item can be removed from list.

ClearAll(IReorderableListAdaptor)
Remove all items from list.

commandClearAll
Content for "Clear All" command.

commandDuplicate
Content for "Duplicate" command.

commandInsertAbove
Content for "Insert Above" command.

commandInsertBelow
Content for "Insert Below" command.

commandMoveToBottom
Content for "Move to Bottom" command.

commandMoveToTop
Content for "Move to Top" command.

commandRemove
Content for "Remove" command.

containerStyle
Gets or sets style used to draw background of list control.

defaultContextHandler
Default functionality to handle context command.

DoCommand(String, Int32, IReorderableListAdaptor)
Call to manually perform command.

DoCommand(GUIContent, Int32, IReorderableListAdaptor)
Call to manually perform command.

Draw(IReorderableListAdaptor, ReorderableListControl..::..DrawEmpty)
Draw layout version of list control.

Draw(IReorderableListAdaptor)
Draw layout version of list control.

Draw(Rect, IReorderableListAdaptor, ReorderableListControl..::..DrawEmptyAbsolute)
Draw list control with absolute positioning.

Draw(Rect, IReorderableListAdaptor)
Draw list control with absolute positioning.

DrawControlFromState(IReorderableListAdaptor, ReorderableListControl..::..DrawEmpty, ReorderableListFlags)
Generate and draw control from state object.

DrawControlFromState(Rect, IReorderableListAdaptor, ReorderableListControl..::..DrawEmptyAbsolute, ReorderableListFlags)
Generate and draw control from state object.

DuplicateItem(IReorderableListAdaptor, Int32)
Duplicate specified item and raises the event ItemInserted.

flags
Gets or sets flags which affect behavior of control.

HandleCommand(String, Int32, IReorderableListAdaptor)
Invoked to handle context command.

hasAddButton
Gets a value indicating whether add button is shown.

hasRemoveButtons
Gets a value indicating whether remove buttons are shown.

InsertItem(IReorderableListAdaptor, Int32)
Insert item at specified index and raises the event ItemInserted.

ItemInserted
Occurs after list item is inserted or duplicated.

ItemRemoving
Occurs before list item is removed and allows removal to be cancelled.

MoveItem(IReorderableListAdaptor, Int32, Int32)
Move item from source index to destination index.

OnItemInserted(ItemInsertedEventArgs)
Raises event after list item is inserted or duplicated.

OnItemRemoving(ItemRemovingEventArgs)
Raises event before list item is removed and provides oppertunity to cancel.

removeButtonStyle
Gets or sets style used to draw remove button.

RemoveItem(IReorderableListAdaptor, Int32)
Remove specified item.

TargetBackgroundColor
Background color of target slot when dragging list item.

Inheritance Hierarchy

Object
ReorderableListControl