mod macros;
pub mod config;
#[cfg(feature = "runtime")]
pub mod app_config;
#[cfg(feature = "runtime")]
pub mod app_context;
#[cfg(feature = "runtime")]
mod direction;
#[cfg(feature = "runtime")]
pub mod prefs;
#[cfg(feature = "runtime")]
pub mod window_signals;
#[cfg(feature = "runtime")]
pub mod app;
#[cfg(all(feature = "dev", not(target_os = "android")))]
pub mod hot;
#[cfg(feature = "dev")]
pub mod hot_state;
#[cfg(feature = "plugin")]
pub mod plugin;
#[cfg(feature = "platform-headless")]
mod raster;
#[cfg(feature = "runtime")]
pub mod runner;
#[cfg(feature = "runtime")]
pub mod surface;
#[cfg(feature = "runtime")]
pub mod tree;
#[cfg(feature = "runtime")]
pub mod window;
pub use config::RendererBackend;
#[cfg(feature = "runtime")]
mod preview_runner;
#[cfg(feature = "runtime")]
pub use preview_runner::{PreviewEntry, PreviewSurface};
#[cfg(feature = "runtime")]
pub use app_config::AppConfig;
#[cfg(feature = "runtime")]
pub use app_context::{AppCtx, RedrawWaker};
#[cfg(feature = "runtime")]
pub use prefs::UserPrefs;
pub use raw_window_handle::{RawDisplayHandle, RawWindowHandle};
#[cfg(feature = "runtime")]
pub use window_signals::WindowSignals;
#[cfg(feature = "runtime")]
pub use app::App;
#[cfg(feature = "runtime")]
pub use devtools_core::{DevAction, DevPlugin};
#[cfg(feature = "runtime")]
pub use geometry_core::{ObjectFit, Point, Rect, Transform};
#[cfg(feature = "runtime")]
pub use layout_core::{
AlignItems, AvailableSpace, Direction, JustifyContent, LayoutError, LayoutStyle, SizeDimension,
TemplateTrack,
};
#[cfg(feature = "plugin")]
pub use plugin::EmbeddedApp;
#[cfg(feature = "runtime")]
pub use tree::{Frame, HotTree, LocalTree, UiTree};
#[cfg(feature = "runtime")]
pub use ui_tree::SegmentNodeInfo;
pub use motion_core as motion;
#[cfg(feature = "runtime")]
pub use direction::follow_locale_direction;
pub use i18n_core as i18n;
pub use i18n_core::{current_locale, detect_system_locale, init_locale, set_locale, use_locale};
#[cfg(feature = "runtime")]
pub use platform_core::{
Event, FullscreenMode, Key, NamedKey, ScrollDelta, WindowCommand, WindowConfig, WindowPosition,
push_window_command, take_window_commands,
};
#[cfg(feature = "runtime")]
pub use platform_core::{
EventHandler, ModifiersState, MultiSurfacePlatform, Platform, PlatformError, PointerButton,
PointerSource, SurfaceId, Window,
};
#[cfg(all(feature = "runtime", feature = "desktop", not(target_os = "android")))]
pub use platform_desktop::DesktopPathsProvider;
#[cfg(feature = "runtime")]
pub use reactive_core::{
Effect, Memo, ReadSignal, RwSignal, batch, begin_batch, effect, end_batch, memo, reset_runtime,
signal,
};
#[cfg(all(feature = "runtime", feature = "svg"))]
pub use renderer_assets::{SvgData, SvgError};
#[cfg(feature = "runtime")]
pub use renderer_core::{
BorderRadius, Color, DrawCommand, FillRule, Gradient, GradientKind, GradientStop,
GradientStops, ImageData, ImageFilter, LineCap, LineJoin, Paint, PathData, PathStyle, PathVerb,
RectStyle, RendererError, Scale, Shadow, ShapeStyle, Stroke, TextAlign, TextRun, TextStyle,
};
#[cfg(feature = "runtime")]
pub use renderer_software::{CacheStat, cache_stats, sweep_idle as sweep_renderer_caches};
pub use services_core::AppPathsProvider;
#[cfg(feature = "runtime")]
pub use services_core::{Scope, provide, try_inject, with_service};
#[cfg(feature = "runtime")]
pub use surface::{
SurfaceContent, SurfaceControl, SurfaceHost, SurfaceToken, has_surface_host, open_surface,
set_surface_host, surface_content,
};
#[cfg(feature = "runtime")]
pub use theme_core::{
ControlSize, Theme, ThemeTokens, control_scale, follow_system, init_mode, is_dark,
register_mode, set_control_size, set_dark, set_light_dark, set_mode, set_system_dark,
set_theme, toggle_dark, use_control_size, use_mode, use_theme, use_theme_tokens,
};
#[cfg(all(feature = "runtime", feature = "svg"))]
pub use ui_core::Svg;
#[cfg(feature = "async-assets")]
pub use ui_core::{AssetSource, AssetState};
#[cfg(feature = "runtime")]
pub use ui_core::{
Canvas, ChildSlot, ClippedItem, Component, ComponentList, Container, DEFAULT_SCRIM,
EventResult, Image, Input, KeyboardMode, LayoutItem, LayoutScrollArea, Lazy, Line, LineGutter,
MIN_FRAME_SIZE, NodeId, NodeVec, Overlay, Path, ReactiveList, Rectangle, RenderNode, RichText,
ScrollViewport, ScrollbarStyle, Slots, StyledContainer, SurfaceAlign, SurfaceAnchor,
SurfaceFrameStyle, SurfacePlacement, SurfaceRole, SurfaceRoot, SurfaceScaffold, SurfaceSize,
SurfaceTransition, Text, TextArea, VirtualList, anchor_rect, box_item, box_transform,
close_overlay, compute_layout, current_direction, dismiss_depth, dismiss_top, focus, fragment,
fragment_gap, fragment_positional, fragment_positional_gap, interactive_rects, kept,
mark_dirty, named_overlay, new_container, new_leaf, open_overlay, overlay_open, overlay_state,
relayout_if_dirty, remove_node, reset_layout_runtime, set_children, set_direction, set_display,
set_min_height, set_overlay_host, surface_frame, toggle_overlay, track_layout,
transform_pointer, use_direction, use_dismiss_depth, use_overlay_open, visible_window,
};
#[cfg(feature = "navigate")]
pub use navigate_core::{
NavHost, NavPage, NavTransition, Navigator, PagePolicy, Routable, RouteTable, SimplePage,
TabHost, TabStacks,
};
#[cfg(feature = "components")]
pub use ui_components::{
AccordionProps, BadgeProps, ButtonProps, CheckboxProps, ChipProps, DrawerProps, HeadingProps,
MenuProps, ModalProps, ProgressProps, RadioProps, SectionProps, SelectProps, SliderProps,
SpinnerProps, StepperProps, TabsProps, TextFieldProps, ToggleProps, TooltipProps, accordion,
badge, button, checkbox, chip, drawer, heading, hover_reveal, menu, modal, progress, radio,
section, select, slider, spinner, stepper, tabs, text_field, toggle, tooltip,
};
#[cfg(feature = "runtime")]
pub fn dispatch_overlays(event: &Event) -> bool {
ui_core::dispatch_overlays(event) == EventResult::Handled
}
#[cfg(all(
any(feature = "preview", feature = "preview-headless"),
not(target_os = "android")
))]
mod preview;
#[cfg(all(feature = "preview-headless", not(target_os = "android")))]
pub use preview::run_preview_png;
#[cfg(all(feature = "preview", not(target_os = "android")))]
pub use preview::run_preview_window;
#[cfg(feature = "platform-headless")]
pub use raster::rasterize;
#[cfg(feature = "dev")]
pub use hot_state::{hot_restore_json, hot_signal, hot_snapshot_json, probe};
#[cfg(all(feature = "runtime", not(feature = "dev")))]
pub fn hot_signal<T>(key: &str, init: T) -> reactive_core::RwSignal<T>
where
T: Clone + serde::Serialize + serde::de::DeserializeOwned + 'static,
{
let _ = key;
reactive_core::signal(init)
}
#[cfg(all(feature = "runtime", target_os = "android"))]
pub use platform_android::AndroidApp;
#[cfg(all(feature = "runtime", not(target_os = "android")))]
pub use runner::build_surface_handler;
#[cfg(all(feature = "runtime", target_os = "android"))]
pub use runner::run_android_app_with_name;
#[cfg(all(feature = "dev", not(target_os = "android")))]
pub use runner::run_hot_reload_host;
#[cfg(all(feature = "runtime", not(target_os = "android")))]
pub use runner::run_multi_with_platform;
#[cfg(all(feature = "runtime", not(target_os = "android")))]
pub use runner::run_with_platform;
#[cfg(feature = "runtime")]
pub use runner::set_default_font_family;
#[cfg(all(feature = "runtime", feature = "desktop", not(target_os = "android")))]
pub use runner::{open_window, run_app_windowed, run_app_with_name, run_multi_app_with_name};
pub use telar_macros::{app, rsx_modules, t};
#[cfg(all(feature = "dev", feature = "preview", not(target_os = "android")))]
pub use preview_runner::make_hot_preview_app;
#[cfg(all(feature = "runtime", not(target_os = "android")))]
pub use preview_runner::{dev_entry, try_run_preview, try_run_test};