Skip to main content

HTMLDrawable

Trait HTMLDrawable 

Source
pub trait HTMLDrawable {
    // Required method
    fn draw(self, canvas: &mut HTMLCanvas);
}
Expand description

Types that can draw themselves onto an HTMLCanvas (typically cotis-defaults commands).

Required Methods§

Source

fn draw(self, canvas: &mut HTMLCanvas)

Renders this command onto canvas, usually via ensure_command_element and CSS pushes.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl HTMLDrawable for ClipEnd

Source§

fn draw(self, canvas: &mut HTMLCanvas)

Source§

impl<'a, ExtraData: OptionalExtraHTMLData> HTMLDrawable for Border<'a, ExtraData>

Source§

fn draw(self, canvas: &mut HTMLCanvas)

Source§

impl<'a, ExtraData: OptionalExtraHTMLData> HTMLDrawable for ClipStart<'a, ExtraData>

Source§

fn draw(self, canvas: &mut HTMLCanvas)

Source§

impl<'a, ExtraData: OptionalExtraHTMLData> HTMLDrawable for Rectangle<'a, ExtraData>

Source§

fn draw(self, canvas: &mut HTMLCanvas)

Source§

impl<'a, ExtraData: OptionalExtraHTMLData> HTMLDrawable for Text<'a, ExtraData>

Source§

fn draw(self, canvas: &mut HTMLCanvas)

Source§

impl<'a, ImageData: URLImage, ExtraData: OptionalExtraHTMLData> HTMLDrawable for Image<'a, ImageData, ExtraData>

Source§

fn draw(self, canvas: &mut HTMLCanvas)

Source§

impl<T: HTMLDrawable, L: IsRenderList + HTMLDrawable> HTMLDrawable for RenderTList<T, L>

Source§

fn draw(self, canvas: &mut HTMLCanvas)

Source§

impl<T: HTMLDrawable> HTMLDrawable for RenderTList<T, ()>

Source§

fn draw(self, canvas: &mut HTMLCanvas)

Implementors§