Class TaskBarElement
- Namespace
- SharpConsoleUI.Panel
- Assembly
- SharpConsoleUI.dll
A panel element that displays a clickable list of windows (task bar). Subscribes to WindowStateService events for automatic updates.
public class TaskBarElement : PanelElement, IPanelElement
- Inheritance
-
TaskBarElement
- Implements
- Inherited Members
- Extension Methods
Constructors
TaskBarElement(string?)
Initializes a new TaskBarElement.
public TaskBarElement(string? name = null)
Parameters
namestringOptional element name. Defaults to "taskbar".
Properties
ActiveColor
Gets or sets the highlight color for the active window.
public Color? ActiveColor { get; set; }
Property Value
FlexGrow
Gets the flex grow factor. 0 = fixed sizing, >0 = flex proportional to other flex elements.
public override int FlexGrow { get; }
Property Value
InactiveColor
Gets or sets the color for inactive windows.
public Color? InactiveColor { get; set; }
Property Value
MinimizedDim
Gets or sets whether minimized windows are displayed with dimmed text.
public bool MinimizedDim { get; set; }
Property Value
ShowShortcutLabels
Gets or sets whether to show Alt-N keyboard shortcut labels next to window titles.
public bool ShowShortcutLabels { get; set; }
Property Value
Methods
ProcessMouseEvent(MouseEventArgs, int, int)
Processes a mouse event that occurred within this element's bounds.
public override bool ProcessMouseEvent(MouseEventArgs args, int elementX, int elementWidth)
Parameters
argsMouseEventArgsThe mouse event arguments.
elementXintThe x position of this element on screen.
elementWidthintThe allocated width of this element.
Returns
- bool
True if the event was handled.
Render(CharacterBuffer, int, int, int, Color, Color)
Renders the element into the character buffer at the specified position.
public override void Render(CharacterBuffer buffer, int x, int y, int width, Color fg, Color bg)