diff options
author | Robin Gareus <robin@gareus.org> | 2016-11-15 17:20:34 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-11-15 18:17:47 +0100 |
commit | ac6f44d92b7cd431e02ee407e1edfa1216396607 (patch) | |
tree | 545d3685d5650fb7bdb2095538f9c68bd2fdc661 /gtk2_ardour/mac_vst_plugin_ui.h | |
parent | a15a3162360f67ba7a40175117c0fe99bc93f2a8 (diff) |
MacVST UI resizing
Diffstat (limited to 'gtk2_ardour/mac_vst_plugin_ui.h')
-rw-r--r-- | gtk2_ardour/mac_vst_plugin_ui.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/gtk2_ardour/mac_vst_plugin_ui.h b/gtk2_ardour/mac_vst_plugin_ui.h index 2082fa8578..535a0c2212 100644 --- a/gtk2_ardour/mac_vst_plugin_ui.h +++ b/gtk2_ardour/mac_vst_plugin_ui.h @@ -34,6 +34,14 @@ #include "vst_plugin_ui.h" +class MacVSTPluginUI; + +@interface ResizeNotificationObject : NSObject { + @private + MacVSTPluginUI* plugin_ui; +} +@end + class MacVSTPluginUI : public VSTPluginUI { public: @@ -46,11 +54,19 @@ public: int package (Gtk::Window &); void forward_key_event (GdkEventKey *); + void view_resized (); + +protected: + void lower_box_realized (); + bool lower_box_visibility_notify (GdkEventVisibility*); + void lower_box_map (); + void lower_box_unmap (); + void lower_box_size_request (GtkRequisition*); + void lower_box_size_allocate (Gtk::Allocation&); private: int get_XID (); bool idle (); - void lower_box_realized (); void set_program (); NSWindow* get_nswindow(); @@ -58,4 +74,5 @@ private: NSView* _ns_view; sigc::connection _idle_connection; PBD::ScopedConnection _program_connection; + ResizeNotificationObject* _resize_notifier; }; |