fromWidget

fun fromWidget(widget: Widget, contextInput: ContextInput = ContextInput.KEYBOARD): Position

Recreated position context from a provided widget.

Return

Position instance built around the widget position

Author

fzzyhmstrs

Since

0.6.0

Parameters

widget

Widget widget to build position context around. The widget will inform the "scoped" context

contextInput

ContextInput Default ContextInput.KEYBOARD, the type of input used in your context event.