C# Class Beyond_Beyaan.BBStretchButton

Afficher le fichier Open project: Beyonders/Beyond-Beyaan Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 méthode

public Draw ( ) : void
Résultat void

DrawToolTip() public méthode

public DrawToolTip ( ) : void
Résultat void

Initialize() public méthode

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
Résultat bool

MouseDown() public méthode

public MouseDown ( int x, int y ) : bool
x int
y int
Résultat bool

MouseHover() public méthode

public MouseHover ( int x, int y, float frameDeltaTime ) : bool
x int
y int
frameDeltaTime float
Résultat bool

MouseUp() public méthode

public MouseUp ( int x, int y ) : bool
x int
y int
Résultat bool

MoveTo() public méthode

public MoveTo ( int x, int y ) : void
x int
y int
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

ResizeButton() public méthode

public ResizeButton ( int width, int height ) : void
width int
height int
Résultat void

SetText() public méthode

public SetText ( string text ) : void
text string
Résultat void

SetTextColor() public méthode

public SetTextColor ( Color color, Color outline ) : void
color Color
outline Color
Résultat void

SetToolTip() public méthode

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
Résultat bool

SetToolTipText() public méthode

public SetToolTipText ( string text ) : void
text string
Résultat void

Property Details

_alignment protected_oe property

protected ButtonTextAlignment _alignment
Résultat ButtonTextAlignment

_backgroundImage protected_oe property

protected BBStretchableImage,Beyond_Beyaan _backgroundImage
Résultat BBStretchableImage

_direction protected_oe property

protected bool _direction
Résultat bool

_doubleClicked protected_oe property

protected bool _doubleClicked
Résultat bool

_foregroundImage protected_oe property

protected BBStretchableImage,Beyond_Beyaan _foregroundImage
Résultat BBStretchableImage

_height protected_oe property

protected int _height
Résultat int

_label protected_oe property

protected BBLabel,Beyond_Beyaan _label
Résultat BBLabel

_pressed protected_oe property

protected bool _pressed
Résultat bool

_pulse protected_oe property

protected float _pulse
Résultat float

_timeSinceClick protected_oe property

protected float _timeSinceClick
Résultat float

_width protected_oe property

protected int _width
Résultat int

_xPos protected_oe property

protected int _xPos
Résultat int

_yPos protected_oe property

protected int _yPos
Résultat int