pub struct FilterGraphPictureReference {
pub buffer_id: FilterOpGraphPictureBufferId,
pub subregion: LayoutRect,
pub offset: LayoutVector2D,
pub inflate: i16,
pub source_padding: LayoutRect,
pub target_padding: LayoutRect,
}
Fields§
§buffer_id: FilterOpGraphPictureBufferId
Id of the picture in question in a namespace unique to this filter DAG, some are special values like FilterPrimitiveDescription::kPrimitiveIndexSourceGraphic.
subregion: LayoutRect
Set by wrap_prim_with_filters to the subregion of the input node, may also have been offset for feDropShadow or feOffset
offset: LayoutVector2D
During scene build this is the offset to apply to the input subregion for feOffset, which can be optimized away by pushing its offset and subregion crop to downstream nodes. This is always zero in render tasks where it has already been applied to subregion by that point. Not used in get_coverage_svgfe because source_padding/target_padding represent the offset there.
inflate: i16
Equal to the inflate value of the referenced buffer, or 0
source_padding: LayoutRect
Padding on each side to represent how this input is read relative to the node’s output subregion, this represents what the operation needs to read from ths input, which may be blurred or offset.
target_padding: LayoutRect
Padding on each side to represent how this input affects the node’s subregion, this can be used to calculate target subregion based on SourceGraphic subregion. This is usually equal to source_padding except offset in the opposite direction, inflates typically do the same thing to both types of padding.
Trait Implementations§
source§impl Clone for FilterGraphPictureReference
impl Clone for FilterGraphPictureReference
source§fn clone(&self) -> FilterGraphPictureReference
fn clone(&self) -> FilterGraphPictureReference
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FilterGraphPictureReference
impl Debug for FilterGraphPictureReference
source§impl From<FilterGraphPictureReference> for FilterGraphPictureReferenceKey
impl From<FilterGraphPictureReference> for FilterGraphPictureReferenceKey
source§fn from(pic: FilterGraphPictureReference) -> Self
fn from(pic: FilterGraphPictureReference) -> Self
source§impl From<FilterOpGraphPictureReference> for FilterGraphPictureReference
impl From<FilterOpGraphPictureReference> for FilterGraphPictureReference
source§fn from(pic: FilterOpGraphPictureReference) -> Self
fn from(pic: FilterOpGraphPictureReference) -> Self
impl Copy for FilterGraphPictureReference
Auto Trait Implementations§
impl Freeze for FilterGraphPictureReference
impl RefUnwindSafe for FilterGraphPictureReference
impl Send for FilterGraphPictureReference
impl Sync for FilterGraphPictureReference
impl Unpin for FilterGraphPictureReference
impl UnwindSafe for FilterGraphPictureReference
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more