[][src]Struct rubidium::MosaicControlValue

#[repr(transparent)]pub struct MosaicControlValue(_);

Controls the intensity of the "mosaic" special effect.

You can set the effect intensity for all backgrounds and also for objects, but then each background and object can also apply the effect (or not) according to its own controls (see BackgroundControlValue).

The visual effect of the mosaic is that pixels in the source data will be "duplicated" in the destination. When the mosaic is applied each "real" pixel will be copied over X additional pixels to the left, or Y additional pixels below, instead of what would normally be drawn there. When X or Y is 0 then it's the same as having no effect applied at all in that direction.

The mosaic effect also interacts with offsets, so if you don't want the duplication to start from the very upper left you can offset the background or object up or to the left so that the effect starts in the "middle" of a mosaic region.

Methods

impl MosaicControlValue[src]

pub const fn new() -> Self[src]

#[must_use]pub const fn bg_horizontal(self) -> u16[src]

#[must_use]pub const fn with_bg_horizontal(self, u: u16) -> Self[src]

pub fn set_bg_horizontal(&mut self, u: u16)[src]

#[must_use]pub const fn bg_vertical(self) -> u16[src]

#[must_use]pub const fn with_bg_vertical(self, u: u16) -> Self[src]

pub fn set_bg_vertical(&mut self, u: u16)[src]

#[must_use]pub const fn obj_horizontal(self) -> u16[src]

#[must_use]pub const fn with_obj_horizontal(self, u: u16) -> Self[src]

pub fn set_obj_horizontal(&mut self, u: u16)[src]

#[must_use]pub const fn obj_vertical(self) -> u16[src]

#[must_use]pub const fn with_obj_vertical(self, u: u16) -> Self[src]

pub fn set_obj_vertical(&mut self, u: u16)[src]

Trait Implementations

impl Clone for MosaicControlValue[src]

impl Copy for MosaicControlValue[src]

impl Debug for MosaicControlValue[src]

impl Default for MosaicControlValue[src]

impl Eq for MosaicControlValue[src]

impl PartialEq<MosaicControlValue> for MosaicControlValue[src]

impl StructuralEq for MosaicControlValue[src]

impl StructuralPartialEq for MosaicControlValue[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, 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.