• Main Page
  • Modules
  • Files
  • File List

pluginuiinstance.h

00001 /* SLV2
00002  * Copyright (C) 2007-2009 David 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 SLV2_API
00063 SLV2UIInstance
00064 slv2_ui_instantiate(SLV2Plugin                plugin,
00065                     SLV2UI                    ui,
00066                     LV2UI_Write_Function      write_function,
00067                     LV2UI_Controller          controller,
00068                     const LV2_Feature* const* features);
00069 
00070 
00079 SLV2_API
00080 void
00081 slv2_ui_instance_free(SLV2UIInstance instance);
00082 
00083 
00086 SLV2_API
00087 LV2UI_Widget
00088 slv2_ui_instance_get_widget(SLV2UIInstance instance);
00089 
00090 
00098 SLV2_API
00099 const LV2UI_Descriptor*
00100 slv2_ui_instance_get_descriptor(SLV2UIInstance instance);
00101 
00102 
00110 SLV2_API
00111 LV2UI_Handle
00112 slv2_ui_instance_get_handle(SLV2UIInstance instance);
00113 
00114 
00117 #ifdef __cplusplus
00118 } /* extern "C" */
00119 #endif
00120 
00121 
00122 #endif /* __SLV2_PLUGINUIINSTANCE_H__ */
00123 

Generated on Fri Sep 3 2010 21:44:10 for SLV2 by  doxygen 1.7.1