C# Class Protogame.TreeView

Inheritance: IContainer
Afficher le fichier Open project: RedpointGames/Protogame Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
BackfillParentsForItem ( TreeEntry root, TreeItem item ) : void
FindParentForItem ( TreeEntry current, TreeItem item ) : TreeEntry

Method Details

AddChild() public méthode

public AddChild ( TreeItem item ) : void
item TreeItem
Résultat void

BuildEntryGraph() public méthode

public BuildEntryGraph ( Rectangle layout ) : TreeEntry
layout Microsoft.Xna.Framework.Rectangle
Résultat TreeEntry

GetChildrenWithLayouts() public méthode

public GetChildrenWithLayouts ( ISkinLayout skin, Rectangle layout ) : IEnumerable
skin ISkinLayout
layout Microsoft.Xna.Framework.Rectangle
Résultat IEnumerable

HandleEvent() public méthode

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

NormalizeTree() public méthode

public NormalizeTree ( TreeEntry tree, bool exclude ) : List
tree TreeEntry
exclude bool
Résultat List

RemoveAllChildren() public méthode

public RemoveAllChildren ( ) : void
Résultat void

RemoveChild() public méthode

public RemoveChild ( TreeItem item ) : void
item TreeItem
Résultat void

Render() public méthode

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

Update() public méthode

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
Résultat void