Some abstractions to make the display look good in the plugin gui

This commit is contained in:
Johannes Mueller 2017-07-21 00:37:07 +02:00 committed by Robin Gareus
parent a61ae46c82
commit 4a60c277db
4 changed files with 23 additions and 3 deletions

View file

@ -1646,6 +1646,12 @@ ProcessorEntry::PluginInlineDisplay::update_height_alloc (uint32_t inline_height
_scroll = sc;
}
void
ProcessorEntry::PluginInlineDisplay::display_frame (cairo_t* cr, double w, double h)
{
Gtkmm2ext::rounded_rectangle (cr, .5, -1.5, w - 1, h + 1, 7);
}
ProcessorEntry::LuaPluginDisplay::LuaPluginDisplay (ProcessorEntry& e, boost::shared_ptr<ARDOUR::LuaProc> p, uint32_t max_height)
: PluginInlineDisplay (e, p, max_height)
, _luaproc (p)