27 #ifndef INCLUDED_OVERLAY
28 #define INCLUDED_OVERLAY
37 CColor(
float cr,
float cg,
float cb,
float ca) :
r(cr),
g(cg),
b(cb),
a(ca) {}
39 bool ParseString(
const CStr8& Value,
float DefaultAlpha);
45 return !(*
this==color);
79 CRect(
const float l,
const float t,
const float r,
const float b);
172 CPos(
const float &_x,
const float &_y);
211 CSize(
const float &_cx,
const float &_cy);
CSize operator-(void) const
CSize & operator=(const CSize &a)
CSize operator/(const float &a) const
Made to represent a screen size, should in philosophy be made of unsigned ints, but for the sake of c...
CPos CenterPoint() const
Get Position equivalent to the center of the rectangle.
CPos TopRight() const
Get Position equivalent to top/right corner.
float left
Returning CPos representing each corner.
void operator*=(const float &a)
CSize GetSize() const
Get Size.
void operator-=(const CRect &a)
void operator/=(const float &a)
void operator+=(const CPos &a)
CRect Scale(float x, float y) const
bool operator!=(const CSize &a) const
bool operator!=(const CPos &a) const
bool ParseString(const CStr8 &Value, float DefaultAlpha)
CSize operator*(const float &a) const
SColor4ub AsSColor4ub() const
CPos BottomLeft() const
Get Position equivalent to bottom/left corner.
void operator+=(const CSize &a)
void operator-=(const CSize &a)
CPos BottomRight() const
Get Position equivalent to bottom/right corner.
bool operator!=(const CColor &color) const
CRect operator+(void) const
Made to represent screen positions and delta values.
bool operator==(const CSize &a) const
bool operator==(const CColor &color) const
CPos & operator=(const CPos &a)
CPos operator-(void) const
CRect operator-(void) const
const float * FloatArray() const
CColor(float cr, float cg, float cb, float ca)
void operator-=(const CPos &a)
CSize operator+(void) const
void operator+=(const CRect &a)
CPos operator+(void) const
bool PointInside(const CPos &point) const
Evalutates if point is within the rectangle.
bool operator==(const CRect &a) const
CRect & operator=(const CRect &a)
CPos TopLeft() const
Get Position equivalent to top/left corner.
bool operator==(const CPos &a) const
bool operator!=(const CRect &a) const
Rectangle class used for screen rectangles.