pub struct LayerFrame {
pub size: (u32, u32),
pub origin: [u32; 2],
pub region: [u32; 4],
}Expand description
Where a layer is drawn.
Fields§
§size: (u32, u32)The size, in pixels, of the content texture.
origin: [u32; 2]Where the content texture’s top-left falls on the target.
region: [u32; 4][x, y, width, height] on the target: the part the layer changes, the
content widened by the blur’s and the shadow’s reach. It lies inside the
content texture, which also covers where a shadow is read from.
Trait Implementations§
Source§impl Clone for LayerFrame
impl Clone for LayerFrame
impl Copy for LayerFrame
Source§impl Debug for LayerFrame
impl Debug for LayerFrame
impl Eq for LayerFrame
Source§impl PartialEq for LayerFrame
impl PartialEq for LayerFrame
impl StructuralPartialEq for LayerFrame
Auto Trait Implementations§
impl Freeze for LayerFrame
impl RefUnwindSafe for LayerFrame
impl Send for LayerFrame
impl Sync for LayerFrame
impl Unpin for LayerFrame
impl UnsafeUnpin for LayerFrame
impl UnwindSafe for LayerFrame
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> 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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.