Struct sixtyfps_corelib::items::Path[][src]

#[repr(C)]
pub struct Path { pub x: Property<f32>, pub y: Property<f32>, pub width: Property<f32>, pub height: Property<f32>, pub elements: Property<PathData>, pub fill: Property<Brush>, pub fill_rule: Property<FillRule>, pub stroke: Property<Brush>, pub stroke_width: Property<f32>, pub cached_rendering_data: CachedRenderingData, }

The implementation of the Path element

Fields

x: Property<f32>y: Property<f32>width: Property<f32>height: Property<f32>elements: Property<PathData>fill: Property<Brush>fill_rule: Property<FillRule>stroke: Property<Brush>stroke_width: Property<f32>cached_rendering_data: CachedRenderingData

Implementations

impl Path[src]

pub const FIELD_OFFSETS: PathFieldsOffsets[src]

Return a struct containing the offset of for the fields of this struct

impl Path[src]

pub fn x(self: Pin<&Self>) -> f32[src]

pub fn y(self: Pin<&Self>) -> f32[src]

pub fn width(self: Pin<&Self>) -> f32[src]

pub fn height(self: Pin<&Self>) -> f32[src]

pub fn elements(self: Pin<&Self>) -> PathData[src]

pub fn fill(self: Pin<&Self>) -> Brush[src]

pub fn fill_rule(self: Pin<&Self>) -> FillRule[src]

pub fn stroke(self: Pin<&Self>) -> Brush[src]

pub fn stroke_width(self: Pin<&Self>) -> f32[src]

impl Path[src]

pub fn fitted_path_events(self: Pin<&Self>) -> (Vector2D<f32>, PathDataIterator)[src]

Returns an iterator of the events of the path and an offset, so that the shape fits into the width/height of the path while respecting the stroke width.

Trait Implementations

impl Default for Path[src]

impl HasStaticVTable<ItemVTable> for Path[src]

impl Item for Path[src]

impl ItemConsts for Path[src]

impl<'__dummy_lifetime> Unpin for Path where
    __MustNotImplUnpin<'__dummy_lifetime>: Unpin
[src]

Auto Trait Implementations

impl !RefUnwindSafe for Path

impl !Send for Path

impl !Sync for Path

impl UnwindSafe for Path

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> From<T> for T[src]

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

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.