Jamba C++ API 7.5.0
Loading...
Searching...
No Matches
Types.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 <vstgui4/vstgui/lib/cbitmap.h>
22#include <vstgui4/vstgui/lib/cfont.h>
23#include <vstgui4/vstgui/lib/vstkeycode.h>
25
26#if VSTGUI_LIVE_EDITING
27#define EDITOR_MODE 1
28#endif
29
30namespace VSTGUI {
40
41}
42
43namespace pongasoft {
44namespace VST {
45namespace GUI {
46
47using namespace VSTGUI;
48
49// Defines a Bitmap types shortcut notation
50using BitmapPtr = CBitmap *;
51using BitmapSPtr = SharedPointer<CBitmap>;
52
53// Defines a Font types shortcut notation
54using FontPtr = CFontDesc *;
55using FontSPtr = SharedPointer<CFontDesc>;
56
57// Defines a Gradient types shortcut notation
58using GradientPtr = CGradient *;
59using GradientSPtr = SharedPointer<CGradient>;
60
65
68using KeyboardEventCallback = std::function<void(KeyboardEvent &)>;
69
70}
71}
72}
Definition Types.h:30
CKeyboardEventResult
VSTGUI defines a CMouseEventResult enum for mouse handling but no enumeration for keyboard events whi...
Definition Types.h:36
@ kKeyboardEventHandled
Definition Types.h:38
@ kKeyboardEventNotHandled
Definition Types.h:37
Definition DrawContext.cpp:25
std::function< void(KeyboardEvent &)> KeyboardEventCallback
Used to register global keyboard hooks.
Definition Types.h:68
CGradient * GradientPtr
Definition Types.h:58
CFontDesc * FontPtr
Definition Types.h:54
CBitmap * BitmapPtr
Definition Types.h:50
Utils::Range< CCoord > Range
Defines a Range.
Definition Types.h:64
SharedPointer< CFontDesc > FontSPtr
Definition Types.h:55
SharedPointer< CGradient > GradientSPtr
Definition Types.h:59
SharedPointer< CBitmap > BitmapSPtr
Definition Types.h:51
Definition Clock.h:24
Definition Clock.h:23
Defines a range of values.
Definition Lerp.h:231