5 #ifndef PDFTRON_H_CPPPDFRect
6 #define PDFTRON_H_CPPPDFRect
8 #include <C/PDF/TRN_Rect.h>
28 class Rect :
public TRN_Rect
52 Rect (
double x1,
double y1,
double x2,
double y2);
84 void Get(
double& out_x1,
double& out_y1,
double& out_x2,
double& out_y2)
const;
96 void Set(
double x1,
double y1,
double x2,
double y2);
101 double Width()
const;
115 bool Contains(
double x,
double y)
const;
152 void Inflate(
double x,
double y);
158 double GetX1()
const;
163 double GetY1()
const;
168 double GetX2()
const;
173 double GetY2()
const;
179 void SetX1(
double x1);
185 void SetY1(
double y1);
191 void SetX2(
double x2);
197 void SetY2(
double y2);
200 #include <Impl/Rect.inl>
205 #endif // PDFTRON_H_CPPPDFRect
bool Update(SDF::Obj obj=NULL)
void Get(double &out_x1, double &out_y1, double &out_x2, double &out_y2) const
void Attach(SDF::Obj obj)
void Set(double x1, double y1, double x2, double y2)
void Inflate(double amount)
Rect & operator=(const Rect &rect)
bool IntersectRect(const Rect &rect1, const Rect &rect2)
bool Contains(double x, double y) const