pub struct SimpleDisplayAdapter {
fb_virt: usize,
fb_width: u32,
fb_height: u32,
fb_stride: u32,
fb_bpp: u8,
display_count: usize,
}Expand description
Adapter backed by a single physical framebuffer (Limine or VirtIO).
Fields§
§fb_virt: usizePhysical framebuffer info.
fb_width: u32§fb_height: u32§fb_stride: u32§fb_bpp: u8§display_count: usizeNumber of displays (1 for simple adapter).
Implementations§
Trait Implementations§
Source§impl GraphicsAdapter for SimpleDisplayAdapter
impl GraphicsAdapter for SimpleDisplayAdapter
Source§type Screen = HeapScreen
type Screen = HeapScreen
The screen type created by this adapter.
Source§fn display_count(&self) -> usize
fn display_count(&self) -> usize
Number of connected displays.
Source§fn create_framebuffer(&self, width: u32, height: u32) -> HeapScreen
fn create_framebuffer(&self, width: u32, height: u32) -> HeapScreen
Create an offscreen framebuffer of the given size.
Source§fn update_plane(&self, display_id: usize, screen: &HeapScreen, damage: Damage)
fn update_plane(&self, display_id: usize, screen: &HeapScreen, damage: Damage)
Present an offscreen buffer to a physical display. Read more
Source§fn supports_hw_cursor(&self) -> bool
fn supports_hw_cursor(&self) -> bool
Returns true if the adapter supports hardware cursor planes.
Auto Trait Implementations§
impl Freeze for SimpleDisplayAdapter
impl RefUnwindSafe for SimpleDisplayAdapter
impl Send for SimpleDisplayAdapter
impl Sync for SimpleDisplayAdapter
impl Unpin for SimpleDisplayAdapter
impl UnsafeUnpin for SimpleDisplayAdapter
impl UnwindSafe for SimpleDisplayAdapter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more