Struct omt::gfx::DrawBuffer[][src]

pub struct DrawBuffer { /* fields omitted */ }

Implementations

impl DrawBuffer[src]

pub fn new(w: u32, h: u32) -> DrawBuffer[src]

pub fn get_scale(&self) -> f32[src]

pub fn set_scale(&mut self, scale: f32)[src]

pub fn copy_from_draw_buffer(&mut self, other: &DrawBuffer)[src]

pub fn fill_with_grid(&mut self, size: u32, col_a: u32, col_b: u32)[src]

pub fn blit_image(&mut self, image: &DynamicImage)[src]

pub fn draw_hline(&mut self, sx: u32, ex: u32, y: u32, col: u32)[src]

pub fn draw_filled_rectangle(
    &mut self,
    sx: i32,
    sy: i32,
    ex: i32,
    ey: i32,
    col: u32
)
[src]

pub fn draw_frame(
    &mut self,
    x: i32,
    y: i32,
    fw: u32,
    fh: u32,
    col: u32,
    line_width: u32
)
[src]

pub fn get_width(&self) -> u32[src]

pub fn get_height(&self) -> u32[src]

pub fn get_data(&self) -> &Vec<u32>[src]

pub fn mix_rgba(a: u32, b: u32, f: f32) -> u32[src]

blends a over b with f percent

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SetParameter for T

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.

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.