[−][src]Function winconsole::console::get_scroll_position
pub fn get_scroll_position(vertical: bool) -> WinResult<u16>
Returns the current scroll position of a window scroll bar.
Arguments
vertical
- Should the position of the vertical bar be returned, or the horizontal bar?
Examples
let vertical_position = console::get_scroll_position(true).unwrap(); println!("{}", vertical_position);
Errors
InvalidHandleError
: Returned if an invalid handle to the console output is retrieved or used.IoError
: Returned if an OS error occurs.