[][src]Struct qt_core::FillRule

#[repr(transparent)]pub struct FillRule(_);

Specifies which method should be used to fill the paths and polygons.

C++ enum: Qt::FillRule.

C++ documentation:

Specifies which method should be used to fill the paths and polygons.

Methods

impl FillRule[src]

pub fn to_int(&self) -> c_int[src]

impl FillRule[src]

pub const OddEvenFill: FillRule[src]

Specifies that the region is filled using the odd even fill rule. With this rule, we determine whether a point is inside the shape by using the following method. Draw a horizontal line from the point to a location outside the shape, and count the number of intersections. If the number of intersections is an odd number, the point is inside the shape. This mode is the default. (C++ enum variant: OddEvenFill = 0)

pub const WindingFill: FillRule[src]

Specifies that the region is filled using the non zero winding rule. With this rule, we determine whether a point is inside the shape by using the following method. Draw a horizontal line from the point to a location outside the shape. Determine whether the direction of the line at each intersection point is up or down. The winding number is determined by summing the direction of each intersection. If the number is non zero, the point is inside the shape. This fill mode can also in most cases be considered as the intersection of closed shapes. (C++ enum variant: WindingFill = 1)

Trait Implementations

impl Clone for FillRule[src]

impl Copy for FillRule[src]

impl Debug for FillRule[src]

impl Eq for FillRule[src]

impl From<FillRule> for c_int[src]

impl From<i32> for FillRule[src]

impl PartialEq<FillRule> for FillRule[src]

impl StructuralEq for FillRule[src]

impl StructuralPartialEq for FillRule[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.