API Reference
Logo
Banner text drawn with a built-in 5x7 pixel font on a half-block canvas (two pixel rows per cell, four cell rows tall) with a horizontal colour gradient, and an optional tagline. On the Ascii tier the same font is drawn with #; when the banner does not fit, it falls back to bold text.
Inheritance
- Object
- Logo
Usage
Explore 20 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 10
- Extension method Logo.WithAlignment
- Extension method Logo.WithFrom
- Extension method Logo.WithTagline
- Extension method Logo.WithText
- Extension method Logo.WithTo
- Method LogoFluent.WithAlignment
- Method LogoFluent.WithFrom
- Method LogoFluent.WithTagline
- Method LogoFluent.WithText
- Method LogoFluent.WithTo
Accepted by parameters 10
- Extension method Logo.WithAlignment
- Extension method Logo.WithFrom
- Extension method Logo.WithTagline
- Extension method Logo.WithText
- Extension method Logo.WithTo
- Method LogoFluent.WithAlignment
- Method LogoFluent.WithFrom
- Method LogoFluent.WithTagline
- Method LogoFluent.WithText
- Method LogoFluent.WithTo
Constructors
public Logo(String text, String? tagline = null) #Creates a logo.
Parameters
- text System.String
- The banner text (A-Z, 0-9 and - . : ! / _).
- tagline System.String? = null
- An optional tagline under the banner (markup).
Methods
public Size Measure(Constraints constraints, RenderContext context) #SizeReturns the size the widget wants within the constraints.
Parameters
- constraints ConsoleMonster.Layout.Constraints
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
Returns
The desired size, never larger than the constraints.
public Void Render(Region region, RenderContext context) #VoidRenders into a region. The region may be smaller or larger than the measured size.
Parameters
- region ConsoleMonster.Canvas.Region
- The target region.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public HorizontalAlignment Alignment { get; set; } #Alignment of the banner and tagline (default left).
Extension Methods
public static Logo WithAlignment(Logo logo, HorizontalAlignment value) #LogoSets Logo.Alignment: Alignment of the banner and tagline (default left).
Parameters
- logo ConsoleMonster.Widgets.Logo
- The instance.
- value ConsoleMonster.Layout.HorizontalAlignment
- The value.
Returns
The same instance.
public static Logo WithFrom(Logo logo, Color value) #LogoSets Logo.From: The gradient start colour (default sky blue).
Parameters
- logo ConsoleMonster.Widgets.Logo
- The instance.
- value ConsoleMonster.Styling.Color
- The value.
Returns
The same instance.
public static Logo WithTagline(Logo logo, String? value) #LogoSets Logo.Tagline: The tagline (markup).
Parameters
- logo ConsoleMonster.Widgets.Logo
- The instance.
- value System.String?
- The value.
Returns
The same instance.