lecui 1.0.0-alpha.20
lecui C++ user interface library
Public Member Functions | Public Attributes | List of all members
liblec::lecui::widgets::strength_bar::strength_level Struct Reference

Strength level as a percentage. More...

#include <strength_bar.h>

Public Member Functions

bool operator== (const strength_level &param)
 Check whether strength levels are equal. All properties are considered. More...
 
bool operator!= (const strength_level &param)
 Check whether strength levels are NOT equal. All properties are considered. More...
 

Public Attributes

float level = 0.f
 The upper limit of the level, e.g. 33.f for "low", 66.f for "medium" and 100.f for "high".
 
lecui::color color
 The color to use for the level.
 

Detailed Description

Strength level as a percentage.

Member Function Documentation

◆ operator!=()

bool liblec::lecui::widgets::strength_bar::strength_level::operator!= ( const strength_level param)

Check whether strength levels are NOT equal. All properties are considered.

Parameters
paramThe strength level to compare to.
Returns
Returns true if the strength levels are NOT equal, else false.

◆ operator==()

bool liblec::lecui::widgets::strength_bar::strength_level::operator== ( const strength_level param)

Check whether strength levels are equal. All properties are considered.

Parameters
paramThe strength level to compare to.
Returns
Returns true if the strength levels are equal, else false.

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