pub enum SliverPaintOrder {
FirstIsTop,
LastIsTop,
}Expand description
Specifies an order in which to paint the slivers of a viewport.
Whichever order the slivers are painted in, they will be hit-tested in the opposite order.
This can also be thought of as an ordering in the z-direction: whichever sliver is painted last (and hit-tested first) is on top, because it will paint over other slivers if there is overlap. Similarly, whichever sliver is painted first (and hit-tested last) is on the bottom.
Variants§
FirstIsTop
The first sliver paints on top, and the last sliver on bottom.
The slivers are painted in the reverse order of the viewport’s children, and hit-tested in the same order as the viewport’s children.
This is the default order.
LastIsTop
The last sliver paints on top, and the first sliver on bottom.
The slivers are painted in the same order as the viewport’s children, and hit-tested in the reverse order.
Trait Implementations§
Source§impl Clone for SliverPaintOrder
impl Clone for SliverPaintOrder
impl Copy for SliverPaintOrder
Source§impl Debug for SliverPaintOrder
impl Debug for SliverPaintOrder
Source§impl Default for SliverPaintOrder
impl Default for SliverPaintOrder
impl Eq for SliverPaintOrder
Source§impl Hash for SliverPaintOrder
impl Hash for SliverPaintOrder
Source§impl PartialEq for SliverPaintOrder
impl PartialEq for SliverPaintOrder
impl StructuralPartialEq for SliverPaintOrder
Auto Trait Implementations§
impl Freeze for SliverPaintOrder
impl RefUnwindSafe for SliverPaintOrder
impl Send for SliverPaintOrder
impl Sync for SliverPaintOrder
impl Unpin for SliverPaintOrder
impl UnsafeUnpin for SliverPaintOrder
impl UnwindSafe for SliverPaintOrder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.