Audacity 3.2.0
lv2_external_ui.h
Go to the documentation of this file.
1/*
2 LV2 External UI extension
3 This work is in public domain.
4
5 This file is distributed in the hope that it will be useful,
6 but WITHOUT ANY WARRANTY; without even the implied warranty of
7 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8
9 If you have questions, contact Filipe Coelho (aka falkTX) <[email protected]>
10 or ask in #lad channel, FreeNode IRC network.
11*/
12
18#ifndef LV2_EXTERNAL_UI_H
19#define LV2_EXTERNAL_UI_H
20
21#include "lv2/lv2plug.in/ns/extensions/ui/ui.h"
22
23#define LV2_EXTERNAL_UI_URI "http://kxstudio.sf.net/ns/lv2ext/external-ui"
24#define LV2_EXTERNAL_UI_PREFIX LV2_EXTERNAL_UI_URI "#"
25
26#define LV2_EXTERNAL_UI__Host LV2_EXTERNAL_UI_PREFIX "Host"
27#define LV2_EXTERNAL_UI__Widget LV2_EXTERNAL_UI_PREFIX "Widget"
28
30#define LV2_EXTERNAL_UI_DEPRECATED_URI "http://lv2plug.in/ns/extensions/ui#external"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
48 void (*run)(struct _LV2_External_UI_Widget * _this_);
49
55 void (*show)(struct _LV2_External_UI_Widget * _this_);
56
62 void (*hide)(struct _LV2_External_UI_Widget * _this_);
63
65
66#define LV2_EXTERNAL_UI_RUN(ptr) (ptr)->run(ptr)
67#define LV2_EXTERNAL_UI_SHOW(ptr) (ptr)->show(ptr)
68#define LV2_EXTERNAL_UI_HIDE(ptr) (ptr)->hide(ptr)
69
74typedef struct _LV2_External_UI_Host {
90 void (*ui_closed)(LV2UI_Controller controller);
91
101 const char * plugin_human_id;
102
104
105#ifdef __cplusplus
106} /* extern "C" */
107#endif
108
109#endif /* LV2_EXTERNAL_UI_H */
struct _LV2_External_UI_Widget LV2_External_UI_Widget
struct _LV2_External_UI_Host LV2_External_UI_Host
const char * plugin_human_id
void(* ui_closed)(LV2UI_Controller controller)
void(* show)(struct _LV2_External_UI_Widget *_this_)
void(* hide)(struct _LV2_External_UI_Widget *_this_)
void(* run)(struct _LV2_External_UI_Widget *_this_)