Jamba C++ API 7.5.0
Loading...
Searching...
No Matches
CustomViewFactory.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018-2019 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 <vstgui4/vstgui/uidescription/uiviewfactory.h>
23
25
26using namespace Params;
27
31class CustomUIViewFactory : public VSTGUI::UIViewFactory
32{
33public:
34 explicit CustomUIViewFactory(GUIState *iGUIState) : fGUIState{iGUIState}
35 {
36 }
37
38protected:
39 // overridden to detect ParamAware instances
40 bool applyAttributeValues(CView *view, const UIAttributes &attributes, const IUIDescription *desc) const override;
41
42 // overridden to detect ParamAware instances
43 bool applyCustomViewAttributeValues(CView *customView,
44 IdStringPtr baseViewName,
45 const UIAttributes &attributes,
46 const IUIDescription *desc) const override;
47
48 // overridden to detect ParamAware instances
49 CView *createView(const UIAttributes &attributes, const IUIDescription *description) const override;
50
51private:
53};
54
55
56}
Definition GUIState.h:43
bool applyCustomViewAttributeValues(CView *customView, IdStringPtr baseViewName, const UIAttributes &attributes, const IUIDescription *desc) const override
Definition CustomViewFactory.cpp:47
CustomUIViewFactory(GUIState *iGUIState)
Definition CustomViewFactory.h:34
bool applyAttributeValues(CView *view, const UIAttributes &attributes, const IUIDescription *desc) const override
Definition CustomViewFactory.cpp:31
CView * createView(const UIAttributes &attributes, const IUIDescription *description) const override
Definition CustomViewFactory.cpp:64
GUIState * fGUIState
Definition CustomViewFactory.h:52
Definition CustomController.h:25