void Module::init ( void ) { /* we use pointers to these vector elements for port auto connection stuff and need to prevent reallocation from invalidating them. */ audio_input.reserve(16); audio_output.reserve(16); control_input.reserve(16); control_output.reserve(16); aux_audio_input.reserve(16); aux_audio_output.reserve(16); // _latency = 0; _is_default = false; _editor = 0; _chain = 0; _instances = 1; _bypass = 0; box( FL_UP_BOX ); labeltype( FL_NO_LABEL ); align( FL_ALIGN_CENTER | FL_ALIGN_INSIDE ); set_visible_focus(); selection_color( FL_YELLOW ); labelsize(12); color( fl_rgb_color( 122,190,200 ) ); tooltip(); }
void Controller_Module::take_focus ( void ) { bool v = visible_focus(); if ( ! v ) set_visible_focus(); Fl_Widget::take_focus(); if ( ! v ) clear_visible_focus(); }
void Module::init ( void ) { _is_default = false; _editor = 0; _chain = 0; _instances = 1; _bypass = 0; box( FL_UP_BOX ); labeltype( FL_NO_LABEL ); set_visible_focus(); selection_color( FL_RED ); }