Skip to main content

Crate compose_rust

Crate compose_rust 

Source

Re-exports§

pub use animation::Animated;
pub use animation::AnimationMoment;
pub use animation::AnimationSpec;
pub use animation::GraphicsLayer;
pub use animation::animate_color_as_state;
pub use animation::animate_float_as_state;
pub use animation::animate_offset_as_state;
pub use animation::control_animation;
pub use animation::reduced_motion;
pub use animation::start_animation;
pub use animation::transition;
pub use asset::asset;
pub use boundary::Host;
pub use boundary::LaunchBuilder;
pub use boundary::MutationBatch;
pub use boundary::RendererApi;
pub use boundary::RuntimeFactory;
pub use boundary::demo_theme;
pub use boundary::demo_theme_for;
pub use boundary::install_renderer_api;
pub use boundary::launch_runtime;
pub use boundary::request_frame_from_worker;
pub use brush::Brush;
pub use brush::Stop;
pub use brush::brush;
pub use brush::release_brush;
pub use code::CodeChange;
pub use code::CodeHover;
pub use code::CodeRange;
pub use code::Decoration;
pub use code::Decorations;
pub use code::EditRejected;
pub use code::Fold;
pub use code::FoldChange;
pub use code::Folds;
pub use code::GutterDecoration;
pub use code::GutterDecorations;
pub use code::Position;
pub use code::SaveRequest;
pub use code::SelectionChange;
pub use code::SyntaxSpan;
pub use code::SyntaxSpans;
pub use code::VisibleRange;
pub use design::design_system;
pub use drawing::DrawCommand;
pub use drawing::DrawList;
pub use drawing::DrawListBuilder;
pub use fonts::FontRef;
pub use fonts::FontRefs;
pub use input::FileDrop;
pub use input::KeyEvent;
pub use input::PointerEvent;
pub use input::PointerKinds;
pub use input::RangeRequest;
pub use input::pointer_button;
pub use message::Message;
pub use message::show_message;
pub use notification::Notification;
pub use notification::NotificationActivation;
pub use notification::NotificationSender;
pub use notification::notification_permission;
pub use notification::request_notification_permission;
pub use notification::withdraw_notification;
pub use palette::Palette;
pub use palette::PaletteViolation;
pub use runtime::Batch;
pub use runtime::ComposeHost;
pub use runtime::Recomposer;
pub use runtime::Runtime;
pub use runtime::application;
pub use runtime::launch;
pub use schema::Alignment;
pub use schema::Arrangement;
pub use schema::AssetKind;
pub use schema::ButtonKind;
pub use schema::ButtonVariant;
pub use schema::Chrome;
pub use schema::Color;
pub use schema::ColorRole;
pub use schema::ColorScheme;
pub use schema::DecorationKind;
pub use schema::DesignSystem;
pub use schema::EventPayload;
pub use schema::GenericFamily;
pub use schema::GutterDecorationKind;
pub use schema::HoverPhase;
pub use schema::IconRole;
pub use schema::Key;
pub use schema::LoopMode;
pub use schema::MaterialRole;
pub use schema::MessageDuration;
pub use schema::Modifier;
pub use schema::MotionRole;
pub use schema::NotificationImportance;
pub use schema::NotificationPermission;
pub use schema::NotificationPresentation;
pub use schema::OverflowWrap;
pub use schema::Paint;
pub use schema::PropertyKind;
pub use schema::RevealAlign;
pub use schema::SCHEMA_HASH;
pub use schema::Selection;
pub use schema::Severity;
pub use schema::ShapeRole;
pub use schema::SpaceRole;
pub use schema::TextAlign;
pub use schema::TextOverflow;
pub use schema::Theme;
pub use schema::TileMode;
pub use schema::TypeRole;
pub use schema::WidgetKind;
pub use schema::WindowHeightClass;
pub use schema::WindowSizeClass;
pub use schema::WordBreak;
pub use schema::AnimatedProperty;
pub use schema::Animation;
pub use schema::AnimationControl;
pub use schema::AnimationEventKind;
pub use schema::AnimationEvents;
pub use schema::ColorInterpolation;
pub use schema::FillMode;
pub use schema::Keyframe;
pub use schema::KeyframeValue;
pub use schema::PlayState;
pub use schema::PlaybackDirection;
pub use schema::ReducedMotion;
pub use schema::StepPosition;
pub use schema::Timing;
pub use schema::TransformFunction;
pub use schema::TransformFunctionKind;
pub use schema::Cursor;
pub use schema::PointerKind;
pub use schema::PointerType;
pub use schema::UserSelect;
pub use schema::WheelDeltaMode;
pub use theme::ThemeHandle;
pub use window::NodeSize;
pub use window::WindowSize;
pub use window::node_size;
pub use window::window_size;
pub use zoom::Zoom;
pub use zoom::ZoomHandle;
pub use zoom::zoom;

Modules§

animation
Animations the Renderer plays on its own frame clock, and the platform’s reduced motion setting.
asset
Pictures: registering the bytes once and drawing them by id.
boundary
brush
Gradients and image fills: registered once, named by id wherever a colour can go.
code
A code editor’s document as the Host sees it.
contrast
How far apart two colours are, in the two ways the colour roles are held to: contrast for an ink on a fill, and separation for a fill that has to be seen on another.
design
Which design system the Renderer resolved the theme to, and the registrations a runtime wakes its readers through.
drawing
The closed drawing command set a Canvas node carries.
fonts
The font a piece of text with no role is set in.
highlight
From a highlighter’s names to the code colour roles.
input
What an event hands its handler, for the events whose payload is more than a value.
measure
Asking the Renderer how big something will be, while the Host is laying it out.
message
Transient messages: the one sentence an application says after something happened.
notification
Notifications: calling the user from outside the window.
palette
An application’s own colours.
protocol
Fixed-layout little-endian boundary protocol.
runtime
compose-rust’s own runtime: positional memoisation on a slot table, with Compose’s shape and Compose’s names.
schema
Closed Rust-side schema and metadata used for Kotlin code generation.
spans
Runs of different treatment inside one Text.
theme
Changing the theme while the application runs, and the palettes that come with it.
tokens
Design token tables.
ui
The widget vocabulary as composables: the same widgets, the same properties and the same Modifier slots the rsx! layer writes, with Compose’s names and Compose’s shape.
window
The window’s measured size, and the registrations a runtime wakes its readers through.
zoom
How large the Renderer is drawing, and the application’s way to change it.

Macros§

android_application
Declares the Android entry point for an application whose root is a composable.
ios_main
Declares the entry point an iOS application starts at.
web_application
Declares the browser entry point for an application whose root is a composable.

Attribute Macros§

composable
Turns a function into a composable.