Enum vga::colors::Color16 [−][src]
Represents a 16 bit color used for vga display.
Variants
Represents the color Black (0x0)
.
Represents the color Blue (0x1)
.
Represents the color Green (0x2)
.
Represents the color Cyan (0x3)
.
Represents the color Red (0x4)
.
Represents the color Magenta (0x5)
.
Represents the color Brown (0x6)
.
Represents the color LightGrey (0x7)
.
Represents the color DarkGrey (0x8)
.
Represents the color LightBlue (0x9)
.
Represents the color LightGreen (0xA)
.
Represents the color LightCyan (0xB)
.
Represents the color LightRed (0xC)
.
Represents the color Pink (0xD)
.
Represents the color Yellow (0xE)
.
Represents the color White (0xF)
.
Trait Implementations
impl Clone for Color16
[src]
fn clone(&self) -> Color16
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Color16
[src]
impl Debug for Color16
[src]
impl Eq for Color16
[src]
impl GraphicsWriter<Color16> for Graphics640x480x16
[src]
fn clear_screen(&self, color: Color16)
[src]
fn draw_line(&self, start: Point<isize>, end: Point<isize>, color: Color16)
[src]
fn draw_character(&self, x: usize, y: usize, character: char, color: Color16)
[src]
fn set_pixel(&self, x: usize, y: usize, color: Color16)
[src]
Note: This method is provided for convenience, but has terrible
performance since it needs to ensure the correct WriteMode
per pixel
drawn. If you need to draw more then one pixel, consider using a method
such as draw_line
.
fn set_mode(&self)
[src]
fn get_frame_buffer(&self) -> *mut u8
[src]
impl Hash for Color16
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Color16> for Color16
[src]
fn eq(&self, other: &Color16) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Color16
[src]
impl StructuralPartialEq for Color16
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,