lecui 1.0.0-alpha.20
lecui C++ user interface library
|
A point. More...
#include <lecui.h>
Public Member Functions | |
point () | |
Point constructor. Initializes at the origin (0.f, 0.f). | |
point (const float x, const float y) | |
Point constructor. More... | |
float & | x () |
Get or set the x-coordinate, in pixels. More... | |
float | get_x () const |
Get the x-coordinate, in pixels. More... | |
point & | x (const float &x) |
Set the x-coordinate, in pixels. More... | |
float & | y () |
Get or set the y-coordinate, in pixels. More... | |
float | get_y () const |
Get the y-coordinate, in pixels. More... | |
point & | y (const float &y) |
Set the y-coordinate, in pixels. More... | |
A point.
Coordinates are referenced from the top left towards the bottom right.
liblec::lecui::point::point | ( | const float | x, |
const float | y | ||
) |
Point constructor.
x | The value of the x-coordinate, in pixels. |
y | The value of the y-coordinate, in pixels. |
float liblec::lecui::point::get_x | ( | ) | const |
Get the x-coordinate, in pixels.
float liblec::lecui::point::get_y | ( | ) | const |
Get the y-coordinate, in pixels.
float & liblec::lecui::point::x | ( | ) |
Get or set the x-coordinate, in pixels.
point & liblec::lecui::point::x | ( | const float & | x | ) |
Set the x-coordinate, in pixels.
x | The x-coordinate, in pixels. |
float & liblec::lecui::point::y | ( | ) |
Get or set the y-coordinate, in pixels.
point & liblec::lecui::point::y | ( | const float & | y | ) |
Set the y-coordinate, in pixels.
y | The y-coordinate, in pixels. |