Trait veloren_voxygen::ui::ice::widget::background_container::Background
source · pub trait Background<R: Renderer>: Sized {
// Required methods
fn width(&self) -> Length;
fn height(&self) -> Length;
fn aspect_ratio_fixed(&self) -> bool;
fn pixel_dims(&self, renderer: &R) -> (u16, u16);
fn draw(
&self,
renderer: &mut R,
defaults: &R::Defaults,
layout: Layout<'_>,
cursor_position: Point,
viewport: &Rectangle,
) -> R::Output;
}
Required Methods§
fn width(&self) -> Length
fn height(&self) -> Length
fn aspect_ratio_fixed(&self) -> bool
fn pixel_dims(&self, renderer: &R) -> (u16, u16)
fn draw( &self, renderer: &mut R, defaults: &R::Defaults, layout: Layout<'_>, cursor_position: Point, viewport: &Rectangle, ) -> R::Output
Object Safety§
This trait is not object safe.