Trait fyodor::drawable::Drawable

source ·
pub trait Drawable {
    type X;
    type Y;

    // Required method
    fn draw(
        &self,
        pos: impl Into<Pos<Self::X, Self::Y>>,
        frame: &mut impl CanvasLike
    );
}

Required Associated Types§

source

type X

source

type Y

Required Methods§

source

fn draw( &self, pos: impl Into<Pos<Self::X, Self::Y>>, frame: &mut impl CanvasLike )

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Drawable for &str

§

type X = i32

§

type Y = i32

source§

fn draw(&self, pos: impl Into<Dims>, frame: &mut impl CanvasLike)

source§

impl Drawable for (ContentStyle, &&str)

§

type X = i32

§

type Y = i32

source§

fn draw(&self, pos: impl Into<Dims>, frame: &mut impl CanvasLike)

source§

impl Drawable for (ContentStyle, &char)

§

type X = i32

§

type Y = i32

source§

fn draw(&self, pos: impl Into<Dims>, frame: &mut impl CanvasLike)

source§

impl Drawable for (ContentStyle, &Dbox)

§

type X = i32

§

type Y = i32

source§

fn draw(&self, pos: impl Into<Dims>, frame: &mut impl CanvasLike)

source§

impl Drawable for (ContentStyle, &String)

§

type X = i32

§

type Y = i32

source§

fn draw(&self, pos: impl Into<Dims>, frame: &mut impl CanvasLike)

source§

impl Drawable for char

§

type X = i32

§

type Y = i32

source§

fn draw(&self, pos: impl Into<Dims>, frame: &mut impl CanvasLike)

source§

impl Drawable for String

§

type X = i32

§

type Y = i32

source§

fn draw(&self, pos: impl Into<Dims>, frame: &mut impl CanvasLike)

source§

impl<D> Drawable for (ContentStyle, &Aligned<D>)
where D: Stylable + KnownHeight, for<'a> (ContentStyle, &'a D): Drawable<X = D::X, Y = i32>,

§

type X = <D as Drawable>::X

§

type Y = Align

source§

fn draw( &self, pos: impl Into<Pos<Self::X, Self::Y>>, frame: &mut impl CanvasLike )

source§

impl<D> Drawable for (ContentStyle, &AlignedOnX<D>)
where D: Stylable + KnownWidth, for<'a> (ContentStyle, &'a D): Drawable<X = i32, Y = D::Y>,

§

type X = Align

§

type Y = <D as Drawable>::Y

source§

fn draw( &self, pos: impl Into<Pos<Self::X, Self::Y>>, frame: &mut impl CanvasLike )

source§

impl<D> Drawable for (ContentStyle, &AlignedOnY<D>)
where D: Stylable + KnownHeight, for<'a> (ContentStyle, &'a D): Drawable<X = D::X, Y = i32>,

§

type X = <D as Drawable>::X

§

type Y = Align

source§

fn draw( &self, pos: impl Into<Pos<Self::X, Self::Y>>, frame: &mut impl CanvasLike )

source§

impl<D> Drawable for &D
where D: Drawable,

§

type X = <D as Drawable>::X

§

type Y = <D as Drawable>::Y

source§

fn draw( &self, pos: impl Into<Pos<Self::X, Self::Y>>, frame: &mut impl CanvasLike )

source§

impl<T> Drawable for (ContentStyle, &Menu<T>)
where Menu<T>: Clone + Drawable,

§

type X = <Menu<T> as Drawable>::X

§

type Y = <Menu<T> as Drawable>::Y

source§

fn draw( &self, pos: impl Into<Pos<Self::X, Self::Y>>, frame: &mut impl CanvasLike )

Implementors§

source§

impl Drawable for &mut FullScreenPopup

§

type X = Align

§

type Y = Align

source§

impl Drawable for Cell

§

type X = i32

§

type Y = i32

source§

impl Drawable for Popup

§

type X = Align

§

type Y = Align

source§

impl Drawable for Dbox

§

type X = i32

§

type Y = i32

source§

impl<D> Drawable for Aligned<D>
where D: FullyKnown + Drawable<X = i32, Y = i32>,

§

type X = Align

§

type Y = Align

source§

impl<D> Drawable for AlignedOnX<D>
where D: KnownWidth + Drawable<X = i32>,

§

type X = Align

§

type Y = <D as Drawable>::Y

source§

impl<D> Drawable for AlignedOnY<D>
where D: KnownHeight + Drawable<Y = i32>,

§

type X = <D as Drawable>::X

§

type Y = Align

source§

impl<T> Drawable for Menu<T>
where T: FullyKnown + Stylable, for<'a> (ContentStyle, &'a T): Drawable<X = i32, Y = i32>,

§

type X = i32

§

type Y = i32