Reorderable List Control for Unity
ReorderableListControl Class |
Base class for custom reorderable list control.
Inheritance Hierarchy
SystemObject Rotorz.ReorderableListReorderableListControl
Namespace: Rotorz.ReorderableList
Assembly: Editor.ReorderableList (in Editor.ReorderableList.dll) Version: 0.0.0.0 (0.3.0.0)
Syntax
public class ReorderableListControl
public class ReorderableListControl
The ReorderableListControl type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ReorderableListControl |
Initializes a new instance of ReorderableListControl.
| |
ReorderableListControl(ReorderableListFlags) |
Initializes a new instance of ReorderableListControl.
|
Methods
Name | Description | |
---|---|---|
AddItem |
Add item at end of list and raises the event ItemInserted.
| |
AddItemsToMenu |
Invoked to generate context menu for list item.
| |
CalculateListHeight(IReorderableListAdaptor) |
Calculate height of list control in pixels.
| |
CalculateListHeight(Int32, Single) |
Calculate height of list control in pixels.
| |
ClearAll |
Remove all items from list.
| |
DoCommand(String, Int32, IReorderableListAdaptor) |
Call to manually perform command.
| |
DoCommand(GUIContent, Int32, IReorderableListAdaptor) |
Call to manually perform command.
| |
Draw(IReorderableListAdaptor) |
Draw layout version of list control.
| |
Draw(Rect, IReorderableListAdaptor) |
Draw list control with absolute positioning.
| |
Draw(IReorderableListAdaptor, ReorderableListControlDrawEmpty) |
Draw layout version of list control.
| |
Draw(Rect, IReorderableListAdaptor, ReorderableListControlDrawEmptyAbsolute) |
Draw list control with absolute positioning.
| |
DrawControlFromState(IReorderableListAdaptor, ReorderableListControlDrawEmpty, ReorderableListFlags) |
Generate and draw control from state object.
| |
DrawControlFromState(Rect, IReorderableListAdaptor, ReorderableListControlDrawEmptyAbsolute, ReorderableListFlags) |
Generate and draw control from state object.
| |
DrawDropIndicator |
Draws drop insertion indicator.
| |
DuplicateItem |
Duplicate specified item and raises the event ItemInserted.
| |
HandleCommand |
Invoked to handle context command.
| |
InsertItem |
Insert item at specified index and raises the event ItemInserted.
| |
MoveItem |
Move item from source index to destination index.
| |
OnAddMenuClicked |
Raises event when add menu button is clicked.
| |
OnItemInserted |
Raises event after list item is inserted or duplicated.
| |
OnItemMoved |
Raises event after list item has been moved.
| |
OnItemMoving |
Raises event immediately before list item is moved and provides oppertunity to cancel.
| |
OnItemRemoving |
Raises event before list item is removed and provides oppertunity to cancel.
| |
RemoveItem |
Remove specified item.
|
Fields
Name | Description | |
---|---|---|
AnchorBackgroundColor |
Background color of anchor list item.
| |
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.
| |
DefaultContextHandler |
Default functionality to handle context command.
| |
TargetBackgroundColor |
Background color of target slot when dragging list item.
|
Properties
Name | Description | |
---|---|---|
ContainerStyle |
Gets or sets style used to draw background of list control.
| |
CurrentItemTotalPosition |
Gets the total position of the list item that is currently being drawn.
| |
CurrentListControlID |
Gets the control ID of the list that is currently being drawn.
| |
CurrentListPosition |
Gets the position of the list control that is currently being drawn.
| |
Flags |
Gets or sets flags which affect behavior of control.
| |
FooterButtonStyle |
Gets or sets style used to draw footer buttons.
| |
HorizontalLineAtEnd |
Gets or sets a boolean value indicating whether a horizontal line should be
shown below the last list item at the end of the list control.
| |
HorizontalLineAtStart |
Gets or sets a boolean value indicating whether a horizontal line should be
shown above the first list item at the start of the list control.
| |
HorizontalLineColor |
Gets or sets the color of the horizontal lines that appear between list items.
| |
ItemButtonStyle |
Gets or sets style used to draw list item buttons (like the remove button).
|
Events
Name | Description | |
---|---|---|
AddMenuClicked |
Occurs when add menu button is clicked.
| |
ItemInserted |
Occurs after list item is inserted or duplicated.
| |
ItemMoved |
Occurs after list item has been moved.
| |
ItemMoving |
Occurs immediately before list item is moved allowing for move operation to be cancelled.
| |
ItemRemoving |
Occurs before list item is removed and allowing for remove operation to be cancelled.
|
See Also