Module platform

Module 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§

Clipboard
The clip board, used in Platform::clipboard_text and Platform::set_clipboard_text`
SetPlatformError
This enum describes the different error scenarios that may occur when set_platform fails.
WindowEvent
A event that describes user input or windowing system events.

Traits§

EventLoopProxy
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.