Class TuiScrollingScreenInteractive
- Namespace
- AshConsoleGraphics.Interactive
- Assembly
- AshConsoleGraphics.dll
Interactive screen that scrolls if items are out of bounds
public class TuiScrollingScreenInteractive : TuiScreenInteractive, IEnumerable<TuiElement>, IEnumerable
- Inheritance
-
TuiScrollingScreenInteractive
- Implements
- Inherited Members
Constructors
TuiScrollingScreenInteractive(int, int, TuiSelectable[,], uint, uint, Placement, int, int, CharFormat?, params TuiElement[])
Initializes a new interactive screen
public TuiScrollingScreenInteractive(int xs, int ys, TuiSelectable[,] sm, uint startX, uint startY, Placement p, int x, int y, CharFormat? f, params TuiElement[] e)
Parameters
xs
intThe x size
ys
intThe y size
sm
TuiSelectable[,]Selectable matrix
startX
uintStart X index in the selectable matrix
startY
uintStart Y index in the selectable matrix
p
Placementx
inty
intf
CharFormatThe default format
e
TuiElement[]Additional elements
TuiScrollingScreenInteractive(int, int, TuiSelectable[,], uint, uint, CharFormat?, params TuiElement[])
Initializes a new interactive screen
public TuiScrollingScreenInteractive(int xs, int ys, TuiSelectable[,] sm, uint startX, uint startY, CharFormat? f, params TuiElement[] e)
Parameters
xs
intThe x size
ys
intThe y size
sm
TuiSelectable[,]Selectable matrix
startX
uintStart X index in the selectable matrix
startY
uintStart Y index in the selectable matrix
f
CharFormatThe default format
e
TuiElement[]Additional elements
Properties
MatrixPointerX
X index of the selected element in the matrix
public override uint MatrixPointerX { get; set; }
Property Value
MatrixPointerY
Y index of the selected element in the matrix
public override uint MatrixPointerY { get; set; }
Property Value
ScrollX
public int ScrollX { get; }
Property Value
ScrollY
public int ScrollY { get; }
Property Value
Methods
GenerateBuffer()
The method that generates the element's buffer
protected override Buffer GenerateBuffer()