[−][src]Struct crystal_engine::state::GuiElementTextureBuilder
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T
[src]
fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
fn is_size_suitable(size: usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SafeBorrow<T> for T
[src]
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,