[−][src]Struct rubidium::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]
fn clone(&self) -> BlendControlValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for BlendControlValue
[src]
impl Debug for BlendControlValue
[src]
impl Default for BlendControlValue
[src]
fn default() -> BlendControlValue
[src]
impl Eq for BlendControlValue
[src]
impl PartialEq<BlendControlValue> for BlendControlValue
[src]
fn eq(&self, other: &BlendControlValue) -> bool
[src]
fn ne(&self, other: &BlendControlValue) -> bool
[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]
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, 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>,