pub struct GraphicsOutput(/* 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§
source§impl GraphicsOutput
impl GraphicsOutput
sourcepub fn query_mode(&self, index: u32, bs: &BootServices) -> Result<Mode>
pub fn query_mode(&self, index: u32, bs: &BootServices) -> 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<'a>(&'a self, bs: &'a BootServices) -> ModeIter<'_> ⓘ
pub fn modes<'a>(&'a self, bs: &'a BootServices) -> ModeIter<'_> ⓘ
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 const fn current_mode_info(&self) -> ModeInfo
pub const 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§
source§impl Debug for GraphicsOutput
impl Debug for GraphicsOutput
source§impl Identify for GraphicsOutput
impl Identify for GraphicsOutput
impl Protocol for GraphicsOutput
Auto Trait Implementations§
impl Freeze for GraphicsOutput
impl RefUnwindSafe for GraphicsOutput
impl !Send for GraphicsOutput
impl !Sync for GraphicsOutput
impl Unpin for GraphicsOutput
impl UnwindSafe for GraphicsOutput
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