drafftink-core 0.1.0

Core data structures and logic for DrafftInk whiteboard
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Widget system for managing interactive shape states.
//!
//! This module provides a unified way to manage UI state for shapes:
//! - Selection state with shape-specific handles
//! - Editing state (e.g., text editing)
//! - Event routing to the appropriate handler
//!
//! Shapes remain pure data. Widgets wrap shapes with UI state.

mod state;
mod manager;
mod handles;

pub use state::{WidgetState, EditingKind};
pub use manager::WidgetManager;
pub use handles::{Handle, HandleKind, HandleShape};