Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/ps/Shapes.h
Show All 37 Lines | |||||
{ | { | ||||
public: | public: | ||||
CRect(); | CRect(); | ||||
CRect(const CPos &pos); | CRect(const CPos &pos); | ||||
CRect(const CSize &size); | CRect(const CSize &size); | ||||
CRect(const CPos &upperleft, const CPos &bottomright); | CRect(const CPos &upperleft, const CPos &bottomright); | ||||
CRect(const CPos &pos, const CSize &size); | CRect(const CPos &pos, const CSize &size); | ||||
CRect(const float l, const float t, const float r, const float b); | CRect(const float l, const float t, const float r, const float b); | ||||
CRect(const CRect&); | |||||
CRect& operator=(const CRect& a); | CRect& operator=(const CRect& a); | ||||
bool operator==(const CRect& a) const; | bool operator==(const CRect& a) const; | ||||
bool operator!=(const CRect& a) const; | bool operator!=(const CRect& a) const; | ||||
CRect operator-() const; | CRect operator-() const; | ||||
CRect operator+() const; | CRect operator+() const; | ||||
CRect operator+(const CRect& a) const; | CRect operator+(const CRect& a) const; | ||||
▲ Show 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | |||||
* Made to represent screen positions and delta values. | * Made to represent screen positions and delta values. | ||||
* @see CRect | * @see CRect | ||||
* @see CSize | * @see CSize | ||||
*/ | */ | ||||
class CPos | class CPos | ||||
{ | { | ||||
public: | public: | ||||
CPos(); | CPos(); | ||||
CPos(const CPos& pos); | |||||
CPos(const CSize &pos); | CPos(const CSize &pos); | ||||
CPos(const float px, const float py); | CPos(const float px, const float py); | ||||
CPos& operator=(const CPos& a); | CPos& operator=(const CPos& a); | ||||
bool operator==(const CPos& a) const; | bool operator==(const CPos& a) const; | ||||
bool operator!=(const CPos& a) const; | bool operator!=(const CPos& a) const; | ||||
CPos operator-() const; | CPos operator-() const; | ||||
CPos operator+() const; | CPos operator+() const; | ||||
Show All 23 Lines | |||||
* @see CPos | * @see CPos | ||||
*/ | */ | ||||
class CSize | class CSize | ||||
{ | { | ||||
public: | public: | ||||
CSize(); | CSize(); | ||||
CSize(const CRect &rect); | CSize(const CRect &rect); | ||||
CSize(const CPos &pos); | CSize(const CPos &pos); | ||||
CSize(const CSize& size); | |||||
CSize(const float sx, const float sy); | CSize(const float sx, const float sy); | ||||
CSize& operator=(const CSize& a); | CSize& operator=(const CSize& a); | ||||
bool operator==(const CSize& a) const; | bool operator==(const CSize& a) const; | ||||
bool operator!=(const CSize& a) const; | bool operator!=(const CSize& a) const; | ||||
CSize operator-() const; | CSize operator-() const; | ||||
CSize operator+() const; | CSize operator+() const; | ||||
Show All 19 Lines |
Wildfire Games · Phabricator