diff options
author | Robin Gareus <robin@gareus.org> | 2015-10-14 22:26:22 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-10-14 22:46:07 +0200 |
commit | 5eefdf7536e2b5fc10b98669c52cdbee13e6215c (patch) | |
tree | 5a4c7231e87f244781004123a069af9552f50deb /gtk2_ardour/au_pluginui.h | |
parent | 8d46cc99fe2778c5658b659f4f1fe6ac828bb9e9 (diff) |
update AU GUI positioning and resizing.
Diffstat (limited to 'gtk2_ardour/au_pluginui.h')
-rw-r--r-- | gtk2_ardour/au_pluginui.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/gtk2_ardour/au_pluginui.h b/gtk2_ardour/au_pluginui.h index 9d1d399f6f..883e7e0d6c 100644 --- a/gtk2_ardour/au_pluginui.h +++ b/gtk2_ardour/au_pluginui.h @@ -71,8 +71,8 @@ class AUPluginUI : public PlugUIBase, public Gtk::VBox AUPluginUI (boost::shared_ptr<ARDOUR::PluginInsert>); ~AUPluginUI (); - gint get_preferred_height () { return prefheight; } - gint get_preferred_width () { return prefwidth; } + gint get_preferred_width () { return req_width; } + gint get_preferred_height () { return req_height; } bool start_updating(GdkEventAny*); bool stop_updating(GdkEventAny*); @@ -84,6 +84,12 @@ class AUPluginUI : public PlugUIBase, public Gtk::VBox 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&); + gboolean lower_box_expose (GdkEventExpose*); + void cocoa_view_resized (); void on_realize (); void grab_focus(); @@ -109,6 +115,15 @@ class AUPluginUI : public PlugUIBase, public Gtk::VBox static std::vector<std::string> automation_mode_strings; + bool mapped; + bool resizable; + int min_width; + int min_height; + int req_width; + int req_height; + int alo_width; + int alo_height; + /* Cocoa */ NSWindow* cocoa_window; @@ -134,6 +149,8 @@ class AUPluginUI : public PlugUIBase, public Gtk::VBox int parent_cocoa_window (); NSWindow* get_nswindow(); + void update_view_size (); + bool plugin_class_valid (Class pluginClass); }; |