Trait KnownSize
ytesrev::drawable
pub trait KnownSize: Drawable { fn width(&self) -> usize; fn height(&self) -> usize; }
An object that has a determined size, like an image, but not a solid that can fit any shape it's called with
fn width(&self) -> usize
The width of the object
fn height(&self) -> usize
The height of the object
impl<T: Drawable + KnownSize> KnownSize for Anchor<T>
impl<T: ImageContainer + KnownSize> KnownSize for Ditherer<T>
impl KnownSize for PngImage
impl KnownSize for LatexObj
impl KnownSize for Stack
impl<T: Drawable + KnownSize> KnownSize for Margin<T>
impl<T: Drawable> KnownSize for WithSize<T>