MeshLib
 
Loading...
Searching...
No Matches
MR::ViewportId Class Reference

#include <MRViewportId.h>

Public Member Functions

 ViewportId () noexcept=default
 
constexpr ViewportId (unsigned i) noexcept
 
constexpr unsigned value () const
 
bool valid () const
 
 operator bool () const
 
bool operator== (ViewportId b) const
 
bool operator!= (ViewportId b) const
 
bool operator< (ViewportId b) const
 
ViewportId next () const
 
ViewportId prev () const
 

Detailed Description

stores unique identifier of a viewport, which is power of two; id=0 has a special meaning of default viewport in some contexts

Constructor & Destructor Documentation

◆ ViewportId() [1/2]

MR::ViewportId::ViewportId ( )
defaultnoexcept

◆ ViewportId() [2/2]

MR::ViewportId::ViewportId ( unsigned i)
inlineexplicitconstexprnoexcept

Member Function Documentation

◆ next()

ViewportId MR::ViewportId::next ( ) const
inline

◆ operator bool()

MR::ViewportId::operator bool ( ) const
inlineexplicit

◆ operator!=()

bool MR::ViewportId::operator!= ( ViewportId b) const
inline

◆ operator<()

bool MR::ViewportId::operator< ( ViewportId b) const
inline

◆ operator==()

bool MR::ViewportId::operator== ( ViewportId b) const
inline

◆ prev()

ViewportId MR::ViewportId::prev ( ) const
inline

◆ valid()

bool MR::ViewportId::valid ( ) const
inline

◆ value()

unsigned MR::ViewportId::value ( ) const
inlineconstexpr

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