IconExtensions
Namespace: Hex1b
Assembly: Hex1b.dll
Extension methods for creating IconWidget.
csharp
public static class IconExtensionsInheritance
Object → IconExtensions
Methods
Icon<TParent>(WidgetContext<TParent>, char)
Creates an icon widget with the specified icon character.
Parameters:
ctx(WidgetContext<<TParent>>): The widget context.icon(Char): The icon character to display.
Returns: IconWidget
A new IconWidget.
csharp
public static IconWidget Icon<TParent>(this WidgetContext<TParent> ctx, char icon) where TParent : Hex1bWidgetIcon<TParent>(WidgetContext<TParent>, string)
Creates an icon widget with the specified icon string.
Parameters:
ctx(WidgetContext<<TParent>>): The widget context.icon(String): The icon character or string to display.
Returns: IconWidget
A new IconWidget.
csharp
public static IconWidget Icon<TParent>(this WidgetContext<TParent> ctx, string icon) where TParent : Hex1bWidget