63 _minx = l * 2.0f - 1.0f;
64 _miny = b * 2.0f - 1.0f;
66 PN_stdfloat maxx = r * 2.0f - 1.0f;
67 PN_stdfloat maxy = t * 2.0f - 1.0f;
69 _scalex = 2.0f / (maxx - _minx);
70 _scaley = 2.0f / (maxy - _miny);
void set_dimensions(PN_stdfloat l, PN_stdfloat r, PN_stdfloat b, PN_stdfloat t)
Changes the region of the window in which the mouse is considered to be active.
PN_stdfloat get_top() const
Retrieves the y coordinate of the top edge of the rectangle within the window.
PN_stdfloat get_right() const
Retrieves the x coordinate of the right edge of the rectangle within the window.
PN_stdfloat get_left() const
Retrieves the x coordinate of the left edge of the rectangle within the window.
PN_stdfloat get_bottom() const
Retrieves the y coordinate of the bottom edge of the rectangle within the window.