59 ret.x = temp.x >
x ()? temp.x :
x ();
60 ret.y = temp.y >
y ()? temp.y :
y ();
73 ret.w = txw < xpl ? txwmrx > 0 ? txwmrx : 0 : xplmrx > 0 ? xplmrx : 0;
74 ret.h = tyh < yph ? tyhmry > 0 ? tyhmry : 0 : yphmry > 0 ? yphmry : 0;
u_int16 height() const
Returns the height of the drawing_area.
#define s_int32
32 bits long signed integer
drawing_area()
Default constructor.
#define u_int16
16 bits long unsigned integer
void resize(u_int16 nl, u_int16 nh)
Resize the drawing_area.
drawing_area & operator=(SDL_Rect &r)
Convert an SDL_Rect into a drawing_area.
SDL_Rect setup_rects() const
Gets the real parameters of this drawing_area.
u_int16 length() const
Returns the length of the drawing_area.
s_int16 y() const
Returns the vertical position of the drawing_area.
Implements "drawing zones" for drawing operations.
#define s_int16
16 bits long signed integer
s_int16 x() const
Returns the horizontal position of the drawing_area.
void move(s_int16 nx, s_int16 ny)
Move the drawing_area.
Declares the drawing_area class.