lecui 1.0.0-alpha.20
lecui C++ user interface library
|
Size of a rectangular structure. More...
#include <lecui.h>
Public Member Functions | |
size () | |
Size constructor. Initializes with a size of 0.f x 0.f. | |
size (const float width, const float height) | |
Size constructor. More... | |
float & | width () |
Get or set the width of the rectangular structure, in pixels. More... | |
float | get_width () const |
Get or set the width of the rectangular structure, in pixels. More... | |
size & | width (const float &width) |
Set the width of a rectangular structure, in pixels. More... | |
float & | height () |
Get or set the height of the rectangular structure, in pixels. More... | |
float | get_height () const |
Get or set the height of the rectangular structure, in pixels. More... | |
size & | height (const float &height) |
Set the height of a rectangular structure, in pixels. More... | |
Size of a rectangular structure.
liblec::lecui::size::size | ( | const float | width, |
const float | height | ||
) |
Size constructor.
width | The width of the rectangular structure, in pixels. |
height | The height of the rectangular structure, in pixels. |
float liblec::lecui::size::get_height | ( | ) | const |
Get or set the height of the rectangular structure, in pixels.
float liblec::lecui::size::get_width | ( | ) | const |
Get or set the width of the rectangular structure, in pixels.
float & liblec::lecui::size::height | ( | ) |
Get or set the height of the rectangular structure, in pixels.
size & liblec::lecui::size::height | ( | const float & | height | ) |
Set the height of a rectangular structure, in pixels.
height | The height, in pixels. |
float & liblec::lecui::size::width | ( | ) |
Get or set the width of the rectangular structure, in pixels.
size & liblec::lecui::size::width | ( | const float & | width | ) |
Set the width of a rectangular structure, in pixels.
width | The width, in pixels. |