fn print_rect<T>(&mut self,
                  x: i32, y: i32,
                  width: i32, height: i32,
                  text: T) where Self: Sized, T: AsRef<[u8]> + TcodString {
        assert!(x >= 0 && y >= 0);
        if let Some(text) = text.as_ascii() {
            let c_text = CString::new(text).unwrap();
            unsafe {
                ffi::TCOD_console_print_rect(*self.as_native(), x, y, width, height, c_text.as_ptr());
            }
        } else {
            let c_text = to_wstring(text.as_ref());
            unsafe {
                ffi::TCOD_console_print_rect_utf(*self.as_native(), x, y, width, height, c_text.as_ptr() as *const i32);
            }
        }
    }
/// Prints the text at the specified location in a rectangular area with
/// the dimensions: (width; height). If the text is longer than the width the
/// newlines will be inserted.
Prints the text at the specified location in a rectangular area with
the dimensions: (width; height). If the text is longer than the width the
newlines will be inserted.
Prints the text at the specified location in a rectangular area with the dimensions : ( width ; height ) . If the text is longer than the width the newlines will be inserted .
fn print_rect<T>(&mut self,
                  x: i32, y: i32,
                  width: i32, height: i32,
                  text: T) where Self: Sized, T: AsRef<[u8]> + TcodString {
        assert!(x >= 0 && y >= 0);
        if let Some(text) = text.as_ascii() {
            let c_text = CString::new(text).unwrap();
            unsafe {
                ffi::TCOD_console_print_rect(*self.as_native(), x, y, width, height, c_text.as_ptr());
            }
        } else {
            let c_text = to_wstring(text.as_ref());
            unsafe {
                ffi::TCOD_console_print_rect_utf(*self.as_native(), x, y, width, height, c_text.as_ptr() as *const i32);
            }
        }
    }
fn print_rect < T > ( & mut self , x : i32 , y : i32 , width : i32 , height : i32 , text : T ) where Self : Sized , T : AsRef < [ u8 ] > + TcodString { assert ! ( x 0 y 0 ) ; if let Some ( text ) = text . as_ascii ( ) { let c_text = CString :: new ( text ) . unwrap ( ) ; unsafe { ffi :: TCOD_console_print_rect ( * self . as_native ( ) , x , y , width , height , c_text . as_ptr ( ) ) ; } } else { let c_text = to_wstring ( text . as_ref ( ) ) ; unsafe { ffi :: TCOD_console_print_rect_utf ( * self . as_native ( ) , x , y , width , height , c_text . as_ptr ( ) as * const i32 ) ; } } }
Prints the text at the specified location in a rectangular area with
the dimensions: (width; height).
Prints the text at the specified location in a rectangular area with the dimensions : ( width ; height ) .
&mut self
x
i32
y
i32
width
i32
height
i32
text
T
&mut self
x
i32
y
i32
width
i32
height
i32
text
T