Struct egui_toast::Toasts
source · pub struct Toasts { /* private fields */ }
Implementations§
source§impl Toasts
impl Toasts
pub fn new() -> Self
sourcepub fn position(self, position: impl Into<Pos2>) -> Self
pub fn position(self, position: impl Into<Pos2>) -> Self
Position where the toasts show up.
The toasts will start from this position and stack up
in the direction specified with Self::direction
.
sourcepub fn anchor(self, anchor: Align2, offset: impl Into<Pos2>) -> Self
pub fn anchor(self, anchor: Align2, offset: impl Into<Pos2>) -> Self
Anchor for the toasts.
For instance, if you set this to (10.0, 10.0) and Align2::LEFT_TOP
,
then (10.0, 10.0) will be the top-left corner of the first toast.
sourcepub fn direction(self, direction: impl Into<Direction>) -> Self
pub fn direction(self, direction: impl Into<Direction>) -> Self
Direction where the toasts stack up
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Toasts
impl !RefUnwindSafe for Toasts
impl Send for Toasts
impl Sync for Toasts
impl Unpin for Toasts
impl !UnwindSafe for Toasts
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