#[repr(transparent)]pub struct PathFillType {
pub repr: u8,
}Expand description
与 pk::SkPathFillType 低位取值一致。
Fields§
§repr: u8Implementations§
Source§impl PathFillType
impl PathFillType
pub const Winding: Self
pub const EvenOdd: Self
pub const InverseWinding: Self
pub const InverseEvenOdd: Self
Source§impl PathFillType
impl PathFillType
Sourcepub fn is_even_odd(self) -> bool
pub fn is_even_odd(self) -> bool
是否为奇偶类规则(EvenOdd / InverseEvenOdd)。
True for even-odd style fill rules.
Sourcepub fn is_inverse(self) -> bool
pub fn is_inverse(self) -> bool
是否为「反色」填充(填充几何外部)。 True for inverse fill (paint outside the geometry).
Sourcepub fn to_non_inverse(self) -> Self
pub fn to_non_inverse(self) -> Self
去掉 inverse 位,得到 Winding 或 EvenOdd。
Strips the inverse bit, yielding Winding or EvenOdd.
Trait Implementations§
Source§impl Clone for PathFillType
impl Clone for PathFillType
Source§impl Debug for PathFillType
impl Debug for PathFillType
Source§impl ExternType for PathFillType
impl ExternType for PathFillType
Source§impl Hash for PathFillType
impl Hash for PathFillType
Source§impl PartialEq for PathFillType
impl PartialEq for PathFillType
impl Copy for PathFillType
impl Eq for PathFillType
impl StructuralPartialEq for PathFillType
Auto Trait Implementations§
impl Freeze for PathFillType
impl RefUnwindSafe for PathFillType
impl Send for PathFillType
impl Sync for PathFillType
impl Unpin for PathFillType
impl UnsafeUnpin for PathFillType
impl UnwindSafe for PathFillType
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