Свойство | Type | Description | |
---|---|---|---|
AnchorBackgroundColor | |||
TargetBackgroundColor |
Свойство | Type | Description | |
---|---|---|---|
CommandClearAll | |||
CommandDuplicate | |||
CommandInsertAbove | |||
CommandInsertBelow | |||
CommandMoveToBottom | |||
CommandMoveToTop | |||
CommandRemove | |||
DefaultContextHandler | GenericMenu.MenuFunction2 |
Свойство | Type | Description | |
---|---|---|---|
AcceptReorderDrag | void | ||
AutoFocusItem | void | ||
AutoScrollTowardsMouse | void | ||
BeginTrackingReorderDrag | void | ||
CheckForAutoFocusControl | void | ||
ContainsRect | bool | ||
CountDigits | int | ||
DefaultContextMenuHandler | void | ||
DoRemoveButton | bool | ||
Draw | void | ||
Draw | void | ||
DrawEmptyListControl | void | ||
DrawFloatingListItem | void | ||
DrawFooterControls | void | ||
DrawLayoutEmptyList | |||
DrawLayoutListField | |||
DrawListContainerAndItems | void | ||
DrawListItem | void | ||
FixStyles | void | ||
GetListRectWithAutoLayout | |||
GetReorderableListControlID | int | ||
HandleDropInsertion | void | ||
IsTrackingControl | bool | ||
PrepareState | void | ||
ReorderableListControl | System.Collections.Generic | ||
ShowContextMenu | void | ||
StopTrackingReorderDrag | void |
Méthode | Description | |
---|---|---|
CalculateListHeight ( IReorderableListAdaptor adaptor ) : float |
Calculate height of list control in pixels.
|
|
CalculateListHeight ( int itemCount, float itemHeight ) : float |
Calculate height of list control in pixels.
|
|
DoCommand ( |
Call to manually perform command. Warning message is logged to console if attempted to execute unknown command. |
|
DoCommand ( string commandName, int itemIndex, IReorderableListAdaptor adaptor ) : bool |
Call to manually perform command. Warning message is logged to console if attempted to execute unknown command. |
|
Draw ( IReorderableListAdaptor adaptor ) : void | ||
Draw ( IReorderableListAdaptor adaptor, DrawEmpty drawEmpty ) : void | ||
Draw ( |
||
Draw ( |
Draw list control with absolute positioning.
|
|
DrawControlFromState ( IReorderableListAdaptor adaptor, DrawEmpty drawEmpty, ReorderableListFlags flags ) : void |
Generate and draw control from state object.
|
|
DrawControlFromState ( |
Generate and draw control from state object.
|
|
ReorderableListControl ( ReorderableListFlags flags ) : System.Collections.Generic |
Initializes a new instance of ReorderableListControl.
|
Méthode | Description | |
---|---|---|
AddItem ( IReorderableListAdaptor adaptor ) : void |
Add item at end of list and raises the event ItemInserted.
|
|
AddItemsToMenu ( |
Invoked to generate context menu for list item.
|
|
ClearAll ( IReorderableListAdaptor adaptor ) : bool |
Remove all items from list. The event ItemRemoving is raised for each item prior to clearing array and allows entire operation to be cancelled. |
|
DrawDropIndicator ( |
Draws drop insertion indicator. This method is only ever called during repaint events. |
|
DuplicateItem ( IReorderableListAdaptor adaptor, int itemIndex ) : void |
Duplicate specified item and raises the event ItemInserted.
|
|
HandleCommand ( string commandName, int itemIndex, IReorderableListAdaptor adaptor ) : bool |
Invoked to handle context command. It is important to set the value of Default command handling functionality can be inherited: |
|
InsertItem ( IReorderableListAdaptor adaptor, int itemIndex ) : void |
Insert item at specified index and raises the event ItemInserted.
|
|
MoveItem ( IReorderableListAdaptor adaptor, int sourceIndex, int destIndex ) : void |
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 ( IReorderableListAdaptor adaptor, int itemIndex ) : bool |
Remove specified item. The event ItemRemoving is raised prior to removing item and allows removal to be cancelled. |
Méthode | Description | |
---|---|---|
AcceptReorderDrag ( IReorderableListAdaptor adaptor ) : void |
Accept reordering.
|
|
AutoFocusItem ( int controlID, int itemIndex ) : void |
Indicate that first control of list item should be automatically focused if possible.
|
|
AutoScrollTowardsMouse ( ) : void | ||
BeginTrackingReorderDrag ( int controlID, int itemIndex ) : void |
Begin tracking drag and drop within list.
|
|
CheckForAutoFocusControl ( ) : void |
Checks to see if list control needs to be automatically focused.
|
|
ContainsRect ( |
||
CountDigits ( int number ) : int | ||
DefaultContextMenuHandler ( object userData ) : void | ||
DoRemoveButton ( |
Draw remove button.
|
|
Draw ( |
Draw list control with absolute positioning.
|
|
Draw ( int controlID, IReorderableListAdaptor adaptor, DrawEmpty drawEmpty ) : void |
Draw layout version of list control.
|
|
DrawEmptyListControl ( |
Draw content for empty list (layout version).
|
|
DrawFloatingListItem ( IReorderableListAdaptor adaptor, float targetSlotPosition ) : void | ||
DrawFooterControls ( |
Draw additional controls below list control and highlight drop target.
|
|
DrawLayoutEmptyList ( IReorderableListAdaptor adaptor, DrawEmpty drawEmpty ) : |
Draw content for empty list (layout version).
|
|
DrawLayoutListField ( IReorderableListAdaptor adaptor, float padding ) : |
Do layout version of list field.
|
|
DrawListContainerAndItems ( |
Draw list container and items.
|
|
DrawListItem ( |
||
FixStyles ( ) : void |
Correct if for some reason one or more styles are missing!
|
|
GetListRectWithAutoLayout ( IReorderableListAdaptor adaptor, float padding ) : |
||
GetReorderableListControlID ( ) : int | ||
HandleDropInsertion ( |
||
IsTrackingControl ( int controlID ) : bool |
Gets a value indicating whether item in current list is currently being tracked.
|
|
PrepareState ( int controlID, IReorderableListAdaptor adaptor ) : void |
Prepare initial state for list control.
|
|
ReorderableListControl ( ) : System.Collections.Generic | ||
ShowContextMenu ( int itemIndex, IReorderableListAdaptor adaptor ) : void | ||
StopTrackingReorderDrag ( ) : void |
Stop tracking drag and drop.
|
protected AddItem ( IReorderableListAdaptor adaptor ) : void | ||
adaptor | IReorderableListAdaptor | Reorderable list adaptor. |
Résultat | void |
protected AddItemsToMenu ( |
||
menu | Menu which can be populated. | |
itemIndex | int | Zero-based index of item which was right-clicked. |
adaptor | IReorderableListAdaptor | Reorderable list adaptor. |
Résultat | void |
public CalculateListHeight ( IReorderableListAdaptor adaptor ) : float | ||
adaptor | IReorderableListAdaptor | Reorderable list adaptor. |
Résultat | float |
public CalculateListHeight ( int itemCount, float itemHeight ) : float | ||
itemCount | int | Count of items in list. |
itemHeight | float | Fixed height of list item. |
Résultat | float |
protected ClearAll ( IReorderableListAdaptor adaptor ) : bool | ||
adaptor | IReorderableListAdaptor | Reorderable list adaptor. |
Résultat | bool |
public DoCommand ( |
||
command | Content representing command. | |
itemIndex | int | Zero-based index of item which was right-clicked. |
adaptor | IReorderableListAdaptor | Reorderable list adaptor. |
Résultat | bool |
public DoCommand ( string commandName, int itemIndex, IReorderableListAdaptor adaptor ) : bool | ||
commandName | string | Name of command. This is the text shown in the context menu. |
itemIndex | int | Zero-based index of item which was right-clicked. |
adaptor | IReorderableListAdaptor | Reorderable list adaptor. |
Résultat | bool |
public Draw ( IReorderableListAdaptor adaptor ) : void | ||
adaptor | IReorderableListAdaptor | |
Résultat | void |
public Draw ( IReorderableListAdaptor adaptor, DrawEmpty drawEmpty ) : void | ||
adaptor | IReorderableListAdaptor | |
drawEmpty | DrawEmpty | |
Résultat | void |
public Draw ( |
||
position | ||
adaptor | IReorderableListAdaptor | |
Résultat | void |
public Draw ( |
||
position | Position of list control in GUI. | |
adaptor | IReorderableListAdaptor | Reorderable list adaptor. |
drawEmpty | DrawEmptyAbsolute | Delegate for drawing empty list. |
Résultat | void |
public static DrawControlFromState ( IReorderableListAdaptor adaptor, DrawEmpty drawEmpty, ReorderableListFlags flags ) : void | ||
adaptor | IReorderableListAdaptor | Reorderable list adaptor. |
drawEmpty | DrawEmpty | Delegate for drawing empty list. |
flags | ReorderableListFlags | Optional flags to pass into list field. |
Résultat | void |
public static DrawControlFromState ( |
||
position | Position of control. | |
adaptor | IReorderableListAdaptor | Reorderable list adaptor. |
drawEmpty | DrawEmptyAbsolute | Delegate for drawing empty list. |
flags | ReorderableListFlags | Optional flags to pass into list field. |
Résultat | void |
protected DrawDropIndicator ( |
||
position | Position if the drop indicator. | |
Résultat | void |
protected DuplicateItem ( IReorderableListAdaptor adaptor, int itemIndex ) : void | ||
adaptor | IReorderableListAdaptor | Reorderable list adaptor. |
itemIndex | int | Zero-based index of item. |
Résultat | void |
protected HandleCommand ( string commandName, int itemIndex, IReorderableListAdaptor adaptor ) : bool | ||
commandName | string | Name of command. This is the text shown in the context menu. |
itemIndex | int | Zero-based index of item which was right-clicked. |
adaptor | IReorderableListAdaptor | Reorderable list adaptor. |
Résultat | bool |
protected InsertItem ( IReorderableListAdaptor adaptor, int itemIndex ) : void | ||
adaptor | IReorderableListAdaptor | Reorderable list adaptor. |
itemIndex | int | Zero-based index of item. |
Résultat | void |
protected MoveItem ( IReorderableListAdaptor adaptor, int sourceIndex, int destIndex ) : void | ||
adaptor | IReorderableListAdaptor | Reorderable list adaptor. |
sourceIndex | int | Zero-based index of source item. |
destIndex | int | Zero-based index of destination index. |
Résultat | void |
protected OnAddMenuClicked ( |
||
args | Event arguments. | |
Résultat | void |
protected OnItemInserted ( |
||
args | Event arguments. | |
Résultat | void |
protected OnItemMoved ( |
||
args | Event arguments. | |
Résultat | void |
protected OnItemMoving ( |
||
args | Event arguments. | |
Résultat | void |
protected OnItemRemoving ( |
||
args | Event arguments. | |
Résultat | void |
protected RemoveItem ( IReorderableListAdaptor adaptor, int itemIndex ) : bool | ||
adaptor | IReorderableListAdaptor | Reorderable list adaptor. |
itemIndex | int | Zero-based index of item. |
Résultat | bool |
public ReorderableListControl ( ReorderableListFlags flags ) : System.Collections.Generic | ||
flags | ReorderableListFlags | Optional flags which affect behavior of control. |
Résultat | System.Collections.Generic |
public static Color,UnityEngine AnchorBackgroundColor | ||
Résultat |
protected static GUIContent,UnityEngine CommandClearAll | ||
Résultat |
protected static GUIContent,UnityEngine CommandDuplicate | ||
Résultat |
protected static GUIContent,UnityEngine CommandInsertAbove | ||
Résultat |
protected static GUIContent,UnityEngine CommandInsertBelow | ||
Résultat |
protected static GUIContent,UnityEngine CommandMoveToBottom | ||
Résultat |
protected static GUIContent,UnityEngine CommandMoveToTop | ||
Résultat |
protected static GUIContent,UnityEngine CommandRemove | ||
Résultat |
protected static GenericMenu.MenuFunction2 DefaultContextHandler | ||
Résultat | GenericMenu.MenuFunction2 |