build Constructors 1

data_object Properties 29

BodyContextMenu
Action
Called when right clicking on the item's parent.
BodyDropTarget
DragDropTarget
What shall we do if they drag something in and it's not over an item?
CanvasRect
Rect
The inner of LocalRect with Margin
CurrentItemDragEvent
ItemDragEvent
DragDropTargetClosestThreshold
float
Gets or sets the maximum distance, in pixels, at which a target is considered close enough for drag-and-drop when in BodyDropTarget.Closest mode. operations.
ItemActivated
Action`1
Called when an item is double left clicked.
ItemClicked
Action`1
Called when an item is clicked.
ItemContextMenu
Action`1
Called when an item is right clicked.
ItemDeselected
Action`1
Called when an item is no longer selected.
ItemDrag
Func`2
Called to see whether or not we can drag a specific item.
ItemHoverEnter
Action`1
Called when an item is hovered by the user's cursor.
ItemHoverLeave
Action`1
Called when an item is no longer hovered by the user's cursor.
ItemPaint
Action`1
Used to overwrite an item's style
Items
IEnumerable`1
ItemsDeselected
obsoleteAction`1
Multiple items have been deselected
ItemSelected
Action`1
Called when an item is selected.
ItemsSelected
obsoleteAction`1
Multiple items have been selected
Margin
Margin
MultiSelect
bool
Whether to allow selecting multiple items at once.
OnBeforeDeselection
Action`1
Called before selection is changed on deselection. When multiple items are affected this will only be called once.
OnBeforeSelection
Action`1
Called before selection is changed on selection. When multiple items are affected this will only be called once.
OnSelectionChanged
Action`1
Called when selection has changed. When multiple items are affected this will only be called once.
ProvidesDebugMode
bool
SelectedItems
IEnumerable`1
Selected items.
Selection
SelectionSystem
SelectionOverride
Func`1
Can override an item's selection here.
TimeMsPaint
float
timeMsRebuild
float
ToggleSelect
bool
If set, selecting an item will not deselect all already selected items, clicking a selected item will deselect it.

functions Methods 57

AddItem (item)
T
Add given item to this widget.
AddItems (items)
Clear ()
Remove all items.
Dirty (dirtyObject)
FindItemsThatStartWith (text)
IEnumerable`1
FindVirtualWidget (obj)
VirtualWidget
Given an object, try to find the virtual widget. This can of course return null if the item isn't visible
GetAtIndex (i)
object
Returns the item at given index, or null.
GetDragItem (ev)
VirtualWidget
Get the virtual item to use as a drop target for a given drag event
GetItemAt (localPosition)
VirtualWidget
Get the virtual item at this local position.
GetTooltip (obj)
string
Called to retrieve a tooltip for given item.
IsSelected (obj)
bool
Return true if this item is selected.
ItemIndex (item)
int
Returns the index of given item.
OnBodyDragDrop (ev)
DropAction
Called when a drag drop is being dropped onto the canvas
OnDestroyed ()
OnDoubleClick (e)
OnDragDrop (ev)
OnDragHover (ev)
OnDragHoverItem (ev, item)
Called when a dragged item is being hovered over this widget. This is the place to make drag and drop previews.
OnDragItem (item)
bool
Called when we start to drag an item.
OnDragLeave ()
OnDragStart ()
OnDropOnItem (ev, item)
Called when an item is drag and dropped onto this widget.
OnHoverChanged (oldHover, newHover)
Hover has changed, neither of these objects are guaranteed to be non null.
OnItemActivated (item)
OnItemContextMenu (pressedItem, e)
The item has been right clicked
OnItemDrag (e)
DropAction
Called when a dragged item is being hovered over this widget. This is the place to make drag and drop previews.
OnItemPressed (pressedItem, e)
bool
Allows over-riding mouse press on an item, without click or selection. Return true to allow default behavior.
OnKeyPress (e)
OnKeyPressOnItem (e, item)
A key has been pressed on this selected item.
OnLayoutChanged ()
OnMouseMove (e)
OnMousePress (e)
OnMouseReleased (e)
OnPaint ()
OnResize ()
OnScrollChanged ()
OnSelectionAdded (item)
OnShortcutPressed (e)
PaintItem (item)
PaintItemDebug (item)
Rebuild ()
Rebuild the panel layout.
RemoveItem (item)
Remove given item from this widget.
ResolveObject (obj)
object
For derived classes where the object is wrapped in another class (i.e. TreeView)
ScrollTo (target)
Ensure that given item is in view, scrolling to it if necessary.
SelectAll (skipEvents)
SelectItem (obj, add, skipEvents)
Select given item.
SelectItems (items, add, skipEvents)
SelectItemStartingWith (text)
SelectMove (i)
bool
Move the selection pointer by this many positions.
SelectMoveColumn (positions)
bool
SelectMoveRow (positions)
bool
SelectTo (item, skipEvents)
Select everything between the current selection pointer and this one.
SetItems (items)
SetSelected (obj, state, skipEvents)
Set the selection state of an item.
UnselectAll (skipEvents)
Unselects all items that are currently selected (if any)
UnselectItem (obj, skipEvents)
Unselect given item.
UpdateIfDirty ()

Inheritance

people
Log in to reply
You can't reply if you're not logged in. That would be crazy.