[][src]Struct sylasteven_system_ui_nanovg::Render

pub struct Render {
    pub images: Map<PathBuf, Image<'static>>,
    // some fields omitted
}

The user interface render system.

Fields

images: Map<PathBuf, Image<'static>>

All loaded images mapped by their file path.

Methods

impl Render[src]

pub fn new(gl_window: GlWindow) -> Render[src]

Creates the render system by taking a GlWindow from glutin?

pub fn add_image(&mut self, path: &PathBuf) -> Option<PathBuf>[src]

Adds new images and maps them to their file path. When adding the same file multiple times, the image is not loaded again.

Trait Implementations

impl<H: Handler> System<H> for Render where
    H::Event: From<RenderEvent>, 
[src]

Auto Trait Implementations

impl !RefUnwindSafe for Render

impl !Send for Render

impl !Sync for Render

impl Unpin for Render

impl !UnwindSafe for Render

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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> Erased for T

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

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,