Trait composable::views::Path

source ·
pub trait Path: Sized {
    // Required method
    fn draw(
        &self,
        x: f32,
        y: f32,
        w: f32,
        h: f32,
        transform: &Transform,
        onto: &mut impl Output,
    );

    // Provided methods
    fn fill(self) -> Shape<Self> { ... }
    fn fixed(self, width: f32, height: f32) -> Shape<Self> { ... }
}
Available on crate features unstable and views only.

Required Methods§

source

fn draw( &self, x: f32, y: f32, w: f32, h: f32, transform: &Transform, onto: &mut impl Output, )

Provided Methods§

source

fn fill(self) -> Shape<Self>

source

fn fixed(self, width: f32, height: f32) -> Shape<Self>

Object Safety§

This trait is not object safe.

Implementors§