#include <cel_geom.h>
Public Member Functions | |
| Size (ssize_t inWidth=0, ssize_t inHeight=0) | |
| Size (const Rect &inRect) | |
Public Attributes | |
| ssize_t | width |
| Width of the rectangle. | |
| ssize_t | height |
| Height of the rectangle. | |
A Size struct stores the metrics (width/height) of the rectangle.
| Celartem::Size::Size | ( | ssize_t | inWidth = 0, |
|
| ssize_t | inHeight = 0 | |||
| ) | [inline] |
This constructor initializes the Size instance.
| inWidth | Width of the rectangle. | |
| inHeight | Height of the rectangle. |
| Celartem::Size::Size | ( | const Rect & | inRect | ) | [inline, explicit] |
This constructor converts the Rect instance into the Size instance using Rect::width and Rect::height member.
| ssize_t Celartem::Size::height |
Height of the rectangle.
| ssize_t Celartem::Size::width |
Width of the rectangle.