Jamba C++ API 8.0.0
Loading...
Searching...
No Matches
GUIParamCx.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 pongasoft
3 *
4 * Licensed under the Apache License, Version 2.0 or the MIT license,
5 * at your option. You may not use this file except in compliance with
6 * one of these licenses. You may obtain copies of the licenses at:
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 * https://opensource.org/licenses/MIT
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 *
17 * @author Yan Pujante
18 */
19#pragma once
20
21#include <base/source/fobject.h>
22#include <pluginterfaces/vst/vsttypes.h>
25
27
28using namespace Steinberg::Vst;
29using namespace Steinberg;
30
35class GUIParamCx : public FObjectCx
36{
37public:
38 // Constructor with listener
39 GUIParamCx(ParamID iParamID, FObject *iParameter, Parameters::IChangeListener *iChangeListener);
40
43
47 void close() override;
48
49 // onTargetChange
50 void onTargetChange() override;
51
52 // disabling copy
53 GUIParamCx(GUIParamCx const &) = delete;
54 GUIParamCx& operator=(GUIParamCx const &) = delete;
55
56protected:
57 ParamID fParamID;
59};
60
61}
62
63
FObjectCx(FObject *iTarget)
Definition FObjectCx.cpp:28
ParamID fParamID
Definition GUIParamCx.h:57
GUIParamCx(GUIParamCx const &)=delete
GUIParamCx(ParamID iParamID, FObject *iParameter, Parameters::IChangeListener *iChangeListener)
Definition GUIParamCx.cpp:26
void close() override
Call to stop listening for changes.
Definition GUIParamCx.cpp:37
Parameters::IChangeListener * fChangeListener
Definition GUIParamCx.h:58
~GUIParamCx() override
Destructor (calls close()).
Definition GUIParamCx.h:42
GUIParamCx & operator=(GUIParamCx const &)=delete
void onTargetChange() override
Called when the target changes (by default does nothing).
Definition GUIParamCx.cpp:48
Interface to implement to receive parameter changes.
Definition Parameters.h:47
Definition GUIState.h:40