#include <MRViewportProperty.h>
Public Member Functions | |
ViewportProperty ()=default | |
ViewportProperty (const T &def) | |
void | set (T def) |
sets default property value | |
const T & | get () const |
gets default property value | |
T & | get () |
T & | operator[] (ViewportId id) |
returns direct access to value associated with given viewport (or default value if !id) | |
void | set (T v, ViewportId id) |
sets specific property value for given viewport (or default value if !id) | |
const T & | get (ViewportId id, bool *isDef=nullptr) const |
bool | reset (ViewportId id) |
bool | reset () |
storage of some viewport-dependent property, which has some default value for all viewports and special values for some specific viewports
|
default |
|
inline |
|
inline |
|
inline |
gets default property value
|
inline |
gets property value for given viewport: specific if available otherwise default one;
isDef | receives true if this viewport does not have specific value and default one is returned |
|
inline |
returns direct access to value associated with given viewport (or default value if !id)
|
inline |
forgets specific property value for all viewports; returns true if any specific value was removed
|
inline |
forgets specific property value for given viewport (or all viewports if !id); returns true if any specific value was removed
|
inline |
sets default property value
|
inline |
sets specific property value for given viewport (or default value if !id)