[][src]Struct conrod_rendy::UiTexture

pub struct UiTexture<B> where
    B: Backend, 
{ /* fields omitted */ }

A simple type that wraps a rendy Texture and provides a conrod_core::mesh::ImageDimensions implementation.

Methods

impl<B> UiTexture<B> where
    B: Backend, 
[src]

pub fn from_rgba_bytes(
    bytes: &[u8],
    dimensions: [u32; 2],
    factory: &mut Factory<B>,
    queue_id: QueueId
) -> Result<Self, BuildError>
[src]

An optional, simplified constructor for loading a UiTexture from a slice of sRGBA bytes.

Methods from Deref<Target = Texture<B>>

pub fn image(&self) -> &Handle<Image<B>>

Get image handle.

pub fn sampler(&self) -> &Handle<Sampler<B>>

Get sampler handle.

pub fn view(&self) -> &ImageView<B>

Get reference to image view.

pub fn view_mut(&mut self) -> &mut ImageView<B>

Get mutable reference to image view.

pub fn premultiplied_alpha(&self) -> bool

Get whether texture has premultiplied alpha

Trait Implementations

impl<B> Deref for UiTexture<B> where
    B: Backend, 
[src]

type Target = Texture<B>

The resulting type after dereferencing.

impl<B> DerefMut for UiTexture<B> where
    B: Backend, 
[src]

impl<B> From<Texture<B>> for UiTexture<B> where
    B: Backend, 
[src]

impl<B> ImageDimensions for UiTexture<B> where
    B: Backend, 
[src]

impl<B> Into<Texture<B>> for UiTexture<B> where
    B: Backend, 
[src]

Auto Trait Implementations

impl<B> RefUnwindSafe for UiTexture<B> where
    <B as Backend>::Image: RefUnwindSafe,
    <B as Backend>::ImageView: RefUnwindSafe,
    <B as Backend>::Memory: RefUnwindSafe,
    <B as Backend>::Sampler: RefUnwindSafe

impl<B> Send for UiTexture<B> where
    <B as Backend>::Image: Send + Sync,
    <B as Backend>::ImageView: Send,
    <B as Backend>::Sampler: Send + Sync

impl<B> Sync for UiTexture<B> where
    <B as Backend>::Image: Send + Sync,
    <B as Backend>::ImageView: Send + Sync,
    <B as Backend>::Sampler: Send + Sync

impl<B> Unpin for UiTexture<B> where
    <B as Backend>::ImageView: Unpin

impl<B> UnwindSafe for UiTexture<B> where
    <B as Backend>::Image: RefUnwindSafe,
    <B as Backend>::ImageView: UnwindSafe,
    <B as Backend>::Memory: RefUnwindSafe,
    <B as Backend>::Sampler: RefUnwindSafe

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> 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.