pub struct FramebufferInfo {
pub address: u64,
pub pitch: u32,
pub width: u32,
pub height: u32,
pub bpp: u8,
pub change_cursor: bool,
}
Expand description
Information about the framebuffer.
Fields§
§address: u64
A pointer to the framebuffer.
pitch: u32
The pitch of the framebuffer (i.e. the number of bytes in each row).
width: u32
The width of the framebuffer.
height: u32
The height of the framebuffer.
bpp: u8
Bits per pixel.
change_cursor: bool
Whether to change the cursor position after outputting text.
Implementations§
Source§impl FramebufferInfo
impl FramebufferInfo
Sourcepub fn disable_cursor(self)
pub fn disable_cursor(self)
Disables the cursor.
Sourcepub fn enable_cursor(self, start_scan: u8, end_scan: u8)
pub fn enable_cursor(self, start_scan: u8, end_scan: u8)
Enables the cursor.
Sourcepub fn set_cursor_location(self, pos: (u32, u32))
pub fn set_cursor_location(self, pos: (u32, u32))
Sets the cursor’s location.
Sourcepub fn get_cursor_location(self) -> (u32, u32)
pub fn get_cursor_location(self) -> (u32, u32)
Gets the cursor’s location.
Trait Implementations§
Source§impl Clone for FramebufferInfo
impl Clone for FramebufferInfo
Source§fn clone(&self) -> FramebufferInfo
fn clone(&self) -> FramebufferInfo
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl TextDisplay for FramebufferInfo
impl TextDisplay for FramebufferInfo
impl Copy for FramebufferInfo
Auto Trait Implementations§
impl Freeze for FramebufferInfo
impl RefUnwindSafe for FramebufferInfo
impl Send for FramebufferInfo
impl Sync for FramebufferInfo
impl Unpin for FramebufferInfo
impl UnwindSafe for FramebufferInfo
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)