Skip to content

EffectPanelExtensions

Namespace: Hex1b

Assembly: Hex1b.dll

Extension methods for creating instances.

csharp
public static class EffectPanelExtensions

Inheritance

ObjectEffectPanelExtensions

Methods

EffectPanel<TParent>(WidgetContext<TParent>, Hex1bWidget, Action<Surface>)

Creates an effect panel that wraps the given child widget with an effect applied.

Parameters:

  • ctx (WidgetContext<<TParent>>): The widget context.
  • child (Hex1bWidget): The child widget to wrap.
  • effect (Action<Surface>): A callback that receives the rendered for in-place modification.

Returns: EffectPanelWidget

An with the effect applied.

csharp
public static EffectPanelWidget EffectPanel<TParent>(this WidgetContext<TParent> ctx, Hex1bWidget child, Action<Surface> effect) where TParent : Hex1bWidget

EffectPanel<TParent>(WidgetContext<TParent>, Hex1bWidget)

Creates an effect panel that wraps the given child widget. Use to apply a post-processing effect.

Parameters:

  • ctx (WidgetContext<<TParent>>): The widget context.
  • child (Hex1bWidget): The child widget to wrap.

Returns: EffectPanelWidget

An wrapping the child.

csharp
public static EffectPanelWidget EffectPanel<TParent>(this WidgetContext<TParent> ctx, Hex1bWidget child) where TParent : Hex1bWidget

Released under the MIT License.