[][src]Struct rubidium::BlendControlValue

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

This lets you configure hardware color blending.

There's three possible ColorSpecialEffect options you can enable: alpha blending, increase brightness, and decrease brightness. You can also set no effect to occur.

When selecting an effect, it uses the topmost pixel from all layers among those enabled as a "1st target". If the effect is for alpha blending then it will also then select a pixel to blend with from the topmost pixel among those selected for "2nd target". However, the second pixel to alpha blend must be in the next lower priority layer from the first pixel.

Methods

impl BlendControlValue[src]

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

#[must_use]pub const fn bg0_1st_target(self) -> bool[src]

#[must_use]pub const fn with_bg0_1st_target(self, b: bool) -> Self[src]

pub fn set_bg0_1st_target(&mut self, b: bool)[src]

#[must_use]pub const fn bg1_1st_target(self) -> bool[src]

#[must_use]pub const fn with_bg1_1st_target(self, b: bool) -> Self[src]

pub fn set_bg1_1st_target(&mut self, b: bool)[src]

#[must_use]pub const fn bg2_1st_target(self) -> bool[src]

#[must_use]pub const fn with_bg2_1st_target(self, b: bool) -> Self[src]

pub fn set_bg2_1st_target(&mut self, b: bool)[src]

#[must_use]pub const fn bg3_1st_target(self) -> bool[src]

#[must_use]pub const fn with_bg3_1st_target(self, b: bool) -> Self[src]

pub fn set_bg3_1st_target(&mut self, b: bool)[src]

#[must_use]pub const fn obj_1st_target(self) -> bool[src]

#[must_use]pub const fn with_obj_1st_target(self, b: bool) -> Self[src]

pub fn set_obj_1st_target(&mut self, b: bool)[src]

#[must_use]pub const fn backdrop_1st_target(self) -> bool[src]

#[must_use]pub const fn with_backdrop_1st_target(self, b: bool) -> Self[src]

pub fn set_backdrop_1st_target(&mut self, b: bool)[src]

#[must_use]pub const fn effect(self) -> ColorSpecialEffect[src]

#[must_use]pub const fn with_effect(self, t: ColorSpecialEffect) -> Self[src]

pub fn set_effect(&mut self, t: ColorSpecialEffect)[src]

#[must_use]pub const fn bg0_2nd_target(self) -> bool[src]

#[must_use]pub const fn with_bg0_2nd_target(self, b: bool) -> Self[src]

pub fn set_bg0_2nd_target(&mut self, b: bool)[src]

#[must_use]pub const fn bg1_2nd_target(self) -> bool[src]

#[must_use]pub const fn with_bg1_2nd_target(self, b: bool) -> Self[src]

pub fn set_bg1_2nd_target(&mut self, b: bool)[src]

#[must_use]pub const fn bg2_2nd_target(self) -> bool[src]

#[must_use]pub const fn with_bg2_2nd_target(self, b: bool) -> Self[src]

pub fn set_bg2_2nd_target(&mut self, b: bool)[src]

#[must_use]pub const fn bg3_2nd_target(self) -> bool[src]

#[must_use]pub const fn with_bg3_2nd_target(self, b: bool) -> Self[src]

pub fn set_bg3_2nd_target(&mut self, b: bool)[src]

#[must_use]pub const fn obj_2nd_target(self) -> bool[src]

#[must_use]pub const fn with_obj_2nd_target(self, b: bool) -> Self[src]

pub fn set_obj_2nd_target(&mut self, b: bool)[src]

#[must_use]pub const fn backdrop_2nd_target(self) -> bool[src]

#[must_use]pub const fn with_backdrop_2nd_target(self, b: bool) -> Self[src]

pub fn set_backdrop_2nd_target(&mut self, b: bool)[src]

Trait Implementations

impl Clone for BlendControlValue[src]

impl Copy for BlendControlValue[src]

impl Debug for BlendControlValue[src]

impl Default for BlendControlValue[src]

impl Eq for BlendControlValue[src]

impl PartialEq<BlendControlValue> for BlendControlValue[src]

impl StructuralEq for BlendControlValue[src]

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