/// Helper method to quickly set the background of all cells inside the specified area.
Helper method to quickly set the background of all cells inside the specified area.
Helper method to quickly set the background of all cells inside the specified area .
fn background(&self, buf: &mut Buffer, color: Color) {
        for y in self.top()..self.bottom() {
            for x in self.left()..self.right() {
                buf.get_mut(x, y).set_bg(color);
            }
        }
    }
fn background ( & self , buf : & mut Buffer , color : Color ) { for y in self . top ( ) .. self . bottom ( ) { for x in self . left ( ) .. self . right ( ) { buf . get_mut ( x , y ) . set_bg ( color ) ; } } }
Helper method to quickly set the background of all cells inside the specified area.
Helper method to quickly set the background of all cells inside the specified area .
&self
buf
&mut Buffer
color
Color