Skip to main content

Crate ferrocad_widgets

Crate ferrocad_widgets 

Source
Expand description

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).

Re-exports§

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

Modules§

events
Events emitted by the editable widgets.
menu
A domain-free anchored menu: a column of read-only info rows and clickable command rows, dismissed by a press outside its panel.
text_area
A scrollable text area with a read-only prefix and an editable tail.
text_buffer
The shared text-editing model behind the input and text-area components.
text_field
A single-line editable field.
wheel
A radial marking menu: a dielectric torus split into wedge targets around a hollow cancel deadzone.
window_chrome
Client-side window decorations: a title bar and border resize grips.