pub struct TextureInfo { /* private fields */ }Implementations§
Source§impl TextureInfo
impl TextureInfo
pub fn new( format: PixelFormat, width: u32, height: u32, filter: Filter, wrap: Wrap, mipmaps: bool, ) -> Self
pub fn width(&self) -> u32
pub fn set_width(&mut self, width: u32)
pub fn height(&self) -> u32
pub fn set_height(&mut self, height: u32)
pub fn get_format(&self) -> PixelFormat
pub fn set_format(&mut self, format: PixelFormat)
pub fn wrap(&self) -> Wrap
pub fn set_wrap(&mut self, wrap: Wrap)
pub fn filter(&self) -> Filter
pub fn set_filter(&mut self, filter: Filter)
pub fn mipmaps(&self) -> bool
pub fn set_mipmaps(&mut self, mipmaps: bool)
Trait Implementations§
Source§impl Clone for TextureInfo
impl Clone for TextureInfo
Source§fn clone(&self) -> TextureInfo
fn clone(&self) -> TextureInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextureInfo
impl Debug for TextureInfo
Source§impl Default for TextureInfo
impl Default for TextureInfo
Source§impl PartialEq for TextureInfo
impl PartialEq for TextureInfo
impl Copy for TextureInfo
impl StructuralPartialEq for TextureInfo
Auto Trait Implementations§
impl Freeze for TextureInfo
impl RefUnwindSafe for TextureInfo
impl Send for TextureInfo
impl Sync for TextureInfo
impl Unpin for TextureInfo
impl UnwindSafe for TextureInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more