Skip to main content

Crate ling_ui

Crate ling_ui 

Source
Expand description

ling-ui — UI for Ling: retained-mode widgets + flex layout, plus the 2030 holographic toolkit (anim easings/springs/tweens and holo vector stroke font + sci-fi frame geometry + immediate-mode hit-testing).

Re-exports§

pub use widget::View;
pub use widget::Widget;
pub use widget::Label;
pub use widget::Button;
pub use layout::FlexDirection;
pub use layout::LayoutNode;
pub use layout::Style;
pub use layout::simple_layout;
pub use event::Event;
pub use renderer::SoftwareRenderer;
pub use anim::Easing;
pub use anim::Spring;
pub use anim::Tween;
pub use anim::ease;
pub use widgets::Draw;
pub use widgets::Rgba;

Modules§

anim
Animation toolkit — easing curves, springs, tweens and a tiny animator.
event
UI input events.
holo
Holographic vector UI primitives — a stroke font, sci-fi frame geometry, and immediate-mode hit-testing. Everything is returned as line segments [x0,y0,x1,y1] in a local box so a renderer can scale, glow and depth-shift them however it likes.
layout
Flex layout engine (wraps Taffy when the layout feature is enabled).
renderer
Software renderer stub for ling-ui.
widget
UI widget types.
widgets
Professional vector UI toolkit — HUD overlays, meters/gauges, interface controls and game UI, all emitted as resolved vector primitives so a single widget can be multi-colour and the host can rasterize (AA fill + AA stroke) however it likes. Pure, allocation-light, immediate-mode: call a function each frame with the live params and draw the returned Draw.

Constants§

VERSION