[][src]Struct crystal_engine::state::GuiElementTextureBuilder

pub struct GuiElementTextureBuilder<'a, 'b> { /* fields omitted */ }

A struct that is used to create a GuiElement with a texture. This is created by calling GameState::create_gui_element().texture(".."). Currently nothing can be manipulated in this struct.

Implementations

impl<'a, 'b> GuiElementTextureBuilder<'a, 'b>[src]

pub fn build(self) -> Result<GuiElement, GuiError>[src]

Finish building the element and return it. The returned GuiElement has to be stored somewhere, as it will be removed from the engine when dropped. Starting next frame, the returned GuiElement will be rendered on the screen.

Auto Trait Implementations

impl<'a, 'b> !RefUnwindSafe for GuiElementTextureBuilder<'a, 'b>

impl<'a, 'b> !Send for GuiElementTextureBuilder<'a, 'b>

impl<'a, 'b> !Sync for GuiElementTextureBuilder<'a, 'b>

impl<'a, 'b> Unpin for GuiElementTextureBuilder<'a, 'b>

impl<'a, 'b> !UnwindSafe for GuiElementTextureBuilder<'a, 'b>

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> Content for T[src]

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

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

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

impl<T> SetParameter for T

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.