#include <Math.hpp>
Metody publiczne | |
| RECTI () | |
| RECTI (int left, int top, int right, int bottom) | |
| RECTI (const int *Arr) | |
| operator int * () | |
| operator const int * () const | |
| bool | operator== (const RECTI &r) const |
| bool | operator!= (const RECTI &r) const |
| RECTI | operator+ () const |
| RECTI | operator- () const |
| RECTI | operator+ (const POINT_ &p) const |
| RECTI | operator- (const POINT_ &p) const |
| RECTI | operator* (int s) const |
| RECTI | operator* (const POINT_ &s) const |
| RECTI & | operator+= (const POINT_ &p) |
| RECTI & | operator-= (const POINT_ &p) |
| RECTI & | operator*= (int s) |
| RECTI & | operator*= (const POINT_ &s) |
| bool | IsValid () const |
| void | Repair () |
| void | LeftTop (POINT_ *Out) const |
| void | RightBottom (POINT_ *Out) const |
| void | Extend (int d) |
| Powiększa prostokąt z każdej strony o podaną wartość. | |
| int | Width () const |
| Oblicza i zwraca szerokość. | |
| int | Height () const |
| Oblicza i zwraca wysokość. | |
| float | Diagonal () const |
| Oblicza i zwraca długość przekątnej. | |
| int | Field () const |
| Oblicza i zwraca pole powierzchni. | |
| void | SetWidth (int NewWidth) |
| Zmienia szerokość na podaną. | |
| void | SetHeight (int NewHeight) |
| Zmienia wysokość na podaną. | |
| void | SetSize (int NewWidth, int NewHeight) |
| Zmienia szerokość i wysokość na podaną. | |
| void | GetCenter (POINT_ *Out) const |
| int | GetCenterX () const |
| int | GetCenterY () const |
| bool | Empty () const |
| Zwraca true, jeśli prostokąt jest zerowy. | |
| void | Clear () |
| Czyści prostokąt na zerowy. | |
Atrybuty publiczne | |
| int | left |
| int | top |
| int | right |
| int | bottom |
RECTI jest kompatybilny ze strukturą RECT z Win32API. Konwersja do i ze stringa: "left,top,right,bottom", np. "1,2,3,4". Niezależnie od układu współrzędnych, prawidłowy prostokąt jest wtedy, kiedy top jest mniejsze co do wartości od bottom, a left od right.
| common::RECTI::RECTI | ( | ) | [inline] |
| common::RECTI::RECTI | ( | int | left, | |
| int | top, | |||
| int | right, | |||
| int | bottom | |||
| ) | [inline] |
| common::RECTI::RECTI | ( | const int * | Arr | ) | [inline] |
| common::RECTI::operator int * | ( | ) | [inline] |
| common::RECTI::operator const int * | ( | ) | const [inline] |
| bool common::RECTI::operator== | ( | const RECTI & | r | ) | const [inline] |
| bool common::RECTI::operator!= | ( | const RECTI & | r | ) | const [inline] |
| RECTI common::RECTI::operator+ | ( | ) | const [inline] |
| RECTI common::RECTI::operator- | ( | ) | const [inline] |
| RECTI common::RECTI::operator* | ( | int | s | ) | const [inline] |
| RECTI& common::RECTI::operator*= | ( | int | s | ) | [inline] |
| bool common::RECTI::IsValid | ( | ) | const [inline] |
| void common::RECTI::Repair | ( | ) | [inline] |
| void common::RECTI::LeftTop | ( | POINT_ * | Out | ) | const [inline] |
| void common::RECTI::RightBottom | ( | POINT_ * | Out | ) | const [inline] |
| void common::RECTI::Extend | ( | int | d | ) | [inline] |
Powiększa prostokąt z każdej strony o podaną wartość.
| int common::RECTI::Width | ( | ) | const [inline] |
Oblicza i zwraca szerokość.
| int common::RECTI::Height | ( | ) | const [inline] |
Oblicza i zwraca wysokość.
| float common::RECTI::Diagonal | ( | ) | const [inline] |
Oblicza i zwraca długość przekątnej.
| int common::RECTI::Field | ( | ) | const [inline] |
Oblicza i zwraca pole powierzchni.
| void common::RECTI::SetWidth | ( | int | NewWidth | ) | [inline] |
Zmienia szerokość na podaną.
| void common::RECTI::SetHeight | ( | int | NewHeight | ) | [inline] |
Zmienia wysokość na podaną.
| void common::RECTI::SetSize | ( | int | NewWidth, | |
| int | NewHeight | |||
| ) | [inline] |
Zmienia szerokość i wysokość na podaną.
| void common::RECTI::GetCenter | ( | POINT_ * | Out | ) | const [inline] |
| int common::RECTI::GetCenterX | ( | ) | const [inline] |
| int common::RECTI::GetCenterY | ( | ) | const [inline] |
| bool common::RECTI::Empty | ( | ) | const [inline] |
Zwraca true, jeśli prostokąt jest zerowy.
| void common::RECTI::Clear | ( | ) | [inline] |
Czyści prostokąt na zerowy.
1.5.5