⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

GraphicsContext

Trait GraphicsContext 

Source
pub trait GraphicsContext {
    // Required methods
    fn draw_pixel(&mut self, x: i32, y: i32, color: Color);
    fn draw_rect(&mut self, rect: Rect, color: Color);
    fn fill_rect(&mut self, rect: Rect, color: Color);
    fn clear(&mut self, color: Color);
}
Expand description

Graphics context

Required Methods§

Source

fn draw_pixel(&mut self, x: i32, y: i32, color: Color)

Source

fn draw_rect(&mut self, rect: Rect, color: Color)

Source

fn fill_rect(&mut self, rect: Rect, color: Color)

Source

fn clear(&mut self, color: Color)

Implementors§