pub struct DisplayControlValue(/* private fields */);
Expand description
Top level control for the LCD display.
video_mode
: Video mode setting, seeVideoMode
.display_frame1
: When using video modes 4 or 5, controls if frame 0 or 1 is displayed.hblank_memory_free
: If this is enabled the video memory (VRAM, PALRAM, OAM) will be free to access without wait states during the horizontal-blank period. However, in exchange, there’s less time available for OBJ display computation so not as many of the video objects can be displayed (details).obj_vram_1d
: If the video ram should be used as “1d” or “2d” when displaying an OBJ (details).forced_blank
: If this is set the screen displays full white instead of anything else. The vertical counter will continue to change as normal while forced blank is in effect.display_bgX
: For background each layer, if this layer should be shown. Background availability, and the registers involved, depends on the video mode selected.display_obj
: Display the object entries. The obj layer is always available.display_winX
: Enable the layers of the Window special effect, also controlled viaWIN_CONTROL
,WIN_HORIZONTAL
, andWIN_VERTICAL
.
Implementations§
Source§impl DisplayControlValue
impl DisplayControlValue
pub const fn new() -> Self
pub const fn video_mode(self) -> VideoMode
pub const fn with_video_mode(self, t: VideoMode) -> Self
pub fn set_video_mode(&mut self, t: VideoMode)
pub const fn display_frame1(self) -> bool
pub const fn with_display_frame1(self, b: bool) -> Self
pub fn set_display_frame1(&mut self, b: bool)
pub const fn hblank_memory_free(self) -> bool
pub const fn with_hblank_memory_free(self, b: bool) -> Self
pub fn set_hblank_memory_free(&mut self, b: bool)
pub const fn obj_vram_1d(self) -> bool
pub const fn with_obj_vram_1d(self, b: bool) -> Self
pub fn set_obj_vram_1d(&mut self, b: bool)
pub const fn forced_blank(self) -> bool
pub const fn with_forced_blank(self, b: bool) -> Self
pub fn set_forced_blank(&mut self, b: bool)
pub const fn display_bg0(self) -> bool
pub const fn with_display_bg0(self, b: bool) -> Self
pub fn set_display_bg0(&mut self, b: bool)
pub const fn display_bg1(self) -> bool
pub const fn with_display_bg1(self, b: bool) -> Self
pub fn set_display_bg1(&mut self, b: bool)
pub const fn display_bg2(self) -> bool
pub const fn with_display_bg2(self, b: bool) -> Self
pub fn set_display_bg2(&mut self, b: bool)
pub const fn display_bg3(self) -> bool
pub const fn with_display_bg3(self, b: bool) -> Self
pub fn set_display_bg3(&mut self, b: bool)
pub const fn display_obj(self) -> bool
pub const fn with_display_obj(self, b: bool) -> Self
pub fn set_display_obj(&mut self, b: bool)
pub const fn display_win0(self) -> bool
pub const fn with_display_win0(self, b: bool) -> Self
pub fn set_display_win0(&mut self, b: bool)
pub const fn display_win1(self) -> bool
pub const fn with_display_win1(self, b: bool) -> Self
pub fn set_display_win1(&mut self, b: bool)
pub const fn display_win_obj(self) -> bool
pub const fn with_display_win_obj(self, b: bool) -> Self
pub fn set_display_win_obj(&mut self, b: bool)
Trait Implementations§
Source§impl Clone for DisplayControlValue
impl Clone for DisplayControlValue
Source§fn clone(&self) -> DisplayControlValue
fn clone(&self) -> DisplayControlValue
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 DisplayControlValue
impl Debug for DisplayControlValue
Source§impl Default for DisplayControlValue
impl Default for DisplayControlValue
Source§fn default() -> DisplayControlValue
fn default() -> DisplayControlValue
Returns the “default value” for a type. Read more
Source§impl PartialEq for DisplayControlValue
impl PartialEq for DisplayControlValue
impl Copy for DisplayControlValue
impl Eq for DisplayControlValue
impl StructuralPartialEq for DisplayControlValue
Auto Trait Implementations§
impl Freeze for DisplayControlValue
impl RefUnwindSafe for DisplayControlValue
impl Send for DisplayControlValue
impl Sync for DisplayControlValue
impl Unpin for DisplayControlValue
impl UnwindSafe for DisplayControlValue
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