|
constexpr | Rect ()=default |
|
constexpr | Rect (int width, int height) |
|
constexpr | Rect (int x, int y, int width, int height) |
|
constexpr | Rect (const Size &size) |
|
constexpr | Rect (const Point &origin, const Size &size) |
|
constexpr int | x () const |
|
void | set_x (int x) |
|
constexpr int | y () const |
|
void | set_y (int y) |
|
constexpr int | width () const |
|
void | set_width (int width) |
|
constexpr int | height () const |
|
void | set_height (int height) |
|
constexpr const Point & | origin () const |
|
void | set_origin (const Point &origin) |
|
constexpr const Size & | size () const |
|
void | set_size (const Size &size) |
|
constexpr int | right () const |
|
constexpr int | bottom () const |
|
constexpr Point | top_right () const |
|
constexpr Point | bottom_left () const |
|
constexpr Point | bottom_right () const |
|
constexpr Point | left_center () const |
|
constexpr Point | top_center () const |
|
constexpr Point | right_center () const |
|
constexpr Point | bottom_center () const |
|
Vector2d | OffsetFromOrigin () const |
|
void | SetRect (int x, int y, int width, int height) |
|
void | SetByBounds (int left, int top, int right, int bottom) |
|
void | Inset (int horizontal, int vertical) |
|
void | Inset (const Insets &insets) |
|
void | Inset (int left, int top, int right, int bottom) |
|
void | Offset (int horizontal, int vertical) |
|
void | Offset (const Vector2d &distance) |
|
void | operator+= (const Vector2d &offset) |
|
void | operator-= (const Vector2d &offset) |
|
Insets | InsetsFrom (const Rect &inner) const |
|
bool | IsEmpty () const |
|
bool | operator< (const Rect &other) const |
|
bool | Contains (int point_x, int point_y) const |
|
bool | Contains (const Point &point) const |
|
bool | Contains (const Rect &rect) const |
|
bool | Intersects (const Rect &rect) const |
|
void | Intersect (const Rect &rect) |
|
void | Union (const Rect &rect) |
|
void | Subtract (const Rect &rect) |
|
void | AdjustToFit (const Rect &rect) |
|
Point | CenterPoint () const |
|
void | ClampToCenteredSize (const Size &size) |
|
void | Transpose () |
|
void | SplitVertically (Rect *left_half, Rect *right_half) const |
|
bool | SharesEdgeWith (const Rect &rect) const |
|
int | ManhattanDistanceToPoint (const Point &point) const |
|
int | ManhattanInternalDistance (const Rect &rect) const |
|
std::string | ToString () const |
|
bool | ApproximatelyEqual (const Rect &rect, int tolerance) const |
|
Definition at line 36 of file rect.h.