30 #ifndef DRAWING_AREA_H_ 31 #define DRAWING_AREA_H_ Declares some basic types.
s_int16 y() const
Returns the vertical position of the drawing_area.
drawing_area()
Default constructor.
#define u_int16
16 bits long unsigned integer
void detach_drawing_area()
Detach (if needed) the drawing_area which was attached to this one.
u_int16 length() const
Returns the length of the drawing_area.
void resize(u_int16 nl, u_int16 nh)
Resize the drawing_area.
void assign_drawing_area(const drawing_area *da)
Assign a drawing_area to this drawing_area.
s_int16 x() const
Returns the horizontal position of the drawing_area.
drawing_area & operator=(SDL_Rect &r)
Convert an SDL_Rect into a drawing_area.
Implements "drawing zones" for drawing operations.
#define s_int16
16 bits long signed integer
drawing_area * assigned_drawing_area() const
Returns a pointer to the drawing_area assigned to this one.
SDL_Rect setup_rects() const
Gets the real parameters of this drawing_area.
void move(s_int16 nx, s_int16 ny)
Move the drawing_area.
u_int16 height() const
Returns the height of the drawing_area.