[−][src]Struct thorium::win32::OffscreenBuffer
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(&self) -> 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
impl !Send for OffscreenBuffer
impl !Sync for OffscreenBuffer
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,