pub struct Backend { /* private fields */ }
Implementations§
Source§impl Backend
impl Backend
pub fn new() -> Result<Self, PlatformError>
pub fn new_with_renderer_by_name( renderer_name: Option<&str>, ) -> Result<Self, PlatformError>
Trait Implementations§
Source§impl Platform for Backend
impl Platform for Backend
Source§fn create_window_adapter(&self) -> Result<Rc<dyn WindowAdapter>, PlatformError>
fn create_window_adapter(&self) -> Result<Rc<dyn WindowAdapter>, PlatformError>
Instantiate a window for a component.
Source§fn run_event_loop(&self) -> Result<(), PlatformError>
fn run_event_loop(&self) -> Result<(), PlatformError>
Spins an event loop and renders the visible windows.
Source§fn new_event_loop_proxy(&self) -> Option<Box<dyn EventLoopProxy>>
fn new_event_loop_proxy(&self) -> Option<Box<dyn EventLoopProxy>>
Return an
EventLoopProxy
that can be used to send event to the event loop Read moreSource§fn clipboard_text(&self, clipboard: Clipboard) -> Option<String>
fn clipboard_text(&self, clipboard: Clipboard) -> Option<String>
Returns a copy of text stored in the system clipboard, if any. Read more
Source§fn set_clipboard_text(&self, text: &str, clipboard: Clipboard)
fn set_clipboard_text(&self, text: &str, clipboard: Clipboard)
Sends the given text into the system clipboard. Read more
Source§fn duration_since_start(&self) -> Duration
fn duration_since_start(&self) -> Duration
Returns the current time as a monotonic duration since the start of the program Read more
Source§fn click_interval(&self) -> Duration
fn click_interval(&self) -> Duration
Returns the current interval to internal measure the duration to send a double click event. Read more
Auto Trait Implementations§
impl !Freeze for Backend
impl !RefUnwindSafe for Backend
impl !Send for Backend
impl !Sync for Backend
impl Unpin for Backend
impl !UnwindSafe for Backend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more