[][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

Examples

let vertical_position = console::get_scroll_position(true).unwrap();
println!("{}", vertical_position);

Errors