22#ifndef DGDS_DGDS_RECT_H
23#define DGDS_DGDS_RECT_H
25#include "common/str.h"
26#include "common/rect.h"
34 DgdsRect(): x(0), y(0), width(0), height(0) {}
35 DgdsRect(
int x_,
int y_,
int width_,
int height_): x(x_), y(y_), width(width_), height(height_) {}
42 bool contains(
const Common::Point &pt)
const {
return pt.
x >= x && pt.
x < (x + width) && pt.
y >= y && pt.
y < (y + height); }
Definition: dgds_rect.h:32