pub struct PageBand {
pub bounds: RectU16,
pub size: PageSize,
}Expand description
One full-height column of a layer, and the page it renders into.
A band is an ordinary page in every respect but its width: its contents are
rendered at the page’s own origin (so every strip in it is offset by
-(bounds.x0, bounds.y0), exactly as an unbanded layer’s are) and it
composites back at bounds in the parent’s own
coordinates. A layer that fits one page is one band covering the whole of
it, so a caller has no second shape to handle.
Fields§
§bounds: RectU16The band’s own tile-aligned device-space rectangle — a full-height column of the layer’s bounds, what the band composites at, and what its contents are clipped to on the way into the page (see the module header’s A fourth decision).
size: PageSizeThe extent this band’s page is acquired at.
One value for every band of a layer, the narrower last one included: the bands are split evenly and sized from the widest of them, so they share one substrate-pool key and reuse one texture (E13).
Trait Implementations§
impl Copy for PageBand
impl Eq for PageBand
impl StructuralPartialEq for PageBand
Auto Trait Implementations§
impl Freeze for PageBand
impl RefUnwindSafe for PageBand
impl Send for PageBand
impl Sync for PageBand
impl Unpin for PageBand
impl UnsafeUnpin for PageBand
impl UnwindSafe for PageBand
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.