SLV2 0.6.6

- Main Page
- Modules
- Files

- File List

pluginuiinstance.h
1 /* SLV2
2 * Copyright (C) 2007-2009 Dave Robillard <http://drobilla.net>
3 *
4 * This library is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation; either version 2 of the License, or (at your option)
7 * any later version.
8 *
9 * This library is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18
19 #ifndef __SLV2_PLUGINUIINSTANCE_H__
20 #define __SLV2_PLUGINUIINSTANCE_H__
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 #include <assert.h>
27 #include "slv2/lv2_ui.h"
28 #include "slv2/plugin.h"
29
30 typedef struct _SLV2UIInstanceImpl* SLV2UIInstanceImpl;
31
32 /* Instance of a plugin UI.
33 *
34 * All details are in hidden in the pimpl member to avoid making the
35 * implementation a part of the ABI.
36 */
37 typedef struct _SLV2UIInstance {
38 SLV2UIInstanceImpl pimpl;
39 }* SLV2UIInstance;
40
41
62 SLV2UIInstance
63 slv2_ui_instantiate(SLV2Plugin plugin,
64 SLV2UI ui,
65 LV2UI_Write_Function write_function,
66 LV2UI_Controller controller,
67 const LV2_Feature* const* features);
68
69
78 void
79 slv2_ui_instance_free(SLV2UIInstance instance);
80
81
84 LV2UI_Widget
85 slv2_ui_instance_get_widget(SLV2UIInstance instance);
86
87
95 const LV2UI_Descriptor*
96 slv2_ui_instance_get_descriptor(SLV2UIInstance instance);
97
98
106 LV2UI_Handle
107 slv2_ui_instance_get_handle(SLV2UIInstance instance);
108
109
112 #ifdef __cplusplus
113 } /* extern "C" */
114 #endif
115
116
117 #endif /* __SLV2_PLUGINUIINSTANCE_H__ */
118
slv2_ui_instantiate
SLV2UIInstance slv2_ui_instantiate(SLV2Plugin plugin, SLV2UI ui, LV2UI_Write_Function write_function, LV2UI_Controller controller, const LV2_Feature *const *features)
Instantiate a plugin UI.
slv2_ui_instance_get_descriptor
const LV2UI_Descriptor * slv2_ui_instance_get_descriptor(SLV2UIInstance instance)
Get the LV2UI_Descriptor of the plugin UI instance.
slv2_ui_instance_free
void slv2_ui_instance_free(SLV2UIInstance instance)
Free a plugin UI instance.
slv2_ui_instance_get_widget
LV2UI_Widget slv2_ui_instance_get_widget(SLV2UIInstance instance)
Get the widget for the UI instance.
slv2_ui_instance_get_handle
LV2UI_Handle slv2_ui_instance_get_handle(SLV2UIInstance instance)
Get the LV2UI_Handle of the plugin UI instance.