#[repr(transparent)]pub struct AsCtrl(pub u32);Expand description
Alpha Surface Control
Tuple Fields§
§0: u32Implementations§
Source§impl AsCtrl
impl AsCtrl
Sourcepub const fn alpha_ctrl(&self) -> AlphaCtrl
pub const fn alpha_ctrl(&self) -> AlphaCtrl
Determines how the alpha value is constructed for this alpha surface
Sourcepub const fn set_alpha_ctrl(&mut self, val: AlphaCtrl)
pub const fn set_alpha_ctrl(&mut self, val: AlphaCtrl)
Determines how the alpha value is constructed for this alpha surface
Sourcepub const fn enable_colorkey(&self) -> bool
pub const fn enable_colorkey(&self) -> bool
Indicates that colorkey functionality is enabled for this alpha surface
Sourcepub const fn set_enable_colorkey(&mut self, val: bool)
pub const fn set_enable_colorkey(&mut self, val: bool)
Indicates that colorkey functionality is enabled for this alpha surface
Sourcepub const fn format(&self) -> AsCtrlFormat
pub const fn format(&self) -> AsCtrlFormat
Indicates the input buffer format for AS.
Sourcepub const fn set_format(&mut self, val: AsCtrlFormat)
pub const fn set_format(&mut self, val: AsCtrlFormat)
Indicates the input buffer format for AS.
Sourcepub const fn alpha(&self) -> u8
pub const fn alpha(&self) -> u8
Alpha modifier used when the ALPHA_MULTIPLY or ALPHA_OVERRIDE values are programmed in PXP_AS_CTRL[ALPHA_CTRL]
Sourcepub const fn set_alpha(&mut self, val: u8)
pub const fn set_alpha(&mut self, val: u8)
Alpha modifier used when the ALPHA_MULTIPLY or ALPHA_OVERRIDE values are programmed in PXP_AS_CTRL[ALPHA_CTRL]
Sourcepub const fn alpha_invert(&self) -> AlphaInvert
pub const fn alpha_invert(&self) -> AlphaInvert
Setting this bit to logic 0 will not alter the alpha value
Sourcepub const fn set_alpha_invert(&mut self, val: AlphaInvert)
pub const fn set_alpha_invert(&mut self, val: AlphaInvert)
Setting this bit to logic 0 will not alter the alpha value
Trait Implementations§
impl Copy for AsCtrl
impl Eq for AsCtrl
impl StructuralPartialEq for AsCtrl
Auto Trait Implementations§
impl Freeze for AsCtrl
impl RefUnwindSafe for AsCtrl
impl Send for AsCtrl
impl Sync for AsCtrl
impl Unpin for AsCtrl
impl UnwindSafe for AsCtrl
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