- Main Page
- Modules
- Files

- File List

# pluginuiinstance.h

    00001 /* SLV2
    00002  * Copyright (C) 2007-2009 Dave Robillard <http://drobilla.net>
    00003  *
    00004  * This library is free software; you can redistribute it and/or modify it
    00005  * under the terms of the GNU General Public License as published by the Free
    00006  * Software Foundation; either version 2 of the License, or (at your option)
    00007  * any later version.
    00008  *
    00009  * This library is distributed in the hope that it will be useful, but WITHOUT
    00010  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    00011  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    00012  * for more details.
    00013  *
    00014  * You should have received a copy of the GNU General Public License along
    00015  * with this program; if not, write to the Free Software Foundation, Inc.,
    00016  * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    00017  */
    00018
    00019 #ifndef __SLV2_PLUGINUIINSTANCE_H__
    00020 #define __SLV2_PLUGINUIINSTANCE_H__
    00021
    00022 #ifdef __cplusplus
    00023 extern "C" {
    00024 #endif
    00025
    00026 #include <assert.h>
    00027 #include "slv2/lv2_ui.h"
    00028 #include "slv2/plugin.h"
    00029
    00030 typedef struct _SLV2UIInstanceImpl* SLV2UIInstanceImpl;
    00031
    00032 /* Instance of a plugin UI.
    00033  *
    00034  * All details are in hidden in the pimpl member to avoid making the
    00035  * implementation a part of the ABI.
    00036  */
    00037 typedef struct _SLV2UIInstance {
    00038     SLV2UIInstanceImpl pimpl;
    00039 }* SLV2UIInstance;
    00040
    00041
    00062 SLV2UIInstance
    00063 slv2_ui_instantiate(SLV2Plugin                plugin,
    00064                     SLV2UI                    ui,
    00065                     LV2UI_Write_Function      write_function,
    00066                     LV2UI_Controller          controller,
    00067                     const LV2_Feature* const* features);
    00068
    00069
    00078 void
    00079 slv2_ui_instance_free(SLV2UIInstance instance);
    00080
    00081
    00084 LV2UI_Widget
    00085 slv2_ui_instance_get_widget(SLV2UIInstance instance);
    00086
    00087
    00095 const LV2UI_Descriptor*
    00096 slv2_ui_instance_get_descriptor(SLV2UIInstance instance);
    00097
    00098
    00106 LV2UI_Handle
    00107 slv2_ui_instance_get_handle(SLV2UIInstance instance);
    00108
    00109
    00112 #ifdef __cplusplus
    00113 } /* extern "C" */
    00114 #endif
    00115
    00116
    00117 #endif /* __SLV2_PLUGINUIINSTANCE_H__ */
    00118