Struct cli_gui::Window[][src]

pub struct Window {
    pub size: Size,
    pub pos: Position,
    // some fields omitted
}

Fields

size: Sizepos: Position

Implementations

impl Window[src]

pub fn new(pos: Position, size: Size) -> Self[src]

pub fn set_to_main(&self)[src]

pub fn write(&mut self, pos: Position, text: String, color: Color)[src]

pub fn set_border_color(&mut self, color: Color)[src]

pub fn set_border_symbols(&mut self, symbols: [String; 4])[src]

pub fn set_title(&mut self, title: String)[src]

pub fn set_title_color(&mut self, color: Color)[src]

pub fn clear(&mut self)[src]

pub fn move_cursor(&self, pos: Position)[src]

pub fn move_window(&mut self, pos: Position)[src]

pub fn read_char(&self) -> char[src]

pub fn read_line(
    &mut self,
    pos: Position,
    output_string: &str,
    color: Color,
    write_line: bool
) -> String
[src]

pub fn render(&mut self)[src]

pub fn decorate(&mut self)[src]

pub fn quit(&self)[src]

pub fn write_window(&mut self, window: &Window)[src]

Auto Trait Implementations

impl RefUnwindSafe for Window

impl Send for Window

impl Sync for Window

impl Unpin for Window

impl UnwindSafe for Window

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.