Struct gba::video::BlendControl
source · pub struct BlendControl(/* private fields */);
Implementations§
source§impl BlendControl
impl BlendControl
pub const fn new() -> Self
pub const fn target1_bg0(self) -> bool
pub const fn with_target1_bg0(self, b: bool) -> Self
pub const fn target1_bg1(self) -> bool
pub const fn with_target1_bg1(self, b: bool) -> Self
pub const fn target1_bg2(self) -> bool
pub const fn with_target1_bg2(self, b: bool) -> Self
pub const fn target1_bg3(self) -> bool
pub const fn with_target1_bg3(self, b: bool) -> Self
pub const fn target1_obj(self) -> bool
pub const fn with_target1_obj(self, b: bool) -> Self
pub const fn target1_backdrop(self) -> bool
pub const fn with_target1_backdrop(self, b: bool) -> Self
pub const fn mode(self) -> ColorEffectMode
pub const fn with_mode(self, val: ColorEffectMode) -> Self
pub const fn target2_bg0(self) -> bool
pub const fn with_target2_bg0(self, b: bool) -> Self
pub const fn target2_bg1(self) -> bool
pub const fn with_target2_bg1(self, b: bool) -> Self
pub const fn target2_bg2(self) -> bool
pub const fn with_target2_bg2(self, b: bool) -> Self
pub const fn target2_bg3(self) -> bool
pub const fn with_target2_bg3(self, b: bool) -> Self
pub const fn target2_obj(self) -> bool
pub const fn with_target2_obj(self, b: bool) -> Self
pub const fn target2_backdrop(self) -> bool
pub const fn with_target2_backdrop(self, b: bool) -> Self
Trait Implementations§
source§impl Clone for BlendControl
impl Clone for BlendControl
source§fn clone(&self) -> BlendControl
fn clone(&self) -> BlendControl
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 BlendControl
impl Debug for BlendControl
source§impl Default for BlendControl
impl Default for BlendControl
source§fn default() -> BlendControl
fn default() -> BlendControl
Returns the “default value” for a type. Read more
source§impl Hash for BlendControl
impl Hash for BlendControl
source§impl Ord for BlendControl
impl Ord for BlendControl
source§fn cmp(&self, other: &BlendControl) -> Ordering
fn cmp(&self, other: &BlendControl) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for BlendControl
impl PartialEq for BlendControl
source§fn eq(&self, other: &BlendControl) -> bool
fn eq(&self, other: &BlendControl) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BlendControl
impl PartialOrd for BlendControl
source§fn partial_cmp(&self, other: &BlendControl) -> Option<Ordering>
fn partial_cmp(&self, other: &BlendControl) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for BlendControl
impl Eq for BlendControl
impl StructuralPartialEq for BlendControl
Auto Trait Implementations§
impl Freeze for BlendControl
impl RefUnwindSafe for BlendControl
impl Send for BlendControl
impl Sync for BlendControl
impl Unpin for BlendControl
impl UnwindSafe for BlendControl
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