[][src]Struct thorium::win32::OffscreenBuffer

pub struct OffscreenBuffer { /* fields omitted */ }

Packages up an offscreen bitmap buffer.

Methods

impl OffscreenBuffer[src]

pub const fn empty() -> Self[src]

Gives a const empty buffer value.

pub fn width(&self) -> i32[src]

the buffer width

pub fn height(&self) -> i32[src]

the buffer height

pub fn memory(&self) -> *mut u8[src]

the raw memory pointer

pub fn info(&self) -> BITMAPINFO[src]

the buffer format info

pub fn render_weird_gradient(&mut self, x_offset: i32, y_offset: i32)[src]

Renders the weird gradient into the buffer.

pub fn resize(&mut self, width: i32, height: i32)[src]

Resize the buffer.

The newly allocated buffer is zeroed.

Trait Implementations

impl Clone for OffscreenBuffer[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for OffscreenBuffer[src]

impl Debug for OffscreenBuffer[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.