Glyphs class
Namespace: Arlecchino.Rendering.Text · Assembly: Arlecchino.Core
The symbols in use, reachable from anywhere that draws, the way Theme is. It is written on the drawing thread and asks for a frame itself, so every graph follows on the next one.
public static class Glyphs
Properties
| Member | Summary |
|---|---|
CellHeight | How many pixels tall a cell is taken to be. See Glyphs.CellWidth. |
CellWidth | How many pixels wide a cell is taken to be, which only ImageProtocol.Sixel needs. TerminalProbe.Ask sets it, and ten by twenty is the guess for a silent terminal. |
Graph | What graphs are drawn with when a widget does not say otherwise. |
Picture | How pictures reach the terminal when a widget does not say otherwise, which is ImageProtocol.Auto by default. A terminal that cannot speak a named protocol shows the escape sequence as text. |
Properties in detail
CellHeight
public static int CellHeight { get; set; }
How many pixels tall a cell is taken to be. See Glyphs.CellWidth.
Type int
Exceptions
| Type | Thrown when |
|---|---|
InvalidOperationException | Assigned from off the drawing thread. |
CellWidth
public static int CellWidth { get; set; }
How many pixels wide a cell is taken to be, which only ImageProtocol.Sixel needs. TerminalProbe.Ask sets it, and ten by twenty is the guess for a silent terminal.
Type int
Exceptions
| Type | Thrown when |
|---|---|
InvalidOperationException | Assigned from off the drawing thread. |
Graph
public static GraphSymbols Graph { get; set; }
What graphs are drawn with when a widget does not say otherwise.
Type GraphSymbols
Exceptions
| Type | Thrown when |
|---|---|
InvalidOperationException | Assigned from off the drawing thread. |
Picture
public static ImageProtocol Picture { get; set; }
How pictures reach the terminal when a widget does not say otherwise, which is ImageProtocol.Auto by default. A terminal that cannot speak a named protocol shows the escape sequence as text.
Type ImageProtocol
Exceptions
| Type | Thrown when |
|---|---|
InvalidOperationException | Assigned from off the drawing thread. |