[][src]Struct vga::writers::Graphics320x200x256

pub struct Graphics320x200x256;

A basic interface for interacting with vga graphics mode 320x200x256.

Examples

Basic usage:

use vga::colors::Color16;
use vga::writers::{Graphics320x200x256, GraphicsWriter};

let mode = Graphics320x200x256::new();
mode.set_mode();
mode.clear_screen(0);
mode.draw_line((60, 20), (260, 20), 255);
mode.draw_line((60, 20), (60, 180), 255);
mode.draw_line((60, 180), (260, 180), 255);
mode.draw_line((260, 180), (260, 20), 255);
mode.draw_line((60, 40), (260, 40), 255);
for (offset, character) in "Hello World!".chars().enumerate() {
    mode.draw_character(118 + offset * 8, 27, character, 255);
}

Implementations

impl Graphics320x200x256[src]

pub const fn new() -> Graphics320x200x256[src]

Creates a new Graphics320x200x256.

Trait Implementations

impl Clone for Graphics320x200x256[src]

impl Copy for Graphics320x200x256[src]

impl Debug for Graphics320x200x256[src]

impl Default for Graphics320x200x256[src]

impl GraphicsWriter<u8> for Graphics320x200x256[src]

impl Screen for Graphics320x200x256[src]

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, 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.