C# Class Myre.UI.Controls.MultiButton

An abstract button control, where the button can have multiple values swichable by the user.
Inheritance: Myre.UI.Controls.Button
Datei anzeigen Open project: TomGillen/Myre

Public Methods

Method Description
MultiButton ( Control parent ) : System

Initializes a new instance of the MultiButton class.

Protected Methods

Method Description
OnSelectionChanged ( ) : void

Called when the selection changes.

Private Methods

Method Description
BindGestures ( ) : void

Binds the left and right buttons to next and previous.

NextOption ( IGesture gesture, GameTime time, IInputDevice device ) : void
PreviousOption ( IGesture gesture, GameTime time, IInputDevice device ) : void

Method Details

MultiButton() public method

Initializes a new instance of the MultiButton class.
public MultiButton ( Control parent ) : System
parent Control This controls parent control.
return System

OnSelectionChanged() protected method

Called when the selection changes.
protected OnSelectionChanged ( ) : void
return void