C# Class Knot3.Framework.Widgets.MenuItem

Inheritance: Widget, IKeyEventListener, IMouseClickEventListener, IMouseScrollEventListener
Afficher le fichier Open project: knot3/knot3-code Class Usage Examples

Méthodes publiques

Свойство Type Description
Hovered GameTime>.Action

Protected Properties

Свойство Type Description
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch

Méthodes publiques

Méthode Description
Collapse ( ) : void
MenuItem ( IScreen screen, DisplayLayer drawOrder, string text ) : System
OnKeyEvent ( List key, KeyEvent keyEvent, GameTime time ) : void

Reaktionen auf Tasteneingaben.

OnLeftClick ( Vector2 position, ClickState state, GameTime time ) : void

Reaktionen auf einen Linksklick.

OnRightClick ( Vector2 position, ClickState state, GameTime time ) : void

Reaktionen auf einen Rechtsklick.

OnScroll ( int scrollValue, GameTime time ) : void

Die Reaktion auf eine Bewegung des Mausrads.

SetHovered ( bool isHovered, GameTime time ) : void

Private Methods

Méthode Description
Draw ( GameTime time ) : void

Method Details

Collapse() public méthode

public Collapse ( ) : void
Résultat void

MenuItem() public méthode

public MenuItem ( IScreen screen, DisplayLayer drawOrder, string text ) : System
screen IScreen
drawOrder DisplayLayer
text string
Résultat System

OnKeyEvent() public méthode

Reaktionen auf Tasteneingaben.
public OnKeyEvent ( List key, KeyEvent keyEvent, GameTime time ) : void
key List
keyEvent KeyEvent
time Microsoft.Xna.Framework.GameTime
Résultat void

OnLeftClick() public méthode

Reaktionen auf einen Linksklick.
public OnLeftClick ( Vector2 position, ClickState state, GameTime time ) : void
position Vector2
state ClickState
time Microsoft.Xna.Framework.GameTime
Résultat void

OnRightClick() public méthode

Reaktionen auf einen Rechtsklick.
public OnRightClick ( Vector2 position, ClickState state, GameTime time ) : void
position Vector2
state ClickState
time Microsoft.Xna.Framework.GameTime
Résultat void

OnScroll() public méthode

Die Reaktion auf eine Bewegung des Mausrads.
public OnScroll ( int scrollValue, GameTime time ) : void
scrollValue int
time Microsoft.Xna.Framework.GameTime
Résultat void

SetHovered() public méthode

public SetHovered ( bool isHovered, GameTime time ) : void
isHovered bool
time Microsoft.Xna.Framework.GameTime
Résultat void

Property Details

Hovered public_oe property

public Action Hovered
Résultat GameTime>.Action

spriteBatch protected_oe property

protected SpriteBatch,Microsoft.Xna.Framework.Graphics spriteBatch
Résultat Microsoft.Xna.Framework.Graphics.SpriteBatch