Struct iced_solstice::Backend
source · [−]pub struct Backend { /* private fields */ }
Implementations
sourceimpl Backend
impl Backend
sourcepub fn present<T: AsRef<str>>(
&mut self,
gl: &mut Context,
primitives: &[Primitive],
viewport: &Viewport,
overlay_text: &[T]
)
pub fn present<T: AsRef<str>>(
&mut self,
gl: &mut Context,
primitives: &[Primitive],
viewport: &Viewport,
overlay_text: &[T]
)
Draws the provided primitives in the default framebuffer.
The text provided as overlay will be rendered on top of the primitives. This is useful for rendering debug information.
Trait Implementations
sourceimpl Backend for Backend
impl Backend for Backend
sourcefn trim_measurements(&mut self)
fn trim_measurements(&mut self)
Trims the measurements cache. Read more
sourceimpl Text for Backend
impl Text for Backend
sourceconst CHECKMARK_ICON: char = '\u{f00c}'
const CHECKMARK_ICON: char = '\u{f00c}'
sourceconst ARROW_DOWN_ICON: char = '\u{e800}'
const ARROW_DOWN_ICON: char = '\u{e800}'
sourcefn default_size(&self) -> u16
fn default_size(&self) -> u16
Returns the default size of text.
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