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

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...
 
sizewidth (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...
 
sizeheight (const float &height)
 Set the height of a rectangular structure, in pixels. More...
 

Detailed Description

Size of a rectangular structure.

Constructor & Destructor Documentation

◆ size()

liblec::lecui::size::size ( const float  width,
const float  height 
)

Size constructor.

Parameters
widthThe width of the rectangular structure, in pixels.
heightThe height of the rectangular structure, in pixels.

Member Function Documentation

◆ get_height()

float liblec::lecui::size::get_height ( ) const

Get or set the height of the rectangular structure, in pixels.

Returns
The height, in pixels.

◆ get_width()

float liblec::lecui::size::get_width ( ) const

Get or set the width of the rectangular structure, in pixels.

Returns
The width, in pixels.

◆ height() [1/2]

float & liblec::lecui::size::height ( )

Get or set the height of the rectangular structure, in pixels.

Returns
A reference to the property.

◆ height() [2/2]

size & liblec::lecui::size::height ( const float &  height)

Set the height of a rectangular structure, in pixels.

Parameters
heightThe height, in pixels.
Returns
A reference to the modified object.

◆ width() [1/2]

float & liblec::lecui::size::width ( )

Get or set the width of the rectangular structure, in pixels.

Returns
A reference to the property.

◆ width() [2/2]

size & liblec::lecui::size::width ( const float &  width)

Set the width of a rectangular structure, in pixels.

Parameters
widthThe width, in pixels.
Returns
A reference to the modified object.

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