MeshLib Documentation
Loading...
Searching...
No Matches
MR::ViewportMask Class Reference

stores mask of viewport unique identifiers More...

#include <MRViewportId.h>

Public Member Functions

 ViewportMask () noexcept=default
 
constexpr ViewportMask (unsigned i) noexcept
 
constexpr ViewportMask (ViewportId i) noexcept
 
constexpr unsigned value () const
 
constexpr bool empty () const
 
bool contains (ViewportId id) const
 
bool operator== (ViewportMask b) const
 
bool operator!= (ViewportMask b) const
 
bool operator< (ViewportMask b) const
 
ViewportMask operator~ () const
 
ViewportMaskoperator&= (ViewportMask b)
 
ViewportMaskoperator|= (ViewportMask b)
 
ViewportMaskoperator^= (ViewportMask b)
 
void set (ViewportId id, bool on=true)
 

Static Public Member Functions

static ViewportMask all ()
 mask meaning all or any viewports
 
static ViewportMask any ()
 

Detailed Description

stores mask of viewport unique identifiers

Constructor & Destructor Documentation

◆ ViewportMask() [1/3]

MR::ViewportMask::ViewportMask ( )
defaultnoexcept

◆ ViewportMask() [2/3]

MR::ViewportMask::ViewportMask ( unsigned i)
inlineexplicitconstexprnoexcept

◆ ViewportMask() [3/3]

MR::ViewportMask::ViewportMask ( ViewportId i)
inlineconstexprnoexcept

Member Function Documentation

◆ all()

static ViewportMask MR::ViewportMask::all ( )
inlinestatic

mask meaning all or any viewports

◆ any()

static ViewportMask MR::ViewportMask::any ( )
inlinestatic

◆ contains()

bool MR::ViewportMask::contains ( ViewportId id) const
inline

◆ empty()

bool MR::ViewportMask::empty ( ) const
inlineconstexpr

◆ operator!=()

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

◆ operator&=()

ViewportMask & MR::ViewportMask::operator&= ( ViewportMask b)
inline

◆ operator<()

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

◆ operator==()

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

◆ operator^=()

ViewportMask & MR::ViewportMask::operator^= ( ViewportMask b)
inline

◆ operator|=()

ViewportMask & MR::ViewportMask::operator|= ( ViewportMask b)
inline

◆ operator~()

ViewportMask MR::ViewportMask::operator~ ( ) const
inline

◆ set()

void MR::ViewportMask::set ( ViewportId id,
bool on = true )
inline

◆ value()

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

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