Function crayon::window::position

source ·
pub fn position() -> Vector2<i32>
Expand description

Returns the position of the lower-left hand corner of the window relative to the lower-left hand corner of the desktop. Note that the lower-left hand corner of the desktop is not necessarily the same as the screen. If the user uses a desktop with multiple monitors, the lower-left hand corner of the desktop is the lower-left hand corner of the monitor at the lower-left of the desktop.

The coordinates can be negative if the lower-left hand corner of the window is outside of the visible screen region.