![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cRectT.h>
Public Types | |
typedef TYPE | DVALUE_t |
Dimension value type. More... | |
Public Member Functions | |
cRectT () noexcept | |
cRectT (TYPE x1, TYPE y1, TYPE x2, TYPE y2) noexcept | |
cRectT (const THIS_t &rect) noexcept | |
TYPE | get_DiffX () const noexcept |
TYPE | get_DiffY () const noexcept |
cVecT2< TYPE > | get_Center () const noexcept |
float | get_AspectRatio () const noexcept |
bool | IsEqual (const THIS_t &rect) const noexcept |
bool | operator== (const THIS_t &rect) const noexcept |
bool | operator!= (const THIS_t &rect) const noexcept |
bool | isRectNull () const noexcept |
bool | isRectNormal () const noexcept |
bool | isRectNormalE () const noexcept |
bool | IsInRangeX (TYPE value) const noexcept |
bool | IsInRangeY (TYPE value) const noexcept |
void | SetRectNull () noexcept |
void | SetRectWH (TYPE nLeft, TYPE nTop, TYPE nWidth, TYPE nHeight) noexcept |
void | SetRectEmptyX () noexcept |
void | SetRect4 (TYPE nLeft, TYPE nTop, TYPE nRight, TYPE nBottom) noexcept |
void | SetRectAsPt (TYPE x, TYPE y) noexcept |
void | SetRectAsPt (const POINT_t &pt) noexcept |
void | SetRectFromSphere (TYPE x, TYPE y, TYPE nRadius) noexcept |
HRESULT | SetRectAsStr (const char *pszStr) |
void | OffsetRectX (TYPE dx) noexcept |
void | OffsetRectY (TYPE dy) noexcept |
void | OffsetRect (TYPE dx, TYPE dy) noexcept |
void | UnionX (TYPE x) noexcept |
void | UnionY (TYPE y) noexcept |
void | Union2 (TYPE x, TYPE y) noexcept |
void | Union4 (const THIS_t &rect) noexcept |
void | ScrollInRangeX (TYPE value) noexcept |
void | ScrollInRangeY (TYPE value) |
void | SetRectNotEmpty (TYPE iMin=10) noexcept |
void | ScaleX (float mx) noexcept |
void | ScaleY (float my) noexcept |
void | Scale (float mx, float my) noexcept |
void | AddScaleY () noexcept |
void | NormalizeRect () noexcept |
Public Attributes | |
TYPE | left |
TYPE | top |
TYPE | right |
TYPE | bottom |
A 2d rectangle x,y,x2,y2 of arbitrary TYPE precision units. DO not assume inclusive or exclusive of right, bottom. DOES NOT ASSUME Normalized. i.e. Left,Top less than Right,Bottom
typedef TYPE GrayLib::cRectT< TYPE >::DVALUE_t |
Dimension value type.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Create a 'not empty' rectangle.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
inclusive test.
|
inlinenoexcept |
inclusive test.
|
inlinenoexcept |
is this rect normalized ? (and not empty)
|
inlinenoexcept |
is this rect normalized ? (or empty)
|
inlinenoexcept |
is this rect all zeros?
|
inlinenoexcept |
Just like MFC CRect::NormalizeRect
|
inlinenoexcept |
just move the rect. MFC compat.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
Extremely empty.
|
inlinenoexcept |
|
inlinenoexcept |
Create a 'not empty' rectangle.
|
inlinenoexcept |
Create a empty and null/zero rectangle. "WinAPI ::SetRectEmpty()"
|
inlinenoexcept |
|
inlinenoexcept |
Do not enforce direction of the range. Not normalized
|
inlinenoexcept |
Do not enforce direction of the range. Not normalized
|
inlinenoexcept |
Not normalized inclusive union. Do not enforce direction of the range.
|
inlinenoexcept |
Not normalized inclusive union Do not enforce direction of the range.
TYPE GrayLib::cRectT< TYPE >::bottom |
TYPE GrayLib::cRectT< TYPE >::left |
TYPE GrayLib::cRectT< TYPE >::right |
TYPE GrayLib::cRectT< TYPE >::top |