#[repr(u32)]pub enum Tvg_Fill_Rule {
TVG_FILL_RULE_NON_ZERO = 0,
TVG_FILL_RULE_EVEN_ODD = 1,
}Expand description
@brief Enumeration specifying the algorithm used to establish which parts of the shape are treated as the inside of the shape.
Variants§
TVG_FILL_RULE_NON_ZERO = 0
< A line from the point to a location outside the shape is drawn. The intersections of the line with the path segment of the shape are counted. Starting from zero, if the path segment of the shape crosses the line clockwise, one is added, otherwise one is subtracted. If the resulting sum is non zero, the point is inside the shape.
TVG_FILL_RULE_EVEN_ODD = 1
< A line from the point to a location outside the shape is drawn and its intersections with the path segments of the shape are counted. If the number of intersections is an odd number, the point is inside the shape.
Trait Implementations§
Source§impl Clone for Tvg_Fill_Rule
impl Clone for Tvg_Fill_Rule
Source§fn clone(&self) -> Tvg_Fill_Rule
fn clone(&self) -> Tvg_Fill_Rule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Tvg_Fill_Rule
impl Debug for Tvg_Fill_Rule
Source§impl Hash for Tvg_Fill_Rule
impl Hash for Tvg_Fill_Rule
Source§impl PartialEq for Tvg_Fill_Rule
impl PartialEq for Tvg_Fill_Rule
Source§fn eq(&self, other: &Tvg_Fill_Rule) -> bool
fn eq(&self, other: &Tvg_Fill_Rule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Tvg_Fill_Rule
impl Eq for Tvg_Fill_Rule
impl StructuralPartialEq for Tvg_Fill_Rule
Auto Trait Implementations§
impl Freeze for Tvg_Fill_Rule
impl RefUnwindSafe for Tvg_Fill_Rule
impl Send for Tvg_Fill_Rule
impl Sync for Tvg_Fill_Rule
impl Unpin for Tvg_Fill_Rule
impl UnsafeUnpin for Tvg_Fill_Rule
impl UnwindSafe for Tvg_Fill_Rule
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