C# Class XNAInterfaceComponents.ParentComponents.XNASlider

Inheritance: XNAInterfaceComponents.AbstractComponents.ParentComponent, MouseMotionListener
ファイルを表示 Open project: Wotuu/RTS_XNA_v2

Private Properties

Property Type Description
UpdateSlider void

Public Methods

Method Description
Draw ( SpriteBatch sb ) : void
OnMouseDrag ( MouseEvent e ) : void
OnMouseEnter ( MouseEvent e ) : void
OnMouseExit ( MouseEvent e ) : void
OnMouseMotion ( MouseEvent e ) : void
OnTextFieldValueChanged ( ) : void
SetSliderButtonHeight ( int height ) : void

Sets the slider button height.

SetSliderButtonWidth ( int width ) : void
Unload ( ) : void
Update ( ) : void
UpdateValue ( ) : void

Updates the value of this slider, according to the slider position

XNASlider ( ParentComponent parent, Rectangle bounds ) : System

Private Methods

Method Description
UpdateSlider ( float value ) : void

Updates the slider position, according to given value.

Method Details

Draw() public method

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

OnMouseDrag() public method

public OnMouseDrag ( MouseEvent e ) : void
e MouseEvent
return void

OnMouseEnter() public method

public OnMouseEnter ( MouseEvent e ) : void
e MouseEvent
return void

OnMouseExit() public method

public OnMouseExit ( MouseEvent e ) : void
e MouseEvent
return void

OnMouseMotion() public method

public OnMouseMotion ( MouseEvent e ) : void
e MouseEvent
return void

OnTextFieldValueChanged() public method

public OnTextFieldValueChanged ( ) : void
return void

SetSliderButtonHeight() public method

Sets the slider button height.
public SetSliderButtonHeight ( int height ) : void
height int The new height
return void

SetSliderButtonWidth() public method

public SetSliderButtonWidth ( int width ) : void
width int
return void

Unload() public method

public Unload ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UpdateValue() public method

Updates the value of this slider, according to the slider position
public UpdateValue ( ) : void
return void

XNASlider() public method

public XNASlider ( ParentComponent parent, Rectangle bounds ) : System
parent XNAInterfaceComponents.AbstractComponents.ParentComponent
bounds Microsoft.Xna.Framework.Rectangle
return System