pub struct BorderEffect {
pub name: String,
pub extend_x: CanvasEdgeBehavior,
pub extend_y: CanvasEdgeBehavior,
pub source: Option<GraphicsEffectSource>,
}Expand description
Extends its source beyond its edges (Win2D BorderEffect): a surface
brush source tiles over the area of the brush when an edge behaviour is
Wrap (or Mirror, drawn as Wrap); any other source, or Clamp on
both sides, is drawn as it is.
Fields§
§name: StringThe name of the effect.
extend_x: CanvasEdgeBehaviorThe horizontal behaviour.
extend_y: CanvasEdgeBehaviorThe vertical behaviour.
source: Option<GraphicsEffectSource>The input.
Trait Implementations§
Source§impl Clone for BorderEffect
impl Clone for BorderEffect
Source§impl Debug for BorderEffect
impl Debug for BorderEffect
Source§impl Default for BorderEffect
impl Default for BorderEffect
Source§impl From<BorderEffect> for GraphicsEffect
impl From<BorderEffect> for GraphicsEffect
Source§fn from(effect: BorderEffect) -> Self
fn from(effect: BorderEffect) -> Self
Converts to this type from the input type.
Source§impl From<BorderEffect> for GraphicsEffectSource
impl From<BorderEffect> for GraphicsEffectSource
Source§fn from(effect: BorderEffect) -> Self
fn from(effect: BorderEffect) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BorderEffect
impl PartialEq for BorderEffect
impl StructuralPartialEq for BorderEffect
Auto Trait Implementations§
impl Freeze for BorderEffect
impl RefUnwindSafe for BorderEffect
impl Send for BorderEffect
impl Sync for BorderEffect
impl Unpin for BorderEffect
impl UnsafeUnpin for BorderEffect
impl UnwindSafe for BorderEffect
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more