Class Button
Assembly: Genesis.dll
public class Button : Widget
Constructors
Declaration
public Button(string name, Vec3 location, Vec3 size, string text, Font font, WidgetAnchor anchor)
Parameters
Properties
Declaration
public Color BorderColor { get; set; }
Property Value
Declaration
public Color ButtonColor { get; set; }
Property Value
Declaration
public Font Font { get; set; }
Property Value
Declaration
public float FontSize { get; set; }
Property Value
Declaration
public float FontSpacing { get; set; }
Property Value
Declaration
public Color ForeColor { get; set; }
Property Value
Declaration
public Color HoverColor { get; set; }
Property Value
Text
Declaration
public string Text { get; set; }
Property Value
Methods
Declaration
public override void OnRender(Game game, IRenderDevice renderDevice, Scene scene, Canvas canvas)
Parameters
Type |
Name |
Description |
Game |
game |
The game instance.
|
IRenderDevice |
renderDevice |
The render device used for rendering.
|
Scene |
scene |
The current scene.
|
Canvas |
canvas |
The canvas used for rendering.
|
Overrides