Rectangle

The location of the target area relative to the screen or window. If you do not set this parameter, the SDK selects the whole screen or window.

struct Rectangle {
    int x;
    int y;
    int width;
    int height;

    Rectangle(): x(0), y(0), width(0), height(0) {}
    Rectangle(int xx, int yy, int ww, int hh): x(xx), y(yy), width(ww), height(hh) {}
};

Attributes

x
The horizontal offset from the top-left corner.
y
The vertical offset from the top-left corner.
width
The width of the target area.
height
The height of the target area.