Jamba C++ API 7.5.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
26namespace pongasoft {
27namespace VST {
28namespace GUI {
29namespace Params {
30
31using namespace Steinberg::Vst;
32using namespace Steinberg;
33
38class GUIParamCx : public FObjectCx
39{
40public:
41 // Constructor with listener
42 GUIParamCx(ParamID iParamID, FObject *iParameter, Parameters::IChangeListener *iChangeListener);
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}
64}
65
66
FObjectCx(FObject *iTarget)
Definition FObjectCx.cpp:30
ParamID fParamID
Definition GUIParamCx.h:57
GUIParamCx(GUIParamCx const &)=delete
GUIParamCx(ParamID iParamID, FObject *iParameter, Parameters::IChangeListener *iChangeListener)
Definition GUIParamCx.cpp:29
void close() override
Call to stop listening for changes.
Definition GUIParamCx.cpp:40
Parameters::IChangeListener * fChangeListener
Definition GUIParamCx.h:58
GUIParamCx & operator=(GUIParamCx const &)=delete
void onTargetChange() override
Called when the target changes (by default does nothing).
Definition GUIParamCx.cpp:51
Interface to implement to receive parameter changes.
Definition Parameters.h:45
Definition GUIState.h:38
Definition DrawContext.cpp:25
Definition Clock.h:24
Definition Clock.h:23