Struct pancurses_result::Window
source · pub struct Window { /* private fields */ }
Expand description
A curses window.
It will clean up itself on destruction.
Implementations
sourceimpl Window
impl Window
pub fn add_char<T: Into<chtype>>(&mut self, ch: T) -> Result<(), ()>
pub fn add_str<T: AsRef<str>>(&mut self, string: T) -> Result<(), ()>
pub fn printw<T: AsRef<str>>(&mut self, string: T) -> Result<(), ()>
pub fn add_str_n<T: AsRef<str>>(
&mut self,
string: T,
length: usize
) -> Result<(), ()>
pub fn attributes(&self) -> (chtype, i16)
pub fn turn_off_attributes<T: Into<chtype>>(
&mut self,
attributes: T
) -> Result<(), ()>
pub fn turn_on_attributes<T: Into<chtype>>(
&mut self,
attributes: T
) -> Result<(), ()>
pub fn set_attributes<T: Into<chtype>>(
&mut self,
attributes: T
) -> Result<(), ()>
pub fn change_attributes<T: Into<chtype>>(
&mut self,
n: i32,
attributes: T,
color_pair: i16
) -> Result<(), ()>
pub fn set_background<T: Into<chtype>>(&mut self, ch: T)
pub fn set_background_and_apply<T: Into<chtype>>(
&mut self,
ch: T
) -> Result<(), ()>
pub fn clear(&mut self) -> Result<(), ()>
pub fn enable_clear_after_next_refresh(&mut self) -> Result<(), ()>
pub fn disable_clear_after_next_refresh(&mut self) -> Result<(), ()>
pub fn clear_to_bottom(&mut self) -> Result<(), ()>
pub fn clear_to_end_of_line(&mut self) -> Result<(), ()>
pub fn set_color(&mut self, color_pair: i16) -> Result<(), ()>
pub fn copy_overlay<P1: Into<Point>, P2: Into<Point>, P3: Into<Point>>(
&self,
destination: &Window,
source_start: P1,
destination_start: P2,
destination_end: P3
) -> Result<(), ()>
pub fn copy_overwrite<P1: Into<Point>, P2: Into<Point>, P3: Into<Point>>(
&self,
destination: &mut Window,
source_start: P1,
destination_start: P2,
destination_end: P3
) -> Result<(), ()>
pub fn delete_char(&mut self) -> Result<(), ()>
pub fn delete_line(&mut self) -> Result<(), ()>
pub fn delete_window(self) -> Result<(), ()>
pub fn draw_border<LS: Into<chtype>, RS: Into<chtype>, TS: Into<chtype>, BS: Into<chtype>, TLC: Into<chtype>, TRC: Into<chtype>, BLC: Into<chtype>, BRC: Into<chtype>>(
&mut self,
left_side: LS,
right_side: RS,
top_side: TS,
bottom_side: BS,
top_left_corner: TLC,
top_right_corner: TRC,
bottom_left_corner: BLC,
bottom_right_corner: BRC
) -> Result<(), ()>
pub fn draw_box<VT: Into<chtype>, HT: Into<chtype>>(
&mut self,
vertical: VT,
horizontal: HT
) -> Result<(), ()>
pub fn draw_horizontal_line<T: Into<chtype>>(
&mut self,
ch: T,
max_length: i32
) -> Result<(), ()>
pub fn draw_vertical_line<T: Into<chtype>>(
&mut self,
ch: T,
max_length: i32
) -> Result<(), ()>
pub fn encloses(&self, y: i32, x: i32) -> bool
pub fn erase(&mut self) -> Result<(), ()>
pub fn start(&self) -> Point
pub fn start_y(&self) -> i32
pub fn start_x(&self) -> i32
pub fn current(&self) -> Point
pub fn current_y(&self) -> i32
pub fn current_x(&self) -> i32
pub fn end(&self) -> Point
pub fn end_y(&self) -> i32
pub fn end_x(&self) -> i32
pub fn insert_lines(&mut self, n: i32) -> Result<(), ()>
pub fn insert_line(&mut self) -> Result<(), ()>
pub fn insert_char<T: Into<chtype>>(&self, ch: T) -> Result<(), ()>
pub fn enable_keypad(&mut self) -> Result<(), ()>
pub fn disable_keypad(&mut self) -> Result<(), ()>
pub fn window_to_screen<P: Into<Point>>(&self, p: P) -> Point
pub fn screen_to_window<P: Into<Point>>(&self, p: P) -> Point
pub fn move_to<P: Into<Point>>(&mut self, p: P) -> Result<(), ()>
pub fn move_add_char<P: Into<Point>, T: Into<chtype>>(
&mut self,
p: P,
ch: T
) -> Result<(), ()>
pub fn move_add_str<P: Into<Point>, T: AsRef<str>>(
&mut self,
p: P,
string: T
) -> Result<(), ()>
pub fn move_add_str_n<P: Into<Point>, T: AsRef<str>>(
&mut self,
p: P,
string: T,
n: i32
) -> Result<(), ()>
pub fn move_change_attributes<P: Into<Point>, T: Into<chtype>>(
&mut self,
p: P,
n: i32,
attributes: T,
color_pair: i16
) -> Result<(), ()>
pub fn move_get_char<P: Into<Point>>(&mut self, p: P) -> chtype
pub fn move_insert_char<P: Into<Point>, T: Into<chtype>>(
&mut self,
p: P,
ch: T
) -> Result<(), ()>
pub fn move_derived_window<P: Into<Point>>(&mut self, p: P) -> Result<(), ()>
pub fn move_window<P: Into<Point>>(&mut self, p: P) -> Result<(), ()>
pub fn read_char(&mut self) -> Option<Input>
pub fn flush_input(&mut self) -> Result<(), ()>
pub fn unread_char(&mut self, input: &Input) -> Result<(), ()>
pub fn enable_read_delay(&mut self) -> Result<(), ()>
pub fn disable_read_delay(&mut self) -> Result<(), ()>
pub fn set_timeout_milliseconds(&self, milliseconds: i32)
pub fn set_input_timeout_tenths(&mut self, tenths: i32) -> Result<(), ()>
pub fn overlay(&self, destination: &Window) -> Result<(), ()>
pub fn overwrite(&self, destination: &mut Window) -> Result<(), ()>
pub fn refresh(&self) -> Result<(), ()>
pub fn refresh_virtual_screen(&self) -> Result<(), ()>
pub fn enable_scroll(&mut self) -> Result<(), ()>
pub fn disable_scroll(&mut self) -> Result<(), ()>
pub fn set_scroll_region(&mut self, start: i32, end: i32) -> Result<(), ()>
pub fn create_sub_window<P: Into<Point>>(
&self,
lines: i32,
columns: i32,
p: P
) -> Result<Window, ()>
pub fn line_touched(&self, line: i32) -> bool
pub fn touched(&self) -> bool
pub fn touch(&mut self) -> Result<(), ()>
pub fn touch_lines(&mut self, start: i32, count: i32) -> Result<(), ()>
pub fn untouch(&mut self) -> Result<(), ()>
pub fn untouch_lines(&mut self, start: i32, count: i32) -> Result<(), ()>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more