26 #ifdef PLATFORM_WINDOWS
27 #include <gdk/gdkwin32.h>
28 #elif defined __APPLE__
38 Gtk::HBox* box = manage (
new Gtk::HBox);
40 box->set_border_width (6);
51 pack_start (*box,
false,
false);
52 #ifdef GDK_WINDOWING_X11
53 pack_start (
_socket,
true,
true);
66 #ifdef GDK_WINDOWING_X11
87 #ifdef GDK_WINDOWING_X11
119 #ifdef GDK_WINDOWING_X11
124 if ((w =
_socket.gobj()->plug_window) == 0) {
128 event.xconfigure.type = ConfigureNotify;
129 event.xconfigure.event = GDK_WINDOW_XWINDOW (w);
130 event.xconfigure.window = GDK_WINDOW_XWINDOW (w);
136 gdk_error_trap_push ();
137 gdk_window_get_origin (w, &x, &y);
138 gdk_error_trap_pop ();
140 event.xconfigure.x = x;
141 event.xconfigure.y = y;
142 event.xconfigure.width = GTK_WIDGET (
_socket.gobj())->allocation.width;
143 event.xconfigure.height = GTK_WIDGET (
_socket.gobj())->allocation.height;
145 event.xconfigure.border_width = 0;
146 event.xconfigure.above =
None;
147 event.xconfigure.override_redirect = False;
149 gdk_error_trap_push ();
150 XSendEvent (GDK_WINDOW_XDISPLAY (w), GDK_WINDOW_XWINDOW (w), False, StructureNotifyMask, &event);
151 gdk_error_trap_pop ();
bool configure_handler(GdkEventConfigure *)
ArdourDropdown _preset_combo
ArdourButton delete_button
virtual int package(Gtk::Window &)
ArdourButton bypass_button
void preset_selected(ARDOUR::Plugin::PresetRecord preset)
Gtk::EventBox focus_button
virtual bool on_window_show(const std::string &)
bool on_window_show(const std::string &title)
virtual int get_preferred_height()
virtual void on_window_hide()
boost::shared_ptr< ARDOUR::VSTPlugin > _vst
ArdourButton reset_button
virtual int get_preferred_width()
virtual void preset_selected(ARDOUR::Plugin::PresetRecord preset)
VSTPluginUI(boost::shared_ptr< ARDOUR::PluginInsert >, boost::shared_ptr< ARDOUR::VSTPlugin >)