Skip to main content

Crate cranpose_foundation

Crate cranpose_foundation 

Source
Expand description

Foundation elements for Cranpose: modifiers, input, and core functionality

Re-exports§

pub use gesture_constants::DRAG_THRESHOLD;
pub use gesture_constants::MAX_FLING_VELOCITY;
pub use velocity_tracker::VelocityTracker1D;
pub use nodes::input::PointerButton;
pub use nodes::input::PointerButtons;
pub use nodes::input::PointerEvent;
pub use nodes::input::PointerEventKind;
pub use nodes::input::PointerId;
pub use nodes::input::PointerPhase;
pub use measurement_proxy::*;
pub use modifier::*;
pub use modifier_helpers::*;

Modules§

gesture_constants
Shared gesture constants for consistent touch/pointer handling.
lazy
Lazy layout system for Cranpose.
measurement_proxy
Public measurement proxy API for layout modifier nodes.
modifier
Modifier node scaffolding for Cranpose.
modifier_helpers
Helper macros to reduce boilerplate when implementing modifier nodes.
nodes
prelude
text
Text input module for editable text fields.
velocity_tracker
Velocity tracking for fling gesture support.

Macros§

impl_draw_node
Implements the as_draw_node methods for a type that implements DrawModifierNode.
impl_focus_node
Implements the as_focus_node methods for a type that implements FocusNode.
impl_modifier_node
Comprehensive macro that implements all capability-based methods for a modifier node.
impl_pointer_input_node
Implements the as_pointer_input_node methods for a type that implements PointerInputNode.
impl_semantics_node
Implements the as_semantics_node methods for a type that implements SemanticsNode.