build Constructors 1

functions Methods 35

AddRow (height, depth, hasChildren, isOpen)
Append a row during Sandbox.UI.BaseTreeView.BuildRows.
BeginRename (row)
Start renaming a row's label in place, scrolling it into view first if needed.
BindRow (row, panel)
Fill a pooled row panel with the item at this row.
BuildRows ()
Walk the data and call Sandbox.UI.BaseTreeView.AddRow(System.Single,System.Int32,System.Boolean,System.Boolean) for every reachable row, in order.
CanRenameRow (row)
bool
CheckForChanges ()
Cheap per-tick check for data that changed underneath us. Set Sandbox.UI.BaseTreeView.NeedsRebuild if so.
ClearSelection ()
Drop the selection, keeping the cursor.
ClearSelectionInternal ()
FinalLayoutChildren (offset)
GetParentRow (row)
int
The nearest row above with one less depth, or -1 for a root.
GetRow (row)
RowLayout
Layout of a row.
GetRowDepth (row)
int
Depth of a row, roots being zero.
GetRowPanel (row)
TreeRow
The bound panel for a row, or null if it isn't in the viewport.
GetSubtreeEnd (row)
int
One past the last row inside this row's subtree.
HighlightRow (row)
Flash a row so the eye finds it: the highlight class for Sandbox.UI.BaseTreeView.HighlightTime, then highlight-fade for Sandbox.UI.BaseTreeView.HighlightFadeTime.
IsRowSelected (row)
bool
MoveCursor (delta, range)
Move the cursor by some rows, selecting (or range-selecting with shift) where it lands.
OnButtonEvent (e)
OnClick (e)
OnDrop (e)
OnHotloaded ()
OnRowActivated (row)
OnRowContextMenu (row)
OnRowDropped (targetRow, sourceRow)
OnRowRenamed (row, text)
OnSelectionFinished ()
RebindRows ()
Re-run Sandbox.UI.BaseTreeView.BindRow(System.Int32,Sandbox.UI.TreeRow) on every bound row without rebuilding the row list.
Rebuild ()
Rebuild everything now instead of waiting for the next tick.
RefreshRowStates ()
Push selection and open state into every bound row.
ScrollToRow (row)
Scroll the least amount that brings this row fully into view.
SelectRow (row, toggle, range)
Select a row the way a click would: plain replaces, ctrl toggles, shift ranges from the anchor.
SetRowOpen (row, open, recursive)
SetRowSelected (row, selected)
Tick ()
ToggleRow (row, recursive)
Open or close a row. Shift-click on the expander does it recursively.

Inheritance

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