Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | List of all members
DisplaySpec Class Reference

The dimensions of the program. More...

#include <DisplaySpec.h>

Public Member Functions

 DisplaySpec (std::string id, std::string name, const std::set< DisplayMode > &modes, const DisplayMode &curMode, const RectI &curBounds, const bool isVirtual=false)
 
 DisplaySpec (const std::string &id, const std::string &name, const std::set< DisplayMode > &modes, const bool isVirtual=false)
 
 DisplaySpec (std::string id, std::string name, DisplayMode mode)
 
 DisplaySpec (const DisplaySpec &other)=default
 
auto name () const -> std::string
 
auto id () const -> std::string
 
auto supportedModes () const -> const std::set< DisplayMode > &
 
auto currentMode () const -> const DisplayMode *
 
auto currentBounds () const -> const RectI &
 
auto isVirtual () const -> bool
 
auto operator< (const DisplaySpec &other) const -> bool
 Determine if one DisplaySpec compares less than the other.
 
void PushSelf (lua_State *L)
 

Detailed Description

The dimensions of the program.

Member Function Documentation

◆ operator<()

auto DisplaySpec::operator< ( const DisplaySpec other) const -> bool
inline

Determine if one DisplaySpec compares less than the other.

Used to enforce a consistent ordering of displays, e.g. for consistent option presentation. Also allows DisplaySpec to be placed in a std::set

Parameters
otherthe other DisplaySpec to check.
Returns
true if this DisplaySpec is less than the other, or false otherwise.

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