/// Fill a rectangle with the default background colour.
///
/// If `clear` is true, set each cell's character to space (ASCII 32).
Fill a rectangle with the default background colour.
If `clear` is true, set each cell's character to space (ASCII 32).
Fill a rectangle with the default background colour . If ` clear ` is true set each cell ' s character to space ( ASCII 32 ) .
fn rect(&mut self,
            x: i32, y: i32,
            width: i32, height: i32,
            clear: bool,
            background_flag: BackgroundFlag) {
        assert!(x >= 0);
        assert!(y >= 0);
        assert!(width >= 0);
        assert!(height >= 0);
        assert!(x + width <= self.width());
        assert!(y + height <= self.height());
        unsafe {
            ffi::TCOD_console_rect(*self.as_native(), x, y, width, height, clear as c_bool, background_flag.into());
        }
    }
fn rect ( & mut self , x : i32 , y : i32 , width : i32 , height : i32 , clear : bool , background_flag : BackgroundFlag ) { assert ! ( x 0 ) ; assert ! ( y 0 ) ; assert ! ( width 0 ) ; assert ! ( height 0 ) ; assert ! ( x width self width ( ) ) ; assert ! ( y height self height ( ) ) ; unsafe { ffi :: TCOD_console_rect ( * self . as_native ( ) , x , y , width , height , clear as c_bool , background_flag . into ( ) ) ; } }
Fill a rectangle with the default background colour.
Fill a rectangle with the default background colour .
&mut self
x
i32
y
i32
width
i32
height
i32
clear
bool
background_flag
BackgroundFlag