C# Class Beyond_Beyaan.BBStretchButton

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

Protected Properties

Property Type Description
_alignment ButtonTextAlignment
_backgroundImage BBStretchableImage
_direction bool
_doubleClicked bool
_foregroundImage BBStretchableImage
_height int
_label BBLabel
_pressed bool
_pulse float
_timeSinceClick float
_width int
_xPos int
_yPos int

Public Methods

Method Description
Draw ( ) : void
DrawToolTip ( ) : void
Initialize ( string buttonText, ButtonTextAlignment alignment, StretchableImageType background, StretchableImageType foreground, int xPos, int yPos, int width, int height, 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
SetText ( string text ) : void
SetTextColor ( Color color, Color outline ) : void
SetToolTip ( string name, string text, int screenWidth, int screenHeight, Random r, string &reason ) : bool
SetToolTipText ( string text ) : void

Method Details

Draw() public method

public Draw ( ) : void
return void

DrawToolTip() public method

public DrawToolTip ( ) : void
return void

Initialize() public method

public Initialize ( string buttonText, ButtonTextAlignment alignment, StretchableImageType background, StretchableImageType foreground, int xPos, int yPos, int width, int height, Random r, string &reason ) : bool
buttonText string
alignment ButtonTextAlignment
background StretchableImageType
foreground StretchableImageType
xPos int
yPos int
width int
height 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

SetText() public method

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

SetTextColor() public method

public SetTextColor ( Color color, Color outline ) : void
color Color
outline Color
return void

SetToolTip() public method

public SetToolTip ( string name, string text, int screenWidth, int screenHeight, Random r, string &reason ) : bool
name string
text string
screenWidth int
screenHeight int
r System.Random
reason string
return bool

SetToolTipText() public method

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

Property Details

_alignment protected_oe property

protected ButtonTextAlignment _alignment
return ButtonTextAlignment

_backgroundImage protected_oe property

protected BBStretchableImage,Beyond_Beyaan _backgroundImage
return BBStretchableImage

_direction protected_oe property

protected bool _direction
return bool

_doubleClicked protected_oe property

protected bool _doubleClicked
return bool

_foregroundImage protected_oe property

protected BBStretchableImage,Beyond_Beyaan _foregroundImage
return BBStretchableImage

_height protected_oe property

protected int _height
return int

_label protected_oe property

protected BBLabel,Beyond_Beyaan _label
return BBLabel

_pressed protected_oe property

protected bool _pressed
return bool

_pulse protected_oe property

protected float _pulse
return float

_timeSinceClick protected_oe property

protected float _timeSinceClick
return float

_width protected_oe property

protected int _width
return int

_xPos protected_oe property

protected int _xPos
return int

_yPos protected_oe property

protected int _yPos
return int