pub struct OverlayPart {
pub pos: [f32; 2],
pub size: Option<[f32; 2]>,
pub src: Option<[f32; 4]>,
pub colour: [f32; 4],
}Expand description
One placement of an overlay’s mask.
Fields§
§pos: [f32; 2]Top left in output pixels.
size: Option<[f32; 2]>Size in output pixels; None draws the (cropped) mask at 1:1.
src: Option<[f32; 4]>The part of the mask drawn, [x0, y0, x1, y1] in mask pixels; None is all of it.
colour: [f32; 4][r, g, b, a], sRGB, not premultiplied; multiplied by the mask and the fade.
Implementations§
Trait Implementations§
Source§impl Clone for OverlayPart
impl Clone for OverlayPart
impl Copy for OverlayPart
Source§impl Debug for OverlayPart
impl Debug for OverlayPart
Source§impl Default for OverlayPart
impl Default for OverlayPart
Source§impl PartialEq for OverlayPart
impl PartialEq for OverlayPart
impl StructuralPartialEq for OverlayPart
Auto Trait Implementations§
impl Forget for OverlayPart
impl Freeze for OverlayPart
impl RefUnwindSafe for OverlayPart
impl Send for OverlayPart
impl Sync for OverlayPart
impl Unpin for OverlayPart
impl UnsafeUnpin for OverlayPart
impl UnwindSafe for OverlayPart
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