Trait gdk4::prelude::TextureExt
source · pub trait TextureExt: IsA<Texture> + Sealed + 'static {
// Provided methods
fn format(&self) -> MemoryFormat { ... }
fn height(&self) -> i32 { ... }
fn width(&self) -> i32 { ... }
fn save_to_png(&self, filename: impl AsRef<Path>) -> Result<(), BoolError> { ... }
fn save_to_png_bytes(&self) -> Bytes { ... }
fn save_to_tiff(&self, filename: impl AsRef<Path>) -> Result<(), BoolError> { ... }
fn save_to_tiff_bytes(&self) -> Bytes { ... }
}
Provided Methods§
fn format(&self) -> MemoryFormat
Available on crate feature
v4_10
only.fn height(&self) -> i32
fn width(&self) -> i32
fn save_to_png(&self, filename: impl AsRef<Path>) -> Result<(), BoolError>
fn save_to_png_bytes(&self) -> Bytes
Available on crate feature
v4_6
only.fn save_to_tiff(&self, filename: impl AsRef<Path>) -> Result<(), BoolError>
Available on crate feature
v4_6
only.fn save_to_tiff_bytes(&self) -> Bytes
Available on crate feature
v4_6
only.Object Safety§
This trait is not object safe.