[][src]Struct liriodendron::log::tools::texturessettings::TexturesSettings

pub struct TexturesSettings {
    pixel_ratio: [u16; 15],
    current_pixel_ratio: usize,
    border_ratio: u8,
    palette: PaletteGeneration,
    number_generation: u16,
    format: [ImageFormat; 2],
    current_format: usize,
}

Represents textures' parameters

Fields

pixel_ratio: [u16; 15]

Ratio between grid's cell and texture's pixels

current_pixel_ratio: usizeborder_ratio: u8

Ratio between FullPixel::BorderPixel color and FullPixel::BodyPixel color

palette: PaletteGenerationnumber_generation: u16format: [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]

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> SetParameter for T

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,