#![deny(unsafe_code)]
#![deny(missing_docs)]
#[cfg(all(feature = "android", target_os = "android"))]
mod android_file_picker;
#[cfg(all(feature = "android", target_os = "android"))]
pub use android_file_picker::open_content_uri;
#[cfg_attr(not(all(feature = "android", target_os = "android")), allow(dead_code))]
mod android_host_window;
#[cfg(all(feature = "android", target_os = "android"))]
mod android_jni;
#[cfg(all(feature = "android", feature = "renderer-wgpu", target_os = "android"))]
mod android_overlay_window;
#[cfg(all(feature = "android", feature = "renderer-wgpu", target_os = "android"))]
mod android_surface;
mod launcher;
mod native_window;
#[cfg(all(feature = "android", feature = "renderer-wgpu", target_os = "android"))]
pub use android_host_window::{
rememberAndroidHostWindowState, AndroidHostWindowPositionError, AndroidHostWindowSizeError,
AndroidHostWindowSizeStatus, AndroidHostWindowState,
};
#[cfg(all(
feature = "renderer-wgpu",
any(feature = "desktop", all(feature = "ios", target_os = "ios"))
))]
pub use launcher::LaunchError;
pub use launcher::{AndroidOverlayWindowOptions, AppLauncher, AppSettings};
pub use native_window::{
current_native_window_surface_origin, rememberWindowState, Window, WindowAttachPolicy,
WindowConfig, WindowGroup, WindowId, WindowModifierExt, WindowMoveMode, WindowNode,
WindowResizeDirection, WindowState,
};
#[cfg(all(
feature = "renderer-wgpu",
any(
feature = "desktop",
all(feature = "android", target_os = "android"),
all(feature = "ios", target_os = "ios"),
all(feature = "web", target_arch = "wasm32")
)
))]
mod present_mode;
#[cfg(all(
feature = "renderer-wgpu",
any(
feature = "desktop",
all(feature = "android", target_os = "android"),
all(feature = "ios", target_os = "ios"),
all(feature = "web", target_arch = "wasm32")
)
))]
mod wgpu_surface;
pub use cranpose_services::*;
pub use cranpose_ui::*;
pub use cranpose_core::{mutableStateOf, remember, rememberUpdatedState, useState};
#[doc(hidden)]
pub use cranpose_core::{
debug_label_current_scope, location_key, with_current_composer, CallbackHolder, Composer,
ParamState, ReturnSlot,
};
#[cfg(all(feature = "desktop", feature = "renderer-wgpu", feature = "robot"))]
#[doc(hidden)]
pub type RobotAppHook = dyn FnMut(String, String) -> Result<Option<String>, String>;
pub mod prelude {
#[cfg(all(feature = "android", feature = "renderer-wgpu", target_os = "android"))]
pub use crate::{
rememberAndroidHostWindowState, AndroidHostWindowPositionError, AndroidHostWindowSizeError,
AndroidHostWindowSizeStatus, AndroidHostWindowState,
};
pub use crate::{
rememberWindowState, AndroidOverlayWindowOptions, AppLauncher, AppSettings, Window,
WindowAttachPolicy, WindowConfig, WindowGroup, WindowId, WindowModifierExt, WindowMoveMode,
WindowNode, WindowResizeDirection, WindowState,
};
pub use cranpose_core::{mutableStateOf, remember, rememberUpdatedState, useState};
pub use cranpose_services::*;
pub use cranpose_ui::*;
}
#[cfg(all(feature = "android", feature = "renderer-wgpu", target_os = "android"))]
pub mod android;
#[cfg(feature = "renderer-wgpu")]
#[cfg_attr(
not(any(
all(feature = "android", target_os = "android"),
all(feature = "ios", target_os = "ios")
)),
allow(dead_code)
)]
pub(crate) mod gpu_limits;
#[cfg(all(feature = "desktop", feature = "renderer-wgpu"))]
pub mod desktop;
#[cfg(all(feature = "ios", feature = "renderer-wgpu", target_os = "ios"))]
pub mod ios;
#[cfg(all(feature = "ios", feature = "renderer-wgpu", target_os = "ios"))]
mod ios_file_picker;
#[cfg(all(feature = "desktop", feature = "renderer-wgpu"))]
pub mod recorder;
#[cfg(all(feature = "web", feature = "renderer-wgpu", target_arch = "wasm32"))]
pub mod web;
#[cfg(all(feature = "desktop", feature = "renderer-wgpu", feature = "robot"))]
pub use desktop::{Robot, RobotScreenshot, SemanticElement, SemanticRect};
#[cfg(all(feature = "desktop", feature = "renderer-wgpu"))]
pub use cranpose_app_shell::{DevOptions, FpsStats, FramePacingMode};