NvTweakVarUI< T > Class Template Reference

A templated object that links NvTweakVar of some datatype with an appropriate UI widget. More...

#include <NvTweakBar.h>

Inheritance diagram for NvTweakVarUI< T >:

NvTweakVarUIProxyBase NvUIProxy NvUIElement

List of all members.

Public Member Functions

 NvTweakVarUI (NvTweakVar< T > &tvar, NvUIElement *el, uint32_t actionCode=0)
 Base constructor for establishing UI for editing an NvTweakVar variable.
virtual NvUIEventResponse HandleReaction (const NvUIReaction &react)
 We override HandleReaction so that when there is an NvUIReaction passing through the system containing a value change for us or from our proxied UI, we can intercept and set the value of our NvTweakVar appropriately.

Protected Attributes

NvTweakVar< T > & m_tvar
 The variable we hold a reference to in order to adjust its value based on the input/reaction from the user interacting with our proxied UI widget.


Detailed Description

template<class T>
class NvTweakVarUI< T >

A templated object that links NvTweakVar of some datatype with an appropriate UI widget.

This class connects a tweakable app variable, a specific NvTweakVar template instance, with a UI widget appropriate for changing the value of that variable, linked by an action code shared between the systems.


Constructor & Destructor Documentation

template<class T>
NvTweakVarUI< T >::NvTweakVarUI ( NvTweakVar< T > &  tvar,
NvUIElement el,
uint32_t  actionCode = 0 
) [inline]

Base constructor for establishing UI for editing an NvTweakVar variable.

This instantiates the base proxy link between this stand-in object and the real NvUIElement widget, and sets the action code if needed.


Member Function Documentation

template<class T>
virtual NvUIEventResponse NvTweakVarUI< T >::HandleReaction ( const NvUIReaction react  )  [virtual]

We override HandleReaction so that when there is an NvUIReaction passing through the system containing a value change for us or from our proxied UI, we can intercept and set the value of our NvTweakVar appropriately.

Reimplemented from NvTweakVarUIProxyBase.

Reimplemented in NvTweakEnumUI< T >.


Member Data Documentation

template<class T>
NvTweakVar<T>& NvTweakVarUI< T >::m_tvar [protected]

The variable we hold a reference to in order to adjust its value based on the input/reaction from the user interacting with our proxied UI widget.


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