lurq 0.65.1

A Rust UI toolkit with typed components, retained state, reactive signals, GPU rendering, and DevTools.
Documentation
pub mod background_color;
pub mod border;
pub mod border_size_value;
pub mod box_shadow;
pub mod checkbox_style;
pub mod color;
pub(crate) mod component_output;
pub mod cursor;
pub mod dimension;
pub(crate) mod dsl;
pub mod element;
mod focus_group;
mod font_features;
pub mod gradient;
#[cfg(feature = "markdown")]
pub(crate) mod inline_link;
pub mod interaction_state;
pub(crate) mod layout_cache;
mod layout_tracking;
pub(crate) mod lazy_box;
mod letter_spacing;
// The file holds the `Node` type; paths across the crate name it.
#[allow(clippy::module_inception)]
pub(crate) mod node;
pub(crate) mod node_kind;
pub(crate) mod outer_decoration;
pub mod outline;
pub mod padding;
pub(crate) mod presence;
pub mod radius_value;
pub mod select_icon;
pub(crate) mod select_state;
pub mod select_style;
mod sensitive_text;
pub mod slider_style;
pub mod spacing_value;
pub mod style;
pub mod text_color;
pub mod text_highlight;
pub(crate) mod text_selection;
pub mod transform;

/// Whether what a node says of itself to tooling (`NodeUpdate::describe`) is kept: with the `devtools` or the `mcp`
/// feature. Without either a component skips the work of saying it.
pub(crate) const TOOLING: bool = cfg!(any(feature = "devtools", feature = "mcp"));

/// The statements given, kept with the `devtools` or the `mcp` feature and nothing without either: what reads what a
/// node says of itself to tooling where only such a build has it.
#[allow(unused_macros)]
macro_rules! with_tooling {
  ($($body:tt)*) => {
    #[cfg(any(feature = "devtools", feature = "mcp"))]
    {
      $($body)*
    }
  };
}
#[allow(unused_imports)]
pub(crate) use with_tooling;

#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
pub enum TextTransformMode {
  #[default]
  Bitmap,
  Rasterized,
}

pub use background_color::BackgroundColor;
pub use border_size_value::BorderSizeValue;
pub use box_shadow::{BoxShadow, BoxShadowValue};
pub use checkbox_style::CheckboxStyle;
pub use cursor::CursorIcon;
pub use element::{Element, ElementChildren, ElementRef};
pub use focus_group::{FocusAxis, FocusGroup, FocusRows};
pub(crate) use focus_group::{FocusBranch, FocusStep, step_rows};
pub use gradient::{Gradient, GradientKind, GradientStop};
#[cfg(feature = "form")]
pub use node::FormData;
pub use node::{
  BackgroundSize, ButtonKind, EventHandler, HitTestBehavior, IntoCopyEventHandler, IntoDragEventHandler,
  IntoDropEventHandler, IntoEdgePanEventHandler, IntoEditEventHandler, IntoEventHandler, IntoFileDragEventHandler,
  IntoFileDropEventHandler, IntoHistoryEventHandler, IntoHistorySwipeEventHandler, IntoKeyboardEventHandler,
  IntoLongPressEventHandler, IntoMouseEventHandler, IntoPageHandler, IntoPanEventHandler, IntoPasteEventHandler,
  IntoPinchEventHandler, IntoRotateEventHandler, IntoScrollEventHandler, IntoSwipeEventHandler, IntoTapEventHandler,
  IntoTextInputEventHandler, IntoTouchEventHandler, IntoVoidEventHandler, VoidEventHandler, WindowControl,
};
pub(crate) use node::{Node, NodeUpdate, SyntheticNodeRole, window_controls_in_use};
pub use outline::{Outline, ResolvedOutline};
pub use radius_value::RadiusValue;
pub use select_icon::{SelectAdornmentState, SelectCheckmarkPosition, SelectIcon};
pub use select_style::{SelectPartStyle, SelectStyle};
pub use slider_style::{SliderOrientation, SliderPartStyle};
pub use spacing_value::SpacingValue;
pub use style::Style;
pub use text_color::TextColor;