C# Class Protogame.TreeView

Inheritance: IContainer
显示文件 Open project: RedpointGames/Protogame Class Usage Examples

Public Methods

Method Description
AddChild ( TreeItem item ) : void
BuildEntryGraph ( Rectangle layout ) : TreeEntry
GetChildrenWithLayouts ( ISkinLayout skin, Rectangle layout ) : IEnumerable
HandleEvent ( ISkinLayout skin, Rectangle layout, IGameContext context, Event @event ) : bool
NormalizeTree ( TreeEntry tree, bool exclude ) : List
RemoveAllChildren ( ) : void
RemoveChild ( TreeItem item ) : void
Render ( IRenderContext context, ISkinLayout skinLayout, ISkinDelegator skinDelegator, Rectangle layout ) : void
Update ( ISkinLayout skin, Rectangle layout, GameTime gameTime, bool &stealFocus ) : void

Private Methods

Method Description
BackfillParentsForItem ( TreeEntry root, TreeItem item ) : void
FindParentForItem ( TreeEntry current, TreeItem item ) : TreeEntry

Method Details

AddChild() public method

public AddChild ( TreeItem item ) : void
item TreeItem
return void

BuildEntryGraph() public method

public BuildEntryGraph ( Rectangle layout ) : TreeEntry
layout Microsoft.Xna.Framework.Rectangle
return TreeEntry

GetChildrenWithLayouts() public method

public GetChildrenWithLayouts ( ISkinLayout skin, Rectangle layout ) : IEnumerable
skin ISkinLayout
layout Microsoft.Xna.Framework.Rectangle
return IEnumerable

HandleEvent() public method

public HandleEvent ( ISkinLayout skin, Rectangle layout, IGameContext context, Event @event ) : bool
skin ISkinLayout
layout Microsoft.Xna.Framework.Rectangle
context IGameContext
@event Event
return bool

NormalizeTree() public method

public NormalizeTree ( TreeEntry tree, bool exclude ) : List
tree TreeEntry
exclude bool
return List

RemoveAllChildren() public method

public RemoveAllChildren ( ) : void
return void

RemoveChild() public method

public RemoveChild ( TreeItem item ) : void
item TreeItem
return void

Render() public method

public Render ( IRenderContext context, ISkinLayout skinLayout, ISkinDelegator skinDelegator, Rectangle layout ) : void
context IRenderContext
skinLayout ISkinLayout
skinDelegator ISkinDelegator
layout Microsoft.Xna.Framework.Rectangle
return void

Update() public method

public Update ( ISkinLayout skin, Rectangle layout, GameTime gameTime, bool &stealFocus ) : void
skin ISkinLayout
layout Microsoft.Xna.Framework.Rectangle
gameTime Microsoft.Xna.Framework.GameTime
stealFocus bool
return void