Rect structure.
More...
#include <crect.h>
|
| constexpr | CRect ()=default |
| |
| constexpr | CRect (CCoord left, CCoord top, CCoord right, CCoord bottom) |
| |
| constexpr | CRect (const CRect &r)=default |
| |
| CRect & | operator= (const CRect &r)=default |
| |
| | CRect (const CPoint &origin, const CPoint &size) |
| |
| CRect & | operator() (CCoord left, CCoord top, CCoord right, CCoord bottom) |
| |
| constexpr bool | operator!= (const CRect &other) const |
| |
| constexpr bool | operator== (const CRect &other) const |
| |
| constexpr CCoord | getWidth () const |
| |
| constexpr CCoord | getHeight () const |
| |
| CRect & | setWidth (CCoord width) |
| |
| CRect & | setHeight (CCoord height) |
| |
| CPoint | getTopLeft () const |
| |
| CPoint | getTopRight () const |
| |
| CPoint | getBottomLeft () const |
| |
| CPoint | getBottomRight () const |
| |
| CPoint | getTopCenter () const |
| |
| CPoint | getBottomCenter () const |
| |
| CPoint | getLeftCenter () const |
| |
| CPoint | getRightCenter () const |
| |
| CRect & | setTopLeft (const CPoint &inPoint) |
| |
| CRect & | setTopRight (const CPoint &inPoint) |
| |
| CRect & | setBottomLeft (const CPoint &inPoint) |
| |
| CRect & | setBottomRight (const CPoint &inPoint) |
| |
| CPoint | getCenter () const |
| |
| CPoint | getSize () const |
| |
| CRect & | setSize (const CPoint &size) |
| |
| CRect & | offset (CCoord c) |
| |
| CRect & | offset (CCoord x, CCoord y) |
| |
| CRect & | inset (CCoord deltaX, CCoord deltaY) |
| |
| CRect & | extend (CCoord deltaX, CCoord deltaY) |
| |
| CRect & | moveTo (CCoord x, CCoord y) |
| |
| CRect & | inset (const CPoint &p) |
| |
| CRect & | extend (const CPoint &p) |
| |
| CRect & | moveTo (const CPoint &p) |
| |
| CRect & | offset (const CPoint &p) |
| |
| CRect & | offsetInverse (const CPoint &p) |
| |
| constexpr bool | pointInside (const CPoint &where) const |
| | Checks if point is inside this rect.
|
| |
| constexpr bool | isEmpty () const |
| |
| constexpr bool | rectOverlap (const CRect &rect) const |
| |
| constexpr bool | rectInside (const CRect &rect) const |
| | Checks if rect is inside this rect.
|
| |
| CRect & | bound (const CRect &rect) |
| |
| CRect & | unite (const CRect &rect) |
| |
| CRect & | normalize () |
| |
| CRect & | originize () |
| |
| CRect & | centerInside (const CRect &r) |
| | moves this rect to the center of r
|
| |
| CRect & | makeIntegral () |
| |
◆ CRect() [1/4]
◆ CRect() [2/4]
◆ CRect() [3/4]
◆ CRect() [4/4]
◆ bound()
◆ centerInside()
moves this rect to the center of r
◆ extend() [1/2]
◆ extend() [2/2]
◆ getBottomCenter()
| CPoint getBottomCenter |
( |
| ) |
const |
|
inline |
◆ getBottomLeft()
| CPoint getBottomLeft |
( |
| ) |
const |
|
inline |
◆ getBottomRight()
| CPoint getBottomRight |
( |
| ) |
const |
|
inline |
◆ getCenter()
◆ getHeight()
◆ getLeftCenter()
| CPoint getLeftCenter |
( |
| ) |
const |
|
inline |
◆ getRightCenter()
| CPoint getRightCenter |
( |
| ) |
const |
|
inline |
◆ getSize()
◆ getTopCenter()
◆ getTopLeft()
◆ getTopRight()
◆ getWidth()
◆ inset() [1/2]
◆ inset() [2/2]
◆ isEmpty()
◆ makeIntegral()
◆ moveTo() [1/2]
◆ moveTo() [2/2]
◆ normalize()
◆ offset() [1/3]
◆ offset() [2/3]
◆ offset() [3/3]
◆ offsetInverse()
◆ operator!=()
| bool operator!= |
( |
const CRect & | other | ) |
const |
|
inlineconstexpr |
◆ operator()()
◆ operator=()
◆ operator==()
| bool operator== |
( |
const CRect & | other | ) |
const |
|
inlineconstexpr |
◆ originize()
◆ pointInside()
| bool pointInside |
( |
const CPoint & | where | ) |
const |
|
inlineconstexpr |
Checks if point is inside this rect.
◆ rectInside()
| bool rectInside |
( |
const CRect & | rect | ) |
const |
|
inlineconstexpr |
Checks if rect is inside this rect.
◆ rectOverlap()
| bool rectOverlap |
( |
const CRect & | rect | ) |
const |
|
inlineconstexpr |
◆ setBottomLeft()
◆ setBottomRight()
◆ setHeight()
◆ setSize()
◆ setTopLeft()
◆ setTopRight()
◆ setWidth()
◆ unite()
◆ bottom
◆ left
◆ right
◆ top
The documentation for this struct was generated from the following file: