Class ButtonBuilder
- Namespace
- MiniTui
- Assembly
- MiniTui.dll
A button with a centered label.
public sealed class ButtonBuilder
- Inheritance
-
ButtonBuilder
- Inherited Members
Methods
Draw(Buffer, Rect)
Fill area with the button.
public void Draw(Buffer buf, Rect area)
Parameters
Focused(bool)
Use the focused style.
public ButtonBuilder Focused(bool focused = true)
Parameters
focusedbool
Returns
Hover(Vec2?)
public ButtonBuilder Hover(Vec2? position)
Parameters
positionVec2?
Returns
Label(string)
The label.
public ButtonBuilder Label(string label)
Parameters
labelstring
Returns
Pressed(bool)
Show the button pressed (the focused style, reversed).
public ButtonBuilder Pressed(bool pressed = true)
Parameters
pressedbool
Returns
Style(Style)
A style patched over the theme's button style.
public ButtonBuilder Style(Style style)
Parameters
styleStyle