pub enum PointerEvents {
Auto,
BoundingBox,
VisiblePainted,
VisibleFill,
VisibleStroke,
Visible,
Painted,
Fill,
Stroke,
All,
None,
}Expand description
Controls when the element can be the target of pointer events.
Variants§
Auto
The default behaviour, identical to "visiblePainted".
BoundingBox
Only triggered when the element is visible and the pointer is over the bounding box of the element
VisiblePainted
Only triggered when the element is visible and the pointer is on a painted area
VisibleFill
Only triggered when the element is visible and the pointer is on the interior (fill) area
VisibleStroke
Only triggered when the element is visible and the pointer is on the perimiter (stroke) area
Visible
Only triggered when the element is visible and the pointer is on the fill/stroke
Painted
Only triggered when the pointer is on a painted area
Fill
Only triggered when the pointer is on the interior (fill) area
Stroke
Only triggered when the pointer is on the perimiter (stroke) area
All
Triggered when the pointer is on the fill/stroke
None
Never triggers
Trait Implementations§
Source§impl Clone for PointerEvents
impl Clone for PointerEvents
Source§fn clone(&self) -> PointerEvents
fn clone(&self) -> PointerEvents
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PointerEvents
impl Debug for PointerEvents
impl Eq for PointerEvents
Source§impl<'input> Parse<'input> for PointerEvents
Available on crate feature parse only.
impl<'input> Parse<'input> for PointerEvents
parse only.Source§impl PartialEq for PointerEvents
impl PartialEq for PointerEvents
impl StructuralPartialEq for PointerEvents
Source§impl ToValue for PointerEvents
Available on crate feature serialize only.
impl ToValue for PointerEvents
serialize only.Source§fn write_value<W>(
&self,
dest: &mut Printer<'_, '_, W>,
) -> Result<(), PrinterError>where
W: Write,
fn write_value<W>(
&self,
dest: &mut Printer<'_, '_, W>,
) -> Result<(), PrinterError>where
W: Write,
Source§fn to_value_string(
&self,
options: PrinterOptions<'_>,
) -> Result<String, Error<PrinterErrorKind>>
fn to_value_string( &self, options: PrinterOptions<'_>, ) -> Result<String, Error<PrinterErrorKind>>
self into SVG content and return a string Read moreAuto Trait Implementations§
impl Freeze for PointerEvents
impl RefUnwindSafe for PointerEvents
impl Send for PointerEvents
impl Sync for PointerEvents
impl Unpin for PointerEvents
impl UnsafeUnpin for PointerEvents
impl UnwindSafe for PointerEvents
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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