pub struct ZOrderService;Expand description
Service for managing drawing z-order (render layering)
Implementations§
Source§impl ZOrderService
impl ZOrderService
Sourcepub fn bring_to_front(drawings: &mut [Drawing], id: usize)
pub fn bring_to_front(drawings: &mut [Drawing], id: usize)
Bring a drawing to the front (highest z-order among all drawings)
Sourcepub fn send_to_back(drawings: &mut [Drawing], id: usize)
pub fn send_to_back(drawings: &mut [Drawing], id: usize)
Send a drawing to the back (lowest z-order among all drawings)
Sourcepub fn bring_forward(drawings: &mut [Drawing], id: usize)
pub fn bring_forward(drawings: &mut [Drawing], id: usize)
Move a drawing one step forward in z-order
Swaps z-order with the next drawing above it.
Sourcepub fn send_backward(drawings: &mut [Drawing], id: usize)
pub fn send_backward(drawings: &mut [Drawing], id: usize)
Move a drawing one step backward in z-order
Swaps z-order with the next drawing below it.
Sourcepub fn sort_by_z_order(drawings: &mut [Drawing])
pub fn sort_by_z_order(drawings: &mut [Drawing])
Sort drawings by z-order (ascending: lowest z-order first, drawn first)
Auto Trait Implementations§
impl Freeze for ZOrderService
impl RefUnwindSafe for ZOrderService
impl Send for ZOrderService
impl Sync for ZOrderService
impl Unpin for ZOrderService
impl UnsafeUnpin for ZOrderService
impl UnwindSafe for ZOrderService
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more