lecui 1.0.0-alpha.20
lecui C++ user interface library
Public Member Functions | List of all members
liblec::lecui::point Class Reference

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...
 
pointx (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...
 
pointy (const float &y)
 Set the y-coordinate, in pixels. More...
 

Detailed Description

A point.

Coordinates are referenced from the top left towards the bottom right.

Constructor & Destructor Documentation

◆ point()

liblec::lecui::point::point ( const float  x,
const float  y 
)

Point constructor.

Parameters
xThe value of the x-coordinate, in pixels.
yThe value of the y-coordinate, in pixels.

Member Function Documentation

◆ get_x()

float liblec::lecui::point::get_x ( ) const

Get the x-coordinate, in pixels.

Returns
The value of the x-coordinate, in pixels.

◆ get_y()

float liblec::lecui::point::get_y ( ) const

Get the y-coordinate, in pixels.

Returns
The value of the y-coordinate, in pixels.

◆ x() [1/2]

float & liblec::lecui::point::x ( )

Get or set the x-coordinate, in pixels.

Returns
A reference to the property.

◆ x() [2/2]

point & liblec::lecui::point::x ( const float &  x)

Set the x-coordinate, in pixels.

Parameters
xThe x-coordinate, in pixels.
Returns
A reference to the modified object.

◆ y() [1/2]

float & liblec::lecui::point::y ( )

Get or set the y-coordinate, in pixels.

Returns
A reference to the property.

◆ y() [2/2]

point & liblec::lecui::point::y ( const float &  y)

Set the y-coordinate, in pixels.

Parameters
yThe y-coordinate, in pixels.
Returns
A reference to the modified object.

The documentation for this class was generated from the following file: