Struct conrod_rendy::UiTexture
source · [−]pub struct UiTexture<B> where
B: Backend, { /* private fields */ }
Expand description
A simple type that wraps a rendy Texture
and provides a conrod_core::mesh::ImageDimensions
implementation.
Implementations
Methods from Deref<Target = Texture<B>>
pub fn image(&self) -> &Handle<Image<B>>
pub fn image(&self) -> &Handle<Image<B>>
Get image handle.
pub fn sampler(&self) -> &Handle<Sampler<B>>
pub fn sampler(&self) -> &Handle<Sampler<B>>
Get sampler handle.
pub fn view(&self) -> &ImageView<B>
pub fn view(&self) -> &ImageView<B>
Get reference to image view.
pub fn view_mut(&mut self) -> &mut ImageView<B>
pub fn view_mut(&mut self) -> &mut ImageView<B>
Get mutable reference to image view.
pub fn premultiplied_alpha(&self) -> bool
pub fn premultiplied_alpha(&self) -> bool
Get whether texture has premultiplied alpha
Trait Implementations
The dimensions of the image in pixels.