C# Class Protogame.MenuItem

The menu item.
Inheritance: IContainer
Datei anzeigen Open project: RedpointGames/Protogame Class Usage Examples

Protected Properties

Property Type Description
Items List

Public Methods

Method Description
AddChild ( MenuItem item ) : void
GetActiveChildrenLayouts ( ISkinLayout skin, Rectangle layout ) : IEnumerable
GetMenuChildren ( ISkinLayout skin, Rectangle layout ) : Rectangle>>.IEnumerable
GetMenuListLayout ( ISkinLayout skin, Rectangle layout ) : Rectangle?
HandleEvent ( ISkinLayout skin, Rectangle layout, IGameContext context, Event @event ) : bool
MenuItem ( ) : System
Render ( IRenderContext context, ISkinLayout skinLayout, ISkinDelegator skinDelegator, Rectangle layout ) : void
Update ( ISkinLayout skin, Rectangle layout, GameTime gameTime, bool &stealFocus ) : void

Method Details

AddChild() public method

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

GetActiveChildrenLayouts() public method

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

GetMenuChildren() public method

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

GetMenuListLayout() public method

public GetMenuListLayout ( ISkinLayout skin, Rectangle layout ) : Rectangle?
skin ISkinLayout
layout Microsoft.Xna.Framework.Rectangle
return Rectangle?

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

MenuItem() public method

public MenuItem ( ) : System
return System

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

Property Details

Items protected_oe property

protected List Items
return List