Struct cli_gui::Window [−][src]
Fields
size: Size
pos: 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]
&mut self,
pos: Position,
output_string: &str,
color: Color,
write_line: bool
) -> String
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,