Expand description
The backend is the abstraction for crates that need to do the actual drawing and event loop
Re-exports§
pub use crate::api::PlatformError;
pub use crate::renderer::Renderer;
pub use crate::window::LayoutConstraints;
pub use crate::window::WindowAdapter;
pub use crate::window::WindowProperties;
pub use crate::input::key_codes::Key;
pub use crate::input::PointerEventButton;
Enums§
- Clipboard
- The clip board, used in
Platform::clipboard_text
and Platform::set_clipboard_text` - SetPlatform
Error - This enum describes the different error scenarios that may occur when
set_platform
fails. - Window
Event - A event that describes user input or windowing system events.
Traits§
- Event
Loop Proxy - Trait that is returned by the
Platform::new_event_loop_proxy
- Platform
- This trait defines the interface between Slint and platform APIs typically provided by operating and windowing systems.
Functions§
- duration_
until_ next_ timer_ update - Returns the duration before the next timer is expected to be activated. This is the
largest amount of time that you can wait before calling
update_timers_and_animations()
. - set_
platform - Set the Slint platform abstraction.
- update_
timers_ and_ animations - Call this function to update and potentially activate any pending timers, as well as advance the state of any active animations.