pub struct MaskPlacement {
pub size: MaskSize,
pub pos_x: MaskLen,
pub pos_y: MaskLen,
pub repeat_x: bool,
pub repeat_y: bool,
pub mode: MaskMode,
pub clip_inset: Option<[f32; 4]>,
pub origin_inset: Option<[f32; 4]>,
}Expand description
Encaje y modo de una máscara (CSS mask-size + mask-position +
mask-repeat + mask-mode), resuelto contra el rect del nodo en el paint,
con la misma aritmética que background-image. En el MountedNode viaja
como Option: None = estirar la máscara al border-box en modo luminancia
(comportamiento de la Fase 7.1226). Fase 7.1227 (encaje), 7.1228 (modo).
Fields§
§size: MaskSizeTamaño del tile.
pos_x: MaskLenOffset/alineación horizontal del primer tile.
pos_y: MaskLenOffset/alineación vertical del primer tile.
repeat_x: boolTilear en X (mask-repeat cubre el eje horizontal).
repeat_y: boolTilear en Y.
mode: MaskModeCanal que modula el alpha (luminancia vs alpha). Fase 7.1228.
clip_inset: Option<[f32; 4]>Insets [top, right, bottom, left] px del border-box a la caja de
mask-clip: el efecto de la máscara se recorta a esa caja. None =
border-box. Fase 7.1230.
origin_inset: Option<[f32; 4]>Insets [top, right, bottom, left] px del border-box a la caja de
mask-origin: size/position/tiling se resuelven contra esa caja. None
= border-box. Fase 7.1230.
Trait Implementations§
Source§impl Clone for MaskPlacement
impl Clone for MaskPlacement
Source§fn clone(&self) -> MaskPlacement
fn clone(&self) -> MaskPlacement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for MaskPlacement
Source§impl Debug for MaskPlacement
impl Debug for MaskPlacement
Source§impl PartialEq for MaskPlacement
impl PartialEq for MaskPlacement
Source§fn eq(&self, other: &MaskPlacement) -> bool
fn eq(&self, other: &MaskPlacement) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MaskPlacement
Auto Trait Implementations§
impl Freeze for MaskPlacement
impl RefUnwindSafe for MaskPlacement
impl Send for MaskPlacement
impl Sync for MaskPlacement
impl Unpin for MaskPlacement
impl UnsafeUnpin for MaskPlacement
impl UnwindSafe for MaskPlacement
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.