Expand description
BaseviewTranslator - the windowing-toolkit-specific half of
truce-gui’s interaction surface. The platform-agnostic data
types (InputEvent, MouseButton, Modifiers, WidgetRegion,
InteractionState, DragState, DropdownState, dispatch, …)
live in truce_gui_types::interaction and are re-exported here
so existing truce_gui::interaction::* paths keep working.
Structs§
- Baseview
Translator - Stateful translator from baseview events to truce-gui’s
platform-agnostic
InputEventstream. - Drag
State - Dropdown
State - State for an open dropdown popup.
- Interaction
State - Tracks the current mouse / touch interaction state.
- Modifiers
- Keyboard modifier state at event time.
- Popup
Drag - Active touch-drag on the open dropdown popup.
- Widget
Region - A widget’s hit region on screen.
Enums§
- Input
Event - Platform-agnostic input event consumed by
dispatch. - Mouse
Button - Which mouse button triggered an event.
- Param
Edit - A requested edit to a host parameter, emitted by
dispatch.
Constants§
- SINGLE_
POINTER - Single-pointer sentinel for mouse-driven flows. iOS touch
dispatch substitutes the
UITouch*cast tou64so multiple fingers can drag independently.
Functions§
- dispatch
- Route a batch of input events through the widget tree, updating
statein place (hover, drag origins, dropdown open/closed, …) and returning the sequence of parameter edits they imply. - dispatch_
in - Like
dispatchbut takes explicitwindow_sizein the same coordinate space as the layout - i.e. the size of the surface the layout is being composited onto.