#[repr(C)]pub struct gfx_console_screen_text_t {
pub text: bytes_t,
pub rows: c_int,
pub columns: c_int,
pub font_width: c_int,
pub font_height: c_int,
pub line_lengths: bytes_t,
}
Expand description
VGA text mode data. Stored in this file since we have the VGA device pointer here.
Fields§
§text: bytes_t
Screen text (text_width × text_height), in some 8-bit ASCII superset (we assume CP437).
rows: c_int
Text screen size in character cells.
columns: c_int
Text screen size in character cells.
font_width: c_int
Text cell size in pixels.
font_height: c_int
Text cell size in pixels.
line_lengths: bytes_t
Length of each line (text_height elements), beyond which there is only empty space. Each element is in [0, columns].
Trait Implementations§
source§impl Clone for gfx_console_screen_text_t
impl Clone for gfx_console_screen_text_t
source§fn clone(&self) -> gfx_console_screen_text_t
fn clone(&self) -> gfx_console_screen_text_t
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 gfx_console_screen_text_t
impl Debug for gfx_console_screen_text_t
source§impl Default for gfx_console_screen_text_t
impl Default for gfx_console_screen_text_t
source§impl Hash for gfx_console_screen_text_t
impl Hash for gfx_console_screen_text_t
source§impl Ord for gfx_console_screen_text_t
impl Ord for gfx_console_screen_text_t
source§fn cmp(&self, other: &gfx_console_screen_text_t) -> Ordering
fn cmp(&self, other: &gfx_console_screen_text_t) -> 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 PartialOrd for gfx_console_screen_text_t
impl PartialOrd for gfx_console_screen_text_t
impl Copy for gfx_console_screen_text_t
impl Eq for gfx_console_screen_text_t
impl StructuralPartialEq for gfx_console_screen_text_t
Auto Trait Implementations§
impl Freeze for gfx_console_screen_text_t
impl RefUnwindSafe for gfx_console_screen_text_t
impl !Send for gfx_console_screen_text_t
impl !Sync for gfx_console_screen_text_t
impl Unpin for gfx_console_screen_text_t
impl UnwindSafe for gfx_console_screen_text_t
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)