Class TuiFramedCheckBox
- Namespace
- AshConsoleGraphics.Interactive
- Assembly
- AshConsoleGraphics.dll
Checkbox (on/off) with a frame
public class TuiFramedCheckBox : TuiCheckBox
- Inheritance
-
TuiFramedCheckBox
- Inherited Members
Constructors
TuiFramedCheckBox(char, char, bool, Placement, int, int, CharFormat?, CharFormat?, CharFormat?)
Initializes a new framed checkbox with defaut frame chars and the same colors when selected and not selected
public TuiFramedCheckBox(char u, char c, bool b, Placement p, int x, int y, CharFormat? ff = null, CharFormat? cf = null, CharFormat? pf = null)
Parameters
u
charUnchecked char
c
charChecked char
b
boolIf the checkbox is initially checked or not
p
Placementx
inty
intff
CharFormatFrame format
cf
CharFormatCheck format
pf
CharFormatSelector format
TuiFramedCheckBox(char, char, bool, Placement, int, int, CharFormat?, CharFormat?, CharFormat?, CharFormat?, CharFormat?)
Initializes a new framed checkbox with default frame chars ('┌┐└┘──││')
public TuiFramedCheckBox(char u, char c, bool b, Placement p, int x, int y, CharFormat? ff, CharFormat? sff, CharFormat? cf, CharFormat? scf, CharFormat? pf)
Parameters
u
charUnchecked char
c
charChecked char
b
boolIf the checkbox is initially checked or not
p
Placementx
inty
intff
CharFormatNot selected frame format
sff
CharFormatSelected frame format
cf
CharFormatNot selected check format
scf
CharFormatSelected check format
pf
CharFormatSelector format
TuiFramedCheckBox(string, char, char, bool, Placement, int, int, CharFormat?, CharFormat?, CharFormat?)
Initializes a new framed checkbox with the same colors when selected and not selected
public TuiFramedCheckBox(string chars, char u, char c, bool b, Placement p, int x, int y, CharFormat? ff = null, CharFormat? cf = null, CharFormat? pf = null)
Parameters
chars
stringFrame charchters
u
charUnchecked char
c
charChecked char
b
boolIf the checkbox is initially checked or not
p
Placementx
inty
intff
CharFormatFrame format
cf
CharFormatCheck format
pf
CharFormatSelector format
TuiFramedCheckBox(string, char, char, bool, Placement, int, int, CharFormat?, CharFormat?, CharFormat?, CharFormat?, CharFormat?)
Initializes a new framed checkbox
public TuiFramedCheckBox(string chars, char u, char c, bool b, Placement p, int x, int y, CharFormat? ff, CharFormat? sff, CharFormat? cf, CharFormat? scf, CharFormat? pf)
Parameters
chars
stringFrame charchters
u
charUnchecked char
c
charChecked char
b
boolIf the checkbox is initially checked or not
p
Placementx
inty
intff
CharFormatNot selected frame format
sff
CharFormatSelected frame format
cf
CharFormatNot selected check format
scf
CharFormatSelected check format
pf
CharFormatSelector format
Properties
FrameChars
Frame charachters. An example would be '┌┐└┘──││'
public char[] FrameChars { get; set; }
Property Value
- char[]
FrameFormat
Not selected frame charachter format
public CharFormat? FrameFormat { get; set; }
Property Value
SelectedFrameFormat
Selected frame charachter format
public CharFormat? SelectedFrameFormat { get; set; }
Property Value
Methods
BufferNeedsToBeGenerated()
In most cases, the base implementation is enough
protected override bool BufferNeedsToBeGenerated()
Returns
GenerateBuffer()
The method that generates the element's buffer
protected override Buffer GenerateBuffer()