Beamable SDK
All Classes Namespaces Functions Variables Properties Events
Public Member Functions | Public Attributes | Protected Member Functions | Properties | Events | List of all members
Beamable.Editor.Content.Components.TreeViewIMGUI Class Reference

Adds a Beamable-friendly API on top of the existing Unity IMGUI TreeView. More...

Inheritance diagram for Beamable.Editor.Content.Components.TreeViewIMGUI:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Editor.Content.Components.TreeViewIMGUI:
Collaboration graph
[legend]

Public Member Functions

float GetCalculatedHeight ()
 Here is the dynamically calculated height of the TreeViewIMGUI. THis works great. May be redundant to existing public api. More...
 
 TreeViewIMGUI (TreeViewState treeViewState)
 
void ClearSelection ()
 Set the selection to null and refresh the layout More...
 
void SetSelectionSafe (List< int > selectedIds)
 Set the selection without invok More...
 

Public Attributes

float RowHeight => rowHeight
 
float Height => totalHeight
 

Protected Member Functions

override TreeViewItem BuildRoot ()
 Build the initial rendering structures the TreeView without null-refs More...
 
override void ContextClicked ()
 
override bool CanMultiSelect (TreeViewItem item)
 
override void SelectionChanged (IList< int > selectedIds)
 

Properties

SelectionType SelectionType [get, set]
 
List< TreeViewItem > TreeViewItems [get, set]
 The displayed content items used in the content of the TreeView More...
 
TreeViewItem TreeViewItemRoot [get, set]
 The non-displayed root content item of the TreeView More...
 
List< TreeViewItem > MainSelectionBranch [get]
 

Events

Action< IList< TreeViewItem > > OnSelectionChanged
 Invoked when the single-selection or multiselection changes More...
 
Action< IList< TreeViewItem > > OnSelectedBranchChanged
 Invoked when the single-selection or multiselection changes. Conains full list of item and parents. More...
 
Action OnContextClicked
 Invoked when the TreeViewIMGUI background is clicked. More...
 

Detailed Description

Adds a Beamable-friendly API on top of the existing Unity IMGUI TreeView.

Member Function Documentation

◆ BuildRoot()

override TreeViewItem Beamable.Editor.Content.Components.TreeViewIMGUI.BuildRoot ( )
inlineprotected

Build the initial rendering structures the TreeView without null-refs

◆ ClearSelection()

void Beamable.Editor.Content.Components.TreeViewIMGUI.ClearSelection ( )
inline

Set the selection to null and refresh the layout

◆ GetCalculatedHeight()

float Beamable.Editor.Content.Components.TreeViewIMGUI.GetCalculatedHeight ( )
inline

Here is the dynamically calculated height of the TreeViewIMGUI. THis works great. May be redundant to existing public api.

Returns

◆ SetSelectionSafe()

void Beamable.Editor.Content.Components.TreeViewIMGUI.SetSelectionSafe ( List< int >  selectedIds)
inline

Set the selection without invok

Property Documentation

◆ TreeViewItemRoot

TreeViewItem Beamable.Editor.Content.Components.TreeViewIMGUI.TreeViewItemRoot
getset

The non-displayed root content item of the TreeView

◆ TreeViewItems

List<TreeViewItem> Beamable.Editor.Content.Components.TreeViewIMGUI.TreeViewItems
getset

The displayed content items used in the content of the TreeView

Event Documentation

◆ OnContextClicked

Action Beamable.Editor.Content.Components.TreeViewIMGUI.OnContextClicked

Invoked when the TreeViewIMGUI background is clicked.

◆ OnSelectedBranchChanged

Action<IList<TreeViewItem> > Beamable.Editor.Content.Components.TreeViewIMGUI.OnSelectedBranchChanged

Invoked when the single-selection or multiselection changes. Conains full list of item and parents.

◆ OnSelectionChanged

Action<IList<TreeViewItem> > Beamable.Editor.Content.Components.TreeViewIMGUI.OnSelectionChanged

Invoked when the single-selection or multiselection changes


The documentation for this class was generated from the following file: