Skip to content

InteractableContext

Namespace: Hex1b

Assembly: Hex1b.dll

A context for building the child tree of an . Provides access to current focus and hover state from the underlying node.

csharp
public sealed class InteractableContext : WidgetContext<InteractableWidget>

Inheritance

Object → WidgetContext<InteractableWidget> → InteractableContext

Properties

IsFocused

Whether the interactable area currently has focus.

Returns: Boolean

csharp
public bool IsFocused { get; }

IsHovered

Whether the mouse is currently hovering over the interactable area.

Returns: Boolean

csharp
public bool IsHovered { get; }

Remarks

This context is created during reconciliation (not during widget building), so and reflect the node's current state. On first render, the node is new so both default to false.

Released under the MIT License.