Function arrange_console
pub fn arrange_console(
api: &dyn WindowsApi,
x: i32,
y: i32,
width: i32,
height: i32,
)Expand description
Changes size and position of the current console window using the provided API.
§Arguments
api- The Windows API implementation to use.x- The x coordinate to move the window to. From the top left corner of the screen.y- The y coordinate to move the window to. From the top left corner of the screen.width- The width in pixels to resize the window to. In logical scaling.height- The height in pixels to resize the window to. In logical scaling.
§Examples
use csshw_lib::utils::windows::{arrange_console, DefaultWindowsApi};
let api = DefaultWindowsApi;
arrange_console(&api, 100, 100, 800, 600);