Jamba  3.0.2
CustomController.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 pongasoft
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5  * use this file except in compliance with the License. You may obtain a copy of
6  * the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13  * License for the specific language governing permissions and limitations under
14  * the License.
15  *
16  * @author Yan Pujante
17  */
18 #pragma once
19 
20 #include <vstgui4/vstgui/uidescription/delegationcontroller.h>
22 #include "PluginAccessor.h"
23 
24 namespace pongasoft {
25 namespace VST {
26 namespace GUI {
27 namespace Views {
28 
32 class CustomController : public VSTGUI::DelegationController, public GUIParamCxAware
33 {
34 public:
35  // Constructor
36  explicit CustomController(IController *iBaseController) : DelegationController(iBaseController) {}
37 };
38 
39 
46 template<typename TGUIPluginState>
47 class PluginCustomController : public CustomController, public PluginAccessor<TGUIPluginState>
48 {
49 public:
50  // Constructor
51  explicit PluginCustomController(IController *iBaseController) : CustomController(iBaseController) {}
52 
53 protected:
54  // initState - overridden to extract fParams
55  void initState(GUIState *iGUIState) override
56  {
57  CustomController::initState(iGUIState);
59  }
60 };
61 
62 }
63 }
64 }
65 }
CustomController(IController *iBaseController)
Definition: CustomController.h:36
Definition: GUIState.h:39
Definition: CustomController.h:32
Definition: Clock.h:22
virtual void initState(GUIState *iGUIState)
Definition: PluginAccessor.h:37
Definition: PluginAccessor.h:33
PluginCustomController(IController *iBaseController)
Definition: CustomController.h:51
Definition: GUIParamCxAware.h:38
void initState(GUIState *iGUIState) override
Definition: CustomController.h:55
virtual void initState(GUIState *iGUIState)
Definition: GUIParamCxAware.cpp:37