Struct i_slint_backend_qt::Backend
source · [−]pub struct Backend;
Trait Implementations
sourceimpl Backend for Backend
impl Backend for Backend
sourcefn create_window(&'static self) -> Rc<Window>
fn create_window(&'static self) -> Rc<Window>
Instantiate a window for a component.
FIXME: should return a Box
sourcefn run_event_loop(&'static self, _behavior: EventLoopQuitBehavior)
fn run_event_loop(&'static self, _behavior: EventLoopQuitBehavior)
Spins an event loop and renders the visible windows.
sourcefn quit_event_loop(&'static self)
fn quit_event_loop(&'static self)
Exits the event loop.
sourcefn register_font_from_memory(
&'static self,
_data: &'static [u8]
) -> Result<(), Box<dyn Error>>
fn register_font_from_memory(
&'static self,
_data: &'static [u8]
) -> Result<(), Box<dyn Error>>
This function can be used to register a custom TrueType font with Slint,
for use with the font-family
property. The provided slice must be a valid TrueType
font. Read more
sourcefn register_font_from_path(
&'static self,
_path: &Path
) -> Result<(), Box<dyn Error>>
fn register_font_from_path(
&'static self,
_path: &Path
) -> Result<(), Box<dyn Error>>
This function can be used to register a custom TrueType font with Slint,
for use with the font-family
property. The provided path must refer to a valid TrueType
font. Read more
fn set_clipboard_text(&'static self, _text: String)
fn clipboard_text(&'static self) -> Option<String>
sourcefn post_event(&'static self, _event: Box<dyn FnOnce() + Send>)
fn post_event(&'static self, _event: Box<dyn FnOnce() + Send>)
Send an user event to from another thread that should be run in the GUI event loop
fn image_size(&'static self, _image: &Image) -> IntSize
fn register_bitmap_font(&'static self, _font_data: &'static BitmapFont)
fn duration_since_start(&'static self) -> Duration
Auto Trait Implementations
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnwindSafe for Backend
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more