Struct solstice::texture::TextureInfo[][src]

pub struct TextureInfo { /* fields omitted */ }

Implementations

impl TextureInfo[src]

pub fn new(
    format: PixelFormat,
    width: u32,
    height: u32,
    filter: Filter,
    wrap: Wrap,
    mipmaps: bool
) -> Self
[src]

pub fn width(&self) -> u32[src]

pub fn set_width(&mut self, width: u32)[src]

pub fn height(&self) -> u32[src]

pub fn set_height(&mut self, height: u32)[src]

pub fn get_format(&self) -> PixelFormat[src]

pub fn set_format(&mut self, format: PixelFormat)[src]

pub fn wrap(&self) -> Wrap[src]

pub fn set_wrap(&mut self, wrap: Wrap)[src]

pub fn filter(&self) -> Filter[src]

pub fn set_filter(&mut self, filter: Filter)[src]

pub fn mipmaps(&self) -> bool[src]

pub fn set_mipmaps(&mut self, mipmaps: bool)[src]

Trait Implementations

impl Clone for TextureInfo[src]

impl Copy for TextureInfo[src]

impl Debug for TextureInfo[src]

impl Default for TextureInfo[src]

impl PartialEq<TextureInfo> for TextureInfo[src]

impl StructuralPartialEq for TextureInfo[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.