[−][src]Struct liriodendron::log::tools::texturessettings::TexturesSettings
Represents textures' parameters
Fields
pixel_ratio: [u16; 15]
Ratio between grid's cell and texture's pixels
current_pixel_ratio: usize
border_ratio: u8
Ratio between FullPixel::BorderPixel color and FullPixel::BodyPixel color
palette: PaletteGeneration
number_generation: u16
format: [ImageFormat; 2]
current_format: usize
Methods
impl TexturesSettings
[src]
pub fn new() -> TexturesSettings
[src]
pub fn get_pixel_ratio(&self) -> u16
[src]
pub fn incr_pixel_ratio(&mut self)
[src]
pub fn decr_pixel_ratio(&mut self)
[src]
pub fn get_border_ratio(&self) -> u8
[src]
pub fn get_palette(&self) -> PaletteGeneration
[src]
pub fn get_number(&self) -> u16
[src]
pub fn set_number(&mut self, number: u16)
[src]
pub fn get_format(&self) -> ImageFormat
[src]
pub fn next_format(&mut self)
[src]
pub fn previous_format(&mut self)
[src]
pub fn get_format_info(&self) -> ([ImageFormat; 2], usize)
[src]
Auto Trait Implementations
impl RefUnwindSafe for TexturesSettings
impl Send for TexturesSettings
impl Sync for TexturesSettings
impl Unpin for TexturesSettings
impl UnwindSafe for TexturesSettings
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,