Skip to main content

RenderSize

Trait RenderSize 

Source
pub trait RenderSize {
    // Required methods
    fn width(&self) -> u32;
    fn height(&self) -> u32;
}
Expand description

Trait for things that have a width and height in pixels

Required Methods§

Source

fn width(&self) -> u32

Width of the render, in voxels or pixels

Source

fn height(&self) -> u32

Height of the render, in voxels or pixels

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl RenderSize for fidget_raster::pixel::RenderConfig<'_>

Source§

impl RenderSize for fidget_raster::voxel::RenderConfig<'_>

Source§

impl RenderSize for fidget_raster::pixel::RenderSize

Source§

impl RenderSize for fidget_raster::voxel::RenderSize