#[repr(C)]pub struct GraphicsOutput<'boot> { /* private fields */ }
Expand description
Provides access to the video hardware’s frame buffer.
The GOP can be used to set the properties of the frame buffer, and also allows the app to access the in-memory buffer.
Implementations
sourceimpl<'boot> GraphicsOutput<'boot>
impl<'boot> GraphicsOutput<'boot>
sourcepub fn query_mode(&self, index: u32) -> Result<Mode>
pub fn query_mode(&self, index: u32) -> Result<Mode>
Returns information for an available graphics mode that the graphics device and the set of active video output devices supports.
sourcepub fn modes(&self) -> impl ExactSizeIterator<Item = Completion<Mode>> + '_
pub fn modes(&self) -> impl ExactSizeIterator<Item = Completion<Mode>> + '_
Returns information about all available graphics modes.
sourcepub fn set_mode(&mut self, mode: &Mode) -> Result
pub fn set_mode(&mut self, mode: &Mode) -> Result
Sets the video device into the specified mode, clearing visible portions of the output display to black.
This function will invalidate the current framebuffer.
sourcepub fn blt(&mut self, op: BltOp<'_>) -> Result
pub fn blt(&mut self, op: BltOp<'_>) -> Result
Performs a blt (block transfer) operation on the frame buffer.
Every operation requires different parameters.
sourcepub fn current_mode_info(&self) -> ModeInfo
pub fn current_mode_info(&self) -> ModeInfo
Returns the frame buffer information for the current mode.
sourcepub fn frame_buffer(&mut self) -> FrameBuffer<'_>
pub fn frame_buffer(&mut self) -> FrameBuffer<'_>
Access the frame buffer directly
Trait Implementations
sourceimpl<'boot> Identify for GraphicsOutput<'boot>
impl<'boot> Identify for GraphicsOutput<'boot>
impl<'boot> Protocol for GraphicsOutput<'boot>
impl<'boot> !Send for GraphicsOutput<'boot>
impl<'boot> !Sync for GraphicsOutput<'boot>
Auto Trait Implementations
impl<'boot> RefUnwindSafe for GraphicsOutput<'boot>
impl<'boot> Unpin for GraphicsOutput<'boot>
impl<'boot> UnwindSafe for GraphicsOutput<'boot>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more