← All compilation units

Flyology_TUI.Surfaces

Description

Cell

type Cell is record
   Glyph        : Text.Unbounded_Wide_Wide_String :=
     Text.To_Unbounded_Wide_Wide_String (" ");
   Appearance   : Flyology_TUI.Styles.Style := Flyology_TUI.Styles.Default;
   Continuation : Boolean := False;
end record;
Record fields
Glyph
Appearance
Continuation

Clear

procedure Clear
  (Item : in out Surface;
   Fill : Flyology_TUI.Styles.Style := Flyology_TUI.Styles.Default)
Parameters
Item
Fill

Create

function Create
  (Width, Height : Natural;
   Fill          : Flyology_TUI.Styles.Style := Flyology_TUI.Styles.Default)
   return Surface
Parameters
Width
Height
Fill
Return value

Element

function Element (Item : Surface; X, Y : Natural) return Cell
Parameters
Item
X
Y
Return value

From_Text

function From_Text
  (Content : Wide_Wide_String;
   Appearance : Flyology_TUI.Styles.Style := Flyology_TUI.Styles.Default)
   return Surface
Parameters
Content
Appearance
Return value

Height

function Height (Item : Surface) return Natural
Parameters
Item
Return value

Inherit_Colors

function Inherit_Colors
  (Item   : Surface;
   Parent : Flyology_TUI.Styles.Style) return Surface

Return a copy whose unset foreground/background channels inherit from Parent. Explicit child colors, attributes, glyphs, and continuations are preserved.

Parameters
Item
Parent
Return value

Overlay

procedure Overlay
  (Target             : in out Surface;
   Source             : Surface;
   X, Y               : Natural;
   Transparent_Spaces : Boolean := False)
Parameters
Target
Source
X
Y
Transparent_Spaces

Overlay_Clipped

procedure Overlay_Clipped
  (Target             : in out Surface;
   Source             : Surface;
   X, Y               : Integer;
   Transparent_Spaces : Boolean := False)

Overlay at a signed origin. Partially clipped wide glyphs become styled blanks in their visible cells, never orphan continuation cells.

Parameters
Target
Source
X
Y
Transparent_Spaces

Put

procedure Put
  (Item       : in out Surface;
   X, Y       : Natural;
   Glyph      : Wide_Wide_String;
   Appearance : Flyology_TUI.Styles.Style := Flyology_TUI.Styles.Default)
Parameters
Item
X
Y
Glyph
Appearance

Surface

type Surface is tagged private;

Width

function Width (Item : Surface) return Natural
Parameters
Item
Return value

Write

procedure Write
  (Item       : in out Surface;
   X, Y       : Natural;
   Content    : Wide_Wide_String;
   Appearance : Flyology_TUI.Styles.Style := Flyology_TUI.Styles.Default)
Parameters
Item
X
Y
Content
Appearance