Table of Contents

Class InputContext

Namespace
Myra.Graphics2D.UI
Assembly
Myra.dll

Provides context information for mouse and touch input handling in the UI.

public class InputContext
Inheritance
InputContext
Inherited Members

Properties

MouseOrTouchHandled

Gets or sets a value indicating whether the current mouse or touch input has been handled.

public bool MouseOrTouchHandled { get; set; }

Property Value

bool

MouseWheelWidget

Gets or sets the widget that will receive mouse wheel events.

public Widget MouseWheelWidget { get; set; }

Property Value

Widget

ParentContainsMouse

Gets or sets a value indicating whether the parent widget contains the mouse cursor.

public bool ParentContainsMouse { get; set; }

Property Value

bool

ParentContainsTouch

Gets or sets a value indicating whether the parent widget contains a touch point.

public bool ParentContainsTouch { get; set; }

Property Value

bool

Methods

Reset()

Resets the input context to its default state.

public void Reset()