pub struct Window {
pub height: i32,
pub width: i32,
pub x: i32,
pub y: i32,
/* private fields */
}Fields§
§height: i32§width: i32§x: i32§y: i32Implementations§
Source§impl Window
impl Window
pub fn new( height: i32, width: i32, x: i32, y: i32, border_color: attr_t, text_color: attr_t, title: String, ) -> Self
pub fn refresh(&self)
pub fn write(&self, content: &str)
pub fn resize(&mut self, height: i32, width: i32)
pub fn deplace(&mut self, x: i32, y: i32)
pub fn set_title(&mut self, title: String)
pub fn set_border_color(&mut self, border_color: attr_t)
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl !Send for Window
impl !Sync for Window
impl Unpin for Window
impl UnwindSafe for Window
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more