C# Class Beyond_Beyaan.BBUniStretchButton

Datei anzeigen Open project: Beyonders/Beyond-Beyaan Class Usage Examples

Public Methods

Method Description
Draw ( ) : void
Initialize ( List backgroundSections, List foregroundSections, bool isHorizontal, string buttonText, ButtonTextAlignment alignment, int xPos, int yPos, int width, int height, int fixedSize, int variableSize, Random r, string &reason ) : bool
MouseDown ( int x, int y ) : bool
MouseHover ( int x, int y, float frameDeltaTime ) : bool
MouseUp ( int x, int y ) : bool
MoveTo ( int x, int y ) : void
Reset ( ) : void
ResizeButton ( int width, int height ) : void
SetButtonText ( string text ) : void

Method Details

Draw() public method

public Draw ( ) : void
return void

Initialize() public method

public Initialize ( List backgroundSections, List foregroundSections, bool isHorizontal, string buttonText, ButtonTextAlignment alignment, int xPos, int yPos, int width, int height, int fixedSize, int variableSize, Random r, string &reason ) : bool
backgroundSections List
foregroundSections List
isHorizontal bool
buttonText string
alignment ButtonTextAlignment
xPos int
yPos int
width int
height int
fixedSize int
variableSize int
r System.Random
reason string
return bool

MouseDown() public method

public MouseDown ( int x, int y ) : bool
x int
y int
return bool

MouseHover() public method

public MouseHover ( int x, int y, float frameDeltaTime ) : bool
x int
y int
frameDeltaTime float
return bool

MouseUp() public method

public MouseUp ( int x, int y ) : bool
x int
y int
return bool

MoveTo() public method

public MoveTo ( int x, int y ) : void
x int
y int
return void

Reset() public method

public Reset ( ) : void
return void

ResizeButton() public method

public ResizeButton ( int width, int height ) : void
width int
height int
return void

SetButtonText() public method

public SetButtonText ( string text ) : void
text string
return void