|
| int32 | getStepCount () const override |
| | When a parameter is a discrete parameter (which means its underlying backing type is an int32 with values in the discrete range [0, getStepCount()]), this method will return the number of steps (> 0).
|
| | GUIDiscreteValParameter (ParamID iParamID, int32 iDefaultValue, int32 iStepCount) |
| tresult | accessValue (typename ITGUIParameter< int32 >::ValueAccessor const &iGetter) const override |
| std::shared_ptr< GUIDiscreteParameter > | asDiscreteParameter (int32 iStepCount) override |
| | Converts this parameter into a discrete parameter.
|
| std::unique_ptr< FObjectCx > | connect (Parameters::IChangeListener *iChangeListener) const override |
| std::unique_ptr< EditorType > | edit () override |
| ParamID | getParamID () const override |
| | Each parameter has a unique ID returned by this method.
|
| int32 | getStepCount () const override |
| | When a parameter is a discrete parameter (which means its underlying backing type is an int32 with values in the discrete range [0, getStepCount()]), this method will return the number of steps (> 0).
|
| ParamType const & | getValue () const |
| | GUIValParameter (ParamID iParamID, ParamType const &iDefaultValue) |
| tresult | resetToDefault () override |
| | Resets the param to its default value.
|
| void | setParamID (ParamID iParamID) |
| tresult | setValue (ParamType const &iValue) override |
| | Sets the value.
|
| std::string | toUTF8String (int32 iPrecision) const override |
| | Returns the current value of the parameter as a string (which is properly UTF-8 encoded).
|
| bool | update (ParamType const &iValue) override |
| | Update the parameter with a value.
|
| bool | updateIf (ValueModifier const &iValueModifier) |
| | Use this flavor of update if you want to modify the value itself.
|
| | ~GUIValParameter () override |
| virtual tresult | accessValue (ValueAccessor const &iGetter) const=0 |
| | API to access the underlying value.
|
| template<typename T> |
| std::shared_ptr< ITGUIParameter< T > > | cast () |
| | Downcasts this parameter into a typed version.
|
| virtual std::unique_ptr< FObjectCx > | connect (Parameters::ChangeCallback iChangeCallback) const =0 |
| | Creates a connection between this parameter and the callback: whenever the parameter changes, the callback will be invoked (std::function<void()>).
|
Simple extension class to treat a Val parameter as a discrete one.
- Note
- GUIValParameter is internal and not shared across views. As a result this implementation does not wrap another GUIValParameter (like GUIJmbParameter implementation does) which suffices for the current need. If GUIValParameter gets promoted to api level at a later date, then this implementation will need to be changed.
- Private API
- This is part of the internal/private API of Jamba and should not be used directly.