Struct graphics_tree::Texture
[−]
[src]
pub struct Texture(pub Arc<RwLock<TextureInner>>);
Simplifies some common operations on textures.
Methods
impl Texture
[src]
fn with_image_mut<F>(&self, f: F) where F: FnOnce(&mut RgbaImage)
Edit image.
Trait Implementations
impl Clone for Texture
[src]
fn clone(&self) -> Texture
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl ImageSize for Texture
[src]
fn get_size(&self) -> (u32, u32)
Get the image size.
fn get_width(&self) -> u32
Gets the image width.
fn get_height(&self) -> u32
Gets the image height.