Module i_slint_core::platform
source · 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
- The clip board, used in
Platform::clipboard_textand Platform::set_clipboard_text` - This enum describes the different error scenarios that may occur when
set_platformfails. - A event that describes user input or windowing system events.
Traits
- Trait that is returned by the
Platform::new_event_loop_proxy - This trait defines the interface between Slint and platform APIs typically provided by operating and windowing systems.
Functions
- 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 the Slint platform abstraction.
- Call this function to update and potentially activate any pending timers, as well as advance the state of any active animations.