C# Класс Beyond_Beyaan.BBStretchButton

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_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

Открытые методы

Метод Описание
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

Описание методов

Draw() публичный Метод

public Draw ( ) : void
Результат void

DrawToolTip() публичный Метод

public DrawToolTip ( ) : void
Результат void

Initialize() публичный Метод

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
Результат bool

MouseDown() публичный Метод

public MouseDown ( int x, int y ) : bool
x int
y int
Результат bool

MouseHover() публичный Метод

public MouseHover ( int x, int y, float frameDeltaTime ) : bool
x int
y int
frameDeltaTime float
Результат bool

MouseUp() публичный Метод

public MouseUp ( int x, int y ) : bool
x int
y int
Результат bool

MoveTo() публичный Метод

public MoveTo ( int x, int y ) : void
x int
y int
Результат void

Reset() публичный Метод

public Reset ( ) : void
Результат void

ResizeButton() публичный Метод

public ResizeButton ( int width, int height ) : void
width int
height int
Результат void

SetText() публичный Метод

public SetText ( string text ) : void
text string
Результат void

SetTextColor() публичный Метод

public SetTextColor ( Color color, Color outline ) : void
color Color
outline Color
Результат void

SetToolTip() публичный Метод

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
Результат bool

SetToolTipText() публичный Метод

public SetToolTipText ( string text ) : void
text string
Результат void

Описание свойств

_alignment защищенное свойство

protected ButtonTextAlignment _alignment
Результат ButtonTextAlignment

_backgroundImage защищенное свойство

protected BBStretchableImage,Beyond_Beyaan _backgroundImage
Результат BBStretchableImage

_direction защищенное свойство

protected bool _direction
Результат bool

_doubleClicked защищенное свойство

protected bool _doubleClicked
Результат bool

_foregroundImage защищенное свойство

protected BBStretchableImage,Beyond_Beyaan _foregroundImage
Результат BBStretchableImage

_height защищенное свойство

protected int _height
Результат int

_label защищенное свойство

protected BBLabel,Beyond_Beyaan _label
Результат BBLabel

_pressed защищенное свойство

protected bool _pressed
Результат bool

_pulse защищенное свойство

protected float _pulse
Результат float

_timeSinceClick защищенное свойство

protected float _timeSinceClick
Результат float

_width защищенное свойство

protected int _width
Результат int

_xPos защищенное свойство

protected int _xPos
Результат int

_yPos защищенное свойство

protected int _yPos
Результат int