Enum uefi::proto::console::gop::BltOp[][src]

pub enum BltOp<'buf> {
    VideoFill {
        color: BltPixel,
        dest: (usize, usize),
        dims: (usize, usize),
    },
    VideoToBltBuffer {
        buffer: &'buf mut [BltPixel],
        src: (usize, usize),
        dest: BltRegion,
        dims: (usize, usize),
    },
    BufferToVideo {
        buffer: &'buf [BltPixel],
        src: BltRegion,
        dest: (usize, usize),
        dims: (usize, usize),
    },
    VideoToVideo {
        src: (usize, usize),
        dest: (usize, usize),
        dims: (usize, usize),
    },
}
Expand description

Blit operation to perform.

Variants

VideoFill

Fills a rectangle of video display with a pixel color.

Show fields

Fields of VideoFill

color: BltPixel

The color to fill with.

dest: (usize, usize)

The X / Y coordinates of the destination rectangle.

dims: (usize, usize)

The width / height of the rectangle.

VideoToBltBuffer

Reads data from the video display to the buffer.

Show fields

Fields of VideoToBltBuffer

buffer: &'buf mut [BltPixel]

Buffer into which to copy data.

src: (usize, usize)

Coordinates of the source rectangle, in the frame buffer.

dest: BltRegion

Location of the destination rectangle in the user-provided buffer

dims: (usize, usize)

Width / height of the rectangles.

BufferToVideo

Write data from the buffer to the video rectangle. Delta must be the stride (count of bytes in a row) of the buffer.

Show fields

Fields of BufferToVideo

buffer: &'buf [BltPixel]

Buffer from which to copy data.

src: BltRegion

Location of the source rectangle in the user-provided buffer.

dest: (usize, usize)

Coordinates of the destination rectangle, in the frame buffer.

dims: (usize, usize)

Width / height of the rectangles.

VideoToVideo

Copy from the source rectangle in video memory to the destination rectangle, also in video memory.

Show fields

Fields of VideoToVideo

src: (usize, usize)

Coordinates of the source rectangle, in the frame buffer.

dest: (usize, usize)

Coordinates of the destination rectangle, also in the frame buffer.

dims: (usize, usize)

Width / height of the rectangles.

Trait Implementations

impl<'buf> Debug for BltOp<'buf>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'buf> Send for BltOp<'buf>

impl<'buf> Sync for BltOp<'buf>

impl<'buf> Unpin for BltOp<'buf>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.