Class Region | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Represents a region composed of one or more rectangles, providing methods for geometric set operations such as union, intersection, exclusion, and complement. This class is designed for use in graphical or terminal-based user interfaces where regions need to be manipulated to manage screen areas, clipping, or drawing boundaries.
Inheritance
Region
Inherited Members
Constructors
Initializes a new instance of the Region class.
Initializes a new instance of the Region class with the specified rectangle.
Methods
Creates an exact copy of the region.
Combines rectangle
with the region using the specified operation.
Combines region
with the region using the specified operation.
Updates the region to be the complement of itself within the specified bounds.
Determines whether the specified rectangle is contained within the region.
Determines whether the specified point is contained within the region.
DrawBoundaries(LineCanvas, LineStyle, Attribute?)
Draws the boundaries of all rectangles in the region using the specified attributes, only if the rectangle is big enough.
DrawOuterBoundary(LineCanvas, LineStyle, Attribute?)
Draws the outer perimeter of the region to lineCanvas
using style
andattribute
. The outer perimeter follows the shape of the rectangles in the region, even if non-rectangular, by drawing boundaries and excluding internal lines.
Determines whether the specified object is equal to this region.
Determines whether the specified region is equal to this region.
Removes the specified rectangle from the region.
Removes the portion of the specified region from this region.
FillRectangles(Attribute, Rune?)
Fills the interior of all rectangles in the region with the specified attribute and fill rune.
Gets a bounding rectangle for the entire region.
Returns a hash code for this region.
Returns an array of rectangles that represent the region.
Updates the region to be the intersection of itself with the specified rectangle.
Updates the region to be the intersection of itself with the specified region.
Determines whether the region is empty.
Adds the specified rectangle to the region. Merges all rectangles into the smallest possible bounding shape.
Adds the specified region to this region. Merges all rectangles into the smallest possible bounding shape.
Translates all rectangles in the region by the specified offsets.
Adds the specified rectangle to the region. Merges all rectangles into a minimal or granular bounding shape.
Adds the specified region to this region. Merges all rectangles into a minimal or granular bounding shape.