- /* rectangle */
- set_source_rgb (cr, get_a_group_colour (g));
- double const rh = _highest_group_name + 2 * name_pad();
- if (_matrix->arrangement() == PortMatrix::TOP_TO_RIGHT) {
- cairo_rectangle (cr, x, 0, w, rh);
- } else {
- cairo_rectangle (cr, x, _height - rh, w, rh);
- }
- cairo_fill (cr);
-
- std::pair<std::string, double> const display = display_port_name (cr, (*i)->name, w);
-
- /* plot it */
- set_source_rgb (cr, text_colour());
- cairo_move_to (cr, x + (w - display.second) / 2, y);
- cairo_show_text (cr, display.first.c_str());
-
- x += w;
- ++g;