Struct dotrix_core::renderer::Overlay[][src]

pub struct Overlay {
    pub provider: Box<dyn Provider>,
}

Fields

provider: Box<dyn Provider>

Implementations

impl Overlay[src]

pub fn new(provider: Box<dyn Provider>) -> Self[src]

pub fn provider<T: 'static + Send + Sync>(&self) -> Option<&T>[src]

pub fn provider_mut<T: 'static + Send + Sync>(&mut self) -> Option<&mut T>[src]

pub fn update(
    &mut self,
    assets: &mut Assets,
    input: &Input,
    scale_factor: f32,
    surface_width: f32,
    surface_height: f32
)
[src]

pub fn widgets(
    &self,
    scale_factor: f32,
    surface_width: f32,
    surface_height: f32
) -> Vec<Widget>
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Component for T where
    T: 'static + Send + Sync
[src]

impl<T> Downcast<T> for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T