#include <size.h>
Public Member Functions | |
| Size (int width=0, int height=0) | |
| int | width () const |
| int | height () const |
| bool | isValid () const |
| void | setWidth (int w) |
| void | setHeight (int h) |
| void | setSize (int w, int h) |
| bool | operator== (const Size &other) const |
| Compare two Sizes for equality. | |
| bool | operator!= (const Size &other) const |
| Compare two Sizes. | |
| bool | contains (const Size &other) const |
| Size & | operator+= (const Size &other) |
| increment operator | |
| Size & | operator>> (int margin) |
| add a margin (smaller rectangle) | |
| Size & | operator<< (int margin) |
| subtract a margin (bigger rectangle) | |
| Size | operator>> (int margin) const |
| add a margin (smaller rectangle) | |
| Size | operator<< (int margin) const |
| subtract a margin (bigger rectangle) | |
| Size | boundedTo (const Size &other) const |
| Size & | boundedTo (const Size &other) |
| Size | expandedTo (const Size &other) const |
| Size & | expandedTo (const Size &other) |
| Wt::Size::Size | ( | int | width = 0, |
|
| int | height = 0 | |||
| ) | [inline] |
| bool Wt::Size::contains | ( | const Size & | other | ) | const [inline] |
| int Wt::Size::height | ( | ) | const [inline] |
| bool Wt::Size::isValid | ( | ) | const [inline] |
| bool Wt::Size::operator!= | ( | const Size & | other | ) | const [inline] |
Compare two Sizes.
| Size Wt::Size::operator<< | ( | int | margin | ) | const [inline] |
subtract a margin (bigger rectangle)
| Size& Wt::Size::operator<< | ( | int | margin | ) | [inline] |
subtract a margin (bigger rectangle)
| bool Wt::Size::operator== | ( | const Size & | other | ) | const [inline] |
Compare two Sizes for equality.
| Size Wt::Size::operator>> | ( | int | margin | ) | const [inline] |
add a margin (smaller rectangle)
| Size& Wt::Size::operator>> | ( | int | margin | ) | [inline] |
add a margin (smaller rectangle)
| void Wt::Size::setHeight | ( | int | h | ) | [inline] |
| void Wt::Size::setSize | ( | int | w, | |
| int | h | |||
| ) | [inline] |
| void Wt::Size::setWidth | ( | int | w | ) | [inline] |
| int Wt::Size::width | ( | ) | const [inline] |
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.