C# Класс OpenTkEngine.Core.Gui.Control

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

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

Свойство Тип Описание
_backgroundColor Color4
_body Rectangle
_borderColor Color4
_borderRadius int
_borderThickness int
_parent Panel
_pressed bool
_state State
_texture Texture
_zDepth int

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

Метод Описание
Control ( int x, int y, int z, int width, int height, State state ) : System
Disable ( ) : void
Enable ( ) : void
GetBodyRect ( ) : Rectangle
GetContentRect ( ) : Rectangle
GetHeight ( ) : int
GetMargin ( ) : int
GetParent ( ) : Panel
GetRelativeX ( ) : int
GetRelativeY ( ) : int
GetWidth ( ) : int
IsDisabled ( ) : bool
IsTriggered ( ) : bool
OnRelease ( ) : void
OnTrigger ( ) : void
Render ( ) : void
RenderContent ( ) : void
Resize ( int width, int height ) : void
Selectable ( ) : bool
SetBackgroundColor ( Color4 color ) : void
SetBorderRadius ( int radius ) : void
SetParent ( Panel parent ) : void
Update ( ) : void

Приватные методы

Метод Описание
Bottom ( ) : int
Right ( ) : int

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

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

public Control ( int x, int y, int z, int width, int height, State state ) : System
x int
y int
z int
width int
height int
state State
Результат System

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

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

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

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

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

public GetBodyRect ( ) : Rectangle
Результат Rectangle

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

public GetContentRect ( ) : Rectangle
Результат Rectangle

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

public GetHeight ( ) : int
Результат int

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

public GetMargin ( ) : int
Результат int

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

public GetParent ( ) : Panel
Результат Panel

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

public GetRelativeX ( ) : int
Результат int

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

public GetRelativeY ( ) : int
Результат int

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

public GetWidth ( ) : int
Результат int

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

public IsDisabled ( ) : bool
Результат bool

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

public IsTriggered ( ) : bool
Результат bool

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

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

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

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

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

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

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

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

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

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

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

public Selectable ( ) : bool
Результат bool

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

public SetBackgroundColor ( Color4 color ) : void
color Color4
Результат void

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

public SetBorderRadius ( int radius ) : void
radius int
Результат void

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

public SetParent ( Panel parent ) : void
parent Panel
Результат void

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

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

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

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

protected Color4 _backgroundColor
Результат Color4

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

protected Rectangle _body
Результат Rectangle

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

protected Color4 _borderColor
Результат Color4

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

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

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

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

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

protected Panel,OpenTkEngine.Core.Gui _parent
Результат Panel

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

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

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

protected State _state
Результат State

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

protected Texture _texture
Результат Texture

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

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