Table of Contents

Class VisibleRegions

Namespace
SharpConsoleUI
Assembly
SharpConsoleUI.dll

Calculates visible regions of windows by subtracting overlapping areas from higher z-order windows. Used by the rendering system to determine which portions of a window need to be drawn.

public class VisibleRegions
Inheritance
VisibleRegions
Inherited Members

Constructors

VisibleRegions(ConsoleWindowSystem)

Initializes a new instance of the VisibleRegions class.

public VisibleRegions(ConsoleWindowSystem consoleWindowSystem)

Parameters

consoleWindowSystem ConsoleWindowSystem

The console window system that owns this visible regions calculator.

Methods

CalculateVisibleRegions(Window, List<Window>)

Calculates the visible regions of a window by subtracting areas covered by overlapping windows.

public List<Rectangle> CalculateVisibleRegions(Window window, List<Window> overlappingWindows)

Parameters

window Window

The window to calculate visible regions for.

overlappingWindows List<Window>

List of windows that overlap with the target window (typically higher z-order).

Returns

List<Rectangle>

A list of rectangles representing the visible portions of the window.