Skip to content

IconExtensions

Namespace: Hex1b

Assembly: Hex1b.dll

Extension methods for creating IconWidget.

csharp
public static class IconExtensions

Inheritance

ObjectIconExtensions

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 : Hex1bWidget

Icon<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

Released under the MIT License.