C# Class OpenTkEngine.Core.Gui.Control

Mostrar archivo Open project: jikoriko/OpentkEngine Class Usage Examples

Protected Properties

Property Type Description
_backgroundColor Color4
_body Rectangle
_borderColor Color4
_borderRadius int
_borderThickness int
_parent Panel
_pressed bool
_state State
_texture Texture
_zDepth int

Public Methods

Method Description
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

Private Methods

Method Description
Bottom ( ) : int
Right ( ) : int

Method Details

Control() public method

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
return System

Disable() public method

public Disable ( ) : void
return void

Enable() public method

public Enable ( ) : void
return void

GetBodyRect() public method

public GetBodyRect ( ) : Rectangle
return Rectangle

GetContentRect() public method

public GetContentRect ( ) : Rectangle
return Rectangle

GetHeight() public method

public GetHeight ( ) : int
return int

GetMargin() public method

public GetMargin ( ) : int
return int

GetParent() public method

public GetParent ( ) : Panel
return Panel

GetRelativeX() public method

public GetRelativeX ( ) : int
return int

GetRelativeY() public method

public GetRelativeY ( ) : int
return int

GetWidth() public method

public GetWidth ( ) : int
return int

IsDisabled() public method

public IsDisabled ( ) : bool
return bool

IsTriggered() public method

public IsTriggered ( ) : bool
return bool

OnRelease() public method

public OnRelease ( ) : void
return void

OnTrigger() public method

public OnTrigger ( ) : void
return void

Render() public method

public Render ( ) : void
return void

RenderContent() public method

public RenderContent ( ) : void
return void

Resize() public method

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

Selectable() public method

public Selectable ( ) : bool
return bool

SetBackgroundColor() public method

public SetBackgroundColor ( Color4 color ) : void
color Color4
return void

SetBorderRadius() public method

public SetBorderRadius ( int radius ) : void
radius int
return void

SetParent() public method

public SetParent ( Panel parent ) : void
parent Panel
return void

Update() public method

public Update ( ) : void
return void

Property Details

_backgroundColor protected_oe property

protected Color4 _backgroundColor
return Color4

_body protected_oe property

protected Rectangle _body
return Rectangle

_borderColor protected_oe property

protected Color4 _borderColor
return Color4

_borderRadius protected_oe property

protected int _borderRadius
return int

_borderThickness protected_oe property

protected int _borderThickness
return int

_parent protected_oe property

protected Panel,OpenTkEngine.Core.Gui _parent
return Panel

_pressed protected_oe property

protected bool _pressed
return bool

_state protected_oe property

protected State _state
return State

_texture protected_oe property

protected Texture _texture
return Texture

_zDepth protected_oe property

protected int _zDepth
return int