pub struct Framebuffer { /* private fields */ }Expand description
Framebuffer configuration
Implementations§
Source§impl Framebuffer
impl Framebuffer
pub const fn new() -> Self
pub fn configure(&mut self, width: u32, height: u32, buffer: *mut u32)
Sourcepub fn configure_with_phys(
&mut self,
width: u32,
height: u32,
pitch: u32,
bpp: u8,
buffer: *mut u32,
phys_addr: u64,
format: u32,
)
pub fn configure_with_phys( &mut self, width: u32, height: u32, pitch: u32, bpp: u8, buffer: *mut u32, phys_addr: u64, format: u32, )
Configure with physical address tracking (for user-space mmap).
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn pitch(&self) -> u32
pub fn phys_addr(&self) -> u64
pub fn size(&self) -> u64
Sourcepub fn buffer_ptr(&self) -> Option<*mut u32>
pub fn buffer_ptr(&self) -> Option<*mut u32>
Get the raw buffer pointer (for compositor back-buffer swap).