C# Class MonoGdx.Scene2D.UI.Tree

Inheritance: WidgetGroup
Datei anzeigen Open project: jaquadro/MonoGdx Class Usage Examples

Public Properties

Property Type Description
SelectionChangedEvent RoutedEvent

Public Methods

Method Description
Add ( TreeNode node ) : void
AddSelection ( TreeNode node ) : void
ClearChildren ( ) : void
ClearSelection ( ) : void
CollapseAll ( ) : void
Draw ( GdxSpriteBatch spriteBatch, float parentAlpha ) : void
ExpandAll ( ) : void
FindExpandedObjects ( IList objects ) : void
FindNode ( object obj ) : TreeNode
Insert ( int index, TreeNode node ) : void
Invalidate ( ) : void
Layout ( ) : void
NodeAt ( float y ) : TreeNode
Remove ( TreeNode node ) : void
RestoreExpandedObjects ( IList objects ) : void
SetSelection ( TreeNode node ) : void
Tree ( Skin skin ) : System
Tree ( Skin skin, string styleName ) : System
Tree ( TreeStyle style ) : System

Protected Methods

Method Description
OnMouseMove ( Microsoft.Xna.Framework.Input.MouseEventArgs e ) : void
OnSelectionChanged ( IList oldSelection, IList newSelection ) : void
OnTouchDown ( Microsoft.Xna.Framework.Input.TouchEventArgs e ) : void
OnTouchLeave ( Microsoft.Xna.Framework.Input.TouchEventArgs e ) : void

Private Methods

Method Description
CollapseAll ( List nodes ) : void
ComputeSize ( ) : void
ComputeSize ( List nodes, float indent ) : void
Draw ( GdxSpriteBatch spriteBatch, List nodes, float indent ) : void
ExpandAll ( List nodes ) : void
FindExpandedObjects ( List nodes, IList objects ) : bool
FindNode ( List nodes, object obj ) : TreeNode
Layout ( List nodes, float indent, float y ) : float
NodeAt ( List nodes, float y, float rowY ) : float
SelectNodes ( List nodes, float low, float high ) : void
SelectionChangeHandler ( List addedItems, List removedItems ) : void

Method Details

Add() public method

public Add ( TreeNode node ) : void
node TreeNode
return void

AddSelection() public method

public AddSelection ( TreeNode node ) : void
node TreeNode
return void

ClearChildren() public method

public ClearChildren ( ) : void
return void

ClearSelection() public method

public ClearSelection ( ) : void
return void

CollapseAll() public method

public CollapseAll ( ) : void
return void

Draw() public method

public Draw ( GdxSpriteBatch spriteBatch, float parentAlpha ) : void
spriteBatch MonoGdx.Graphics.G2D.GdxSpriteBatch
parentAlpha float
return void

ExpandAll() public method

public ExpandAll ( ) : void
return void

FindExpandedObjects() public method

public FindExpandedObjects ( IList objects ) : void
objects IList
return void

FindNode() public method

public FindNode ( object obj ) : TreeNode
obj object
return TreeNode

Insert() public method

public Insert ( int index, TreeNode node ) : void
index int
node TreeNode
return void

Invalidate() public method

public Invalidate ( ) : void
return void

Layout() public method

public Layout ( ) : void
return void

NodeAt() public method

public NodeAt ( float y ) : TreeNode
y float
return TreeNode

OnMouseMove() protected method

protected OnMouseMove ( Microsoft.Xna.Framework.Input.MouseEventArgs e ) : void
e Microsoft.Xna.Framework.Input.MouseEventArgs
return void

OnSelectionChanged() protected method

protected OnSelectionChanged ( IList oldSelection, IList newSelection ) : void
oldSelection IList
newSelection IList
return void

OnTouchDown() protected method

protected OnTouchDown ( Microsoft.Xna.Framework.Input.TouchEventArgs e ) : void
e Microsoft.Xna.Framework.Input.TouchEventArgs
return void

OnTouchLeave() protected method

protected OnTouchLeave ( Microsoft.Xna.Framework.Input.TouchEventArgs e ) : void
e Microsoft.Xna.Framework.Input.TouchEventArgs
return void

Remove() public method

public Remove ( TreeNode node ) : void
node TreeNode
return void

RestoreExpandedObjects() public method

public RestoreExpandedObjects ( IList objects ) : void
objects IList
return void

SetSelection() public method

public SetSelection ( TreeNode node ) : void
node TreeNode
return void

Tree() public method

public Tree ( Skin skin ) : System
skin Skin
return System

Tree() public method

public Tree ( Skin skin, string styleName ) : System
skin Skin
styleName string
return System

Tree() public method

public Tree ( TreeStyle style ) : System
style TreeStyle
return System

Property Details

SelectionChangedEvent public_oe static_oe property

public static RoutedEvent SelectionChangedEvent
return RoutedEvent