Skip to main content

to_screen

Function to_screen 

Source
pub(crate) fn to_screen(
    look: &Look,
    now: Rect,
    x: i64,
    y: i64,
) -> Result<(i32, i32), String>
Expand description

The screen point for image point (x, y) of look, given where the window is now. Refuses, with a reason the agent can act on, when the window moved or resized since the look or the point is outside the image.