ferrocad_widgets 0.1.4

Reusable bite-gpui widgets for FerroCAD: window chrome, editable field, console text area
Documentation
//! Reusable `bite-gpui` widgets shared by the FerroCAD shell and the bite-gpui
//! book.
//!
//! * [`window_chrome::window_frame`] draws client-side decorations (title bar and
//!   resize grips) where the compositor does not.
//! * [`text_field::TextInput`] is a single-line editable field that emits
//!   [`ChangeEvent`] and [`SubmitEvent`].
//! * [`text_area::TextAreaState`] is a scrollable text area with a read-only
//!   prefix and an editable, possibly multi-line, tail (the console).
//! * [`text_buffer::TextBuffer`] is the shared editing model underneath both.
//! * [`menu`] is the domain-free popover row list.
//! * [`wheel`] is the radial marking menu: a dielectric torus, wedge hit-testing and
//!   the semantic tone arcs, plus the [`WheelMenu`] sidecar that owns the gesture
//!   (armed/latched, tap-vs-flick, hover, overlay and dismissal).

pub mod events;
pub mod menu;
pub mod text_area;
pub mod text_buffer;
pub mod text_field;
pub mod wheel;
pub mod window_chrome;

pub use events::{ChangeEvent, SubmitEvent};
pub use menu::{MenuInfoRow, MenuRow, menu};
pub use text_area::TextAreaState;
pub use text_buffer::TextBuffer;
pub use text_field::TextInput;
pub use wheel::{
    WheelEvent, WheelHit, WheelMenu, WheelSlot, WheelTone, slot_at, slot_offset, wheel,
};
pub use window_chrome::window_frame;