pub struct BlendControlValue(/* private fields */);
Expand description
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.
Implementations§
Source§impl BlendControlValue
impl BlendControlValue
pub const fn new() -> Self
pub const fn bg0_1st_target(self) -> bool
pub const fn with_bg0_1st_target(self, b: bool) -> Self
pub fn set_bg0_1st_target(&mut self, b: bool)
pub const fn bg1_1st_target(self) -> bool
pub const fn with_bg1_1st_target(self, b: bool) -> Self
pub fn set_bg1_1st_target(&mut self, b: bool)
pub const fn bg2_1st_target(self) -> bool
pub const fn with_bg2_1st_target(self, b: bool) -> Self
pub fn set_bg2_1st_target(&mut self, b: bool)
pub const fn bg3_1st_target(self) -> bool
pub const fn with_bg3_1st_target(self, b: bool) -> Self
pub fn set_bg3_1st_target(&mut self, b: bool)
pub const fn obj_1st_target(self) -> bool
pub const fn with_obj_1st_target(self, b: bool) -> Self
pub fn set_obj_1st_target(&mut self, b: bool)
pub const fn backdrop_1st_target(self) -> bool
pub const fn with_backdrop_1st_target(self, b: bool) -> Self
pub fn set_backdrop_1st_target(&mut self, b: bool)
pub const fn effect(self) -> ColorSpecialEffect
pub const fn with_effect(self, t: ColorSpecialEffect) -> Self
pub fn set_effect(&mut self, t: ColorSpecialEffect)
pub const fn bg0_2nd_target(self) -> bool
pub const fn with_bg0_2nd_target(self, b: bool) -> Self
pub fn set_bg0_2nd_target(&mut self, b: bool)
pub const fn bg1_2nd_target(self) -> bool
pub const fn with_bg1_2nd_target(self, b: bool) -> Self
pub fn set_bg1_2nd_target(&mut self, b: bool)
pub const fn bg2_2nd_target(self) -> bool
pub const fn with_bg2_2nd_target(self, b: bool) -> Self
pub fn set_bg2_2nd_target(&mut self, b: bool)
pub const fn bg3_2nd_target(self) -> bool
pub const fn with_bg3_2nd_target(self, b: bool) -> Self
pub fn set_bg3_2nd_target(&mut self, b: bool)
pub const fn obj_2nd_target(self) -> bool
pub const fn with_obj_2nd_target(self, b: bool) -> Self
pub fn set_obj_2nd_target(&mut self, b: bool)
pub const fn backdrop_2nd_target(self) -> bool
pub const fn with_backdrop_2nd_target(self, b: bool) -> Self
pub fn set_backdrop_2nd_target(&mut self, b: bool)
Trait Implementations§
Source§impl Clone for BlendControlValue
impl Clone for BlendControlValue
Source§fn clone(&self) -> BlendControlValue
fn clone(&self) -> BlendControlValue
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BlendControlValue
impl Debug for BlendControlValue
Source§impl Default for BlendControlValue
impl Default for BlendControlValue
Source§fn default() -> BlendControlValue
fn default() -> BlendControlValue
Returns the “default value” for a type. Read more
Source§impl PartialEq for BlendControlValue
impl PartialEq for BlendControlValue
impl Copy for BlendControlValue
impl Eq for BlendControlValue
impl StructuralPartialEq for BlendControlValue
Auto Trait Implementations§
impl Freeze for BlendControlValue
impl RefUnwindSafe for BlendControlValue
impl Send for BlendControlValue
impl Sync for BlendControlValue
impl Unpin for BlendControlValue
impl UnwindSafe for BlendControlValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more