API Reference
IGlyphSet
Resolves semantic glyphs for one tier. Implement it for a custom set, or wrap a built-in one.
Usage
Explore 11 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Property RenderContext.Glyphs
Accepted by parameters 10
- Constructor RenderContext.RenderContext
- Method GlyphSetExtensions.Icon
- Method GlyphSetExtensions.StatusSymbol
- Extension method IGlyphSet.Icon
- Extension method IGlyphSet.StatusSymbol
- Method MenuItem.IconText
- Method TestRunText.FailureLine
- Method TestRunText.Path
- Method TestRunText.SummaryLine
- Method TestRunText.Totals
Methods
public abstract String Get(Glyph glyph) #StringReturns a semantic glyph.
Parameters
- glyph ConsoleMonster.Glyphs.Glyph
- The glyph name.
Returns
The text (may be wider than one cell, for example tree prefixes or ASCII ellipsis).
public abstract BoxGlyphs GetBox(BoxStyle style) #BoxGlyphsReturns border glyphs, falling back to a style the tier can show.
Parameters
- style ConsoleMonster.Glyphs.BoxStyle
- The requested style.
Returns
The border glyphs actually used.
public abstract String HorizontalFill(Int32 eighths) #StringA partial horizontal block for eighths of a cell (1-8), or empty when the tier cannot show it.
Parameters
- eighths System.Int32
- Filled eighths, 1-8.
Returns
The glyph, or an empty string.
public abstract String StatusMarker(StatusKind status) #StringThe marker shown for a status. Full and Basic return one symbol; Ascii returns a bracketed word such as [PASS] so status stays readable without colour.
Parameters
- status ConsoleMonster.Styling.StatusKind
- The status.
Returns
The marker text.
public abstract String VerticalFill(Int32 eighths) #StringA partial vertical block for eighths of a cell (1-8), or empty when the tier cannot show it.
Parameters
- eighths System.Int32
- Filled eighths, 1-8.
Returns
The glyph, or an empty string.
Properties
public abstract GlyphTier Tier { get; } #The tier this set targets.
public abstract Boolean SupportsBraille { get; } #Whether braille patterns (U+2800-U+28FF) render reliably.
public abstract Boolean SupportsHalfBlocks { get; } #Whether half blocks (▀▄) render reliably.
public abstract IReadOnlyList<String> SpinnerFrames { get; } #Spinner animation frames.
public abstract IReadOnlyList<String> VerticalRamp { get; } #Vertical levels from empty (index 0) to full (last index), used by sparklines.
Extension Methods
public static String Icon(IGlyphSet glyphs, GlyphIcon icon) #StringThe text of a semantic icon in the glyph set's tier (see GlyphIcon). Custom glyph sets resolve by their IGlyphSet.Tier; the status icons (Warning, Done) use the set's own symbols.
Parameters
- glyphs ConsoleMonster.Glyphs.IGlyphSet
- The glyph set.
- icon ConsoleMonster.Glyphs.GlyphIcon
- The icon.
Returns
One cell of text.
public static String StatusSymbol(IGlyphSet glyphs, StatusKind status) #StringThe one-cell symbol of a status in the glyph set's tier: ✓ ✗ ▴ – ● ○ ◆ (Full), the same in Basic, + x ! - * . i (ASCII). IGlyphSet.StatusMarker is the wider marker for status columns (bracketed words in ASCII).
Parameters
- glyphs ConsoleMonster.Glyphs.IGlyphSet
- The glyph set.
- status ConsoleMonster.Styling.StatusKind
- The status.
Returns
The symbol.