/// This function modifies every property of the given cell:
///
/// 1. Updates its background color according to the console's default and `background_flag`,
/// see [BackgroundFlag](./enum.BackgroundFlag.html).
/// 2. Updates its foreground color based on the default color set in the console
/// 3. Sets its ASCII value to `glyph`
This function modifies every property of the given cell:
1. Updates its background color according to the console's default and `background_flag`,
see [BackgroundFlag](./enum.BackgroundFlag.html).
2. Updates its foreground color based on the default color set in the console
3. Sets its ASCII value to `glyph`
This function modifies every property of the given cell : 1 . Updates its background color according to the console ' s default and ` background_flag ` see [ BackgroundFlag ] ( . / enum . BackgroundFlag . html ) . 2 . Updates its foreground color based on the default color set in the console 3 . Sets its ASCII value to ` glyph `
fn put_char(&mut self,
                x: i32, y: i32, glyph: char,
                background_flag: BackgroundFlag) {
        assert!(x >= 0 && y >= 0);
        unsafe {
            ffi::TCOD_console_put_char(*self.as_native(),
                                       x, y, glyph as i32,
                                       background_flag.into());
        }
    }
fn put_char ( & mut self , x : i32 , y : i32 , glyph : char , background_flag : BackgroundFlag ) { assert ! ( x 0 y 0 ) ; unsafe { ffi :: TCOD_console_put_char ( * self . as_native ( ) , x , y , glyph as i32 , background_flag . into ( ) ) ; } }
This function modifies every property of the given cell:
1.
This function modifies every property of the given cell : 1 .
&mut self
x
i32
y
i32
glyph
char
background_flag
BackgroundFlag