Cranpose Foundation
cranpose-foundation defines shared modifier-node, input, focus, text and
semantics contracts for Cranpose UI. Framework extension authors use the crate
to add modifier nodes and input handlers. App developers usually start with
the widgets and Modifier type from cranpose.
Handle a pointer event
PointerEvent carries event kind and logical pointer positions. The platform
adapter converts device coordinates before the UI layer receives an event.
use ;
use Point;
let position = new;
let event = new;
Custom modifier nodes use ModifierNode, ModifierNodeElement and the
impl_modifier_node! helper. cranpose-ui supplies Modifier::from_element
as the app-facing entry point. See the
ModifierNode API,
the modifier guide
and the crate source.
The feature set is empty. The dependency set stays platform-neutral.