Class Emblem
A simple widget that displays a piece of important information with a fancy background and border.
Inherited Members
Namespace: SociallyDistant.Core.UI.Common
Assembly: SociallyDistant.Framework.dll
Syntax
public sealed class Emblem : Widget, IFontFamilyProvider, IInspectable, IVisual<Emblem.VisualState>, IUpdateThemeProperties
Constructors
Emblem()
Creates a new instance of the Emblem widget.
Declaration
public Emblem()
Properties
Color
Gets or sets a CommonColor value representing one of Socially Distant's common palette colors, to be used as the emblem color.
Declaration
public CommonColor Color { get; set; }
Property Value
Type | Description |
---|---|
CommonColor |
See Also
Text
Gets or sets the text to be shown on the emblem.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string |
VisualProperties
Gets a read-only reference to the visual properties associated with the widget.
Declaration
public ref readonly Emblem.VisualState VisualProperties { get; }
Property Value
Type | Description |
---|---|
Emblem.VisualState |
Methods
RebuildGeometry(GeometryHelper)
Declaration
protected override void RebuildGeometry(GeometryHelper geometry)
Parameters
Type | Name | Description |
---|---|---|
GeometryHelper | geometry |
Overrides
UpdateThemeProperties()
Retrieves layout properties from the visual style. Called by the UI system on every frame before layout updates occur. If layout properties change during this method call, the widget will automatically invalidate its own layout.
Declaration
public void UpdateThemeProperties()