EffectPanelExtensions
Namespace: Hex1b
Assembly: Hex1b.dll
Extension methods for creating instances.
csharp
public static class EffectPanelExtensionsInheritance
Object → EffectPanelExtensions
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 : Hex1bWidgetEffectPanel<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