ReorderableListControl Class

Rotorz ReorderableList

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
  NameDescription
Public methodReorderableListControl
Initializes a new instance of ReorderableListControl.
Public methodReorderableListControl(ReorderableListFlags)
Initializes a new instance of ReorderableListControl.
Top
Methods
  NameDescription
Protected methodAddItem
Add item at end of list and raises the event ItemInserted.
Protected methodAddItemsToMenu
Invoked to generate context menu for list item.
Public methodCalculateListHeight(IReorderableListAdaptor)
Calculate height of list control in pixels.
Public methodCalculateListHeight(Int32, Single)
Calculate height of list control in pixels.
Protected methodClearAll
Remove all items from list.
Public methodDoCommand(String, Int32, IReorderableListAdaptor)
Call to manually perform command.
Public methodDoCommand(GUIContent, Int32, IReorderableListAdaptor)
Call to manually perform command.
Public methodDraw(IReorderableListAdaptor)
Draw layout version of list control.
Public methodDraw(Rect, IReorderableListAdaptor)
Draw list control with absolute positioning.
Public methodDraw(IReorderableListAdaptor, ReorderableListControlDrawEmpty)
Draw layout version of list control.
Public methodDraw(Rect, IReorderableListAdaptor, ReorderableListControlDrawEmptyAbsolute)
Draw list control with absolute positioning.
Public methodStatic memberDrawControlFromState(IReorderableListAdaptor, ReorderableListControlDrawEmpty, ReorderableListFlags)
Generate and draw control from state object.
Public methodStatic memberDrawControlFromState(Rect, IReorderableListAdaptor, ReorderableListControlDrawEmptyAbsolute, ReorderableListFlags)
Generate and draw control from state object.
Protected methodDrawDropIndicator
Draws drop insertion indicator.
Protected methodDuplicateItem
Duplicate specified item and raises the event ItemInserted.
Protected methodHandleCommand
Invoked to handle context command.
Protected methodInsertItem
Insert item at specified index and raises the event ItemInserted.
Protected methodMoveItem
Move item from source index to destination index.
Protected methodOnAddMenuClicked
Raises event when add menu button is clicked.
Protected methodOnItemInserted
Raises event after list item is inserted or duplicated.
Protected methodOnItemMoved
Raises event after list item has been moved.
Protected methodOnItemMoving
Raises event immediately before list item is moved and provides oppertunity to cancel.
Protected methodOnItemRemoving
Raises event before list item is removed and provides oppertunity to cancel.
Protected methodRemoveItem
Remove specified item.
Top
Fields
  NameDescription
Public fieldStatic memberAnchorBackgroundColor
Background color of anchor list item.
Protected fieldStatic memberCommandClearAll
Content for "Clear All" command.
Protected fieldStatic memberCommandDuplicate
Content for "Duplicate" command.
Protected fieldStatic memberCommandInsertAbove
Content for "Insert Above" command.
Protected fieldStatic memberCommandInsertBelow
Content for "Insert Below" command.
Protected fieldStatic memberCommandMoveToBottom
Content for "Move to Bottom" command.
Protected fieldStatic memberCommandMoveToTop
Content for "Move to Top" command.
Protected fieldStatic memberCommandRemove
Content for "Remove" command.
Protected fieldStatic memberCode exampleDefaultContextHandler
Default functionality to handle context command.
Public fieldStatic memberTargetBackgroundColor
Background color of target slot when dragging list item.
Top
Properties
  NameDescription
Public propertyContainerStyle
Gets or sets style used to draw background of list control.
Public propertyStatic memberCurrentItemTotalPosition
Gets the total position of the list item that is currently being drawn.
Public propertyStatic memberCurrentListControlID
Gets the control ID of the list that is currently being drawn.
Public propertyStatic memberCurrentListPosition
Gets the position of the list control that is currently being drawn.
Public propertyFlags
Gets or sets flags which affect behavior of control.
Public propertyFooterButtonStyle
Gets or sets style used to draw footer buttons.
Public propertyHorizontalLineAtEnd
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.
Public propertyHorizontalLineAtStart
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.
Public propertyHorizontalLineColor
Gets or sets the color of the horizontal lines that appear between list items.
Public propertyItemButtonStyle
Gets or sets style used to draw list item buttons (like the remove button).
Top
Events
  NameDescription
Public eventAddMenuClicked
Occurs when add menu button is clicked.
Public eventItemInserted
Occurs after list item is inserted or duplicated.
Public eventItemMoved
Occurs after list item has been moved.
Public eventItemMoving
Occurs immediately before list item is moved allowing for move operation to be cancelled.
Public eventItemRemoving
Occurs before list item is removed and allowing for remove operation to be cancelled.
Top
See Also