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
xsintThe x size
ysintThe y size
smTuiSelectable[,]Selectable matrix
startXuintStart X index in the selectable matrix
startYuintStart Y index in the selectable matrix
pPlacementxintyintfCharFormatThe default format
eTuiElement[]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
xsintThe x size
ysintThe y size
smTuiSelectable[,]Selectable matrix
startXuintStart X index in the selectable matrix
startYuintStart Y index in the selectable matrix
fCharFormatThe default format
eTuiElement[]Additional elements
Properties
FixedElements
List of child elements that will not be affected by scroll
public ReactiveList<TuiElement> FixedElements { get; }
Property Value
- ReactiveList<TuiElement>
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; set; }
Property Value
ScrollY
public int ScrollY { get; set; }
Property Value
Methods
GenerateBuffer()
The method that generates the element's buffer
protected override Buffer GenerateBuffer()
Returns
ScrollDown(TuiScreenInteractive, ConsoleKeyInfo)
public static void ScrollDown(TuiScreenInteractive s, ConsoleKeyInfo ck)
Parameters
ScrollUp(TuiScreenInteractive, ConsoleKeyInfo)
public static void ScrollUp(TuiScreenInteractive s, ConsoleKeyInfo ck)