Lumiera  0.pre.03
»edit your freedom«
stave-bracket-widget.hpp File Reference

Go to the source code of this file.

Description

Widget to group tracks visually in the Timeline presentation.

The TrackHeadWidget is structured according to the nested structure of tracks in the Fork, using nested widgets to represent sub-tracks; in the grid's first column a graphical structure is rendered to indicate the nesting and connectivity of tracks. While based on few rather simple visual primitives, this structure need to adapt to the actual space allocation and positioning of sub-tracks in the layout; technicalities of actual drawing this structure is abstracted into this custom widget — allowing the track head to indicate the necessary layout constraints generic and recursively. The relation to nested stave brackets for sub-Tracks can be indicated with a connection joint and arrow; prerequisite is to provide the vertical offset.

styling
  • styling is controlled via CSS, using the marker class CLASS_fork_bracket
  • the »base width« of the vertical double line is based on the font's em setting
  • padding and colour attributes from CSS are observed
See also
TrackHeadWidget::structure_

Definition in file stave-bracket-widget.hpp.

#include "stage/gtk-base.hpp"
#include <vector>

Classes

class  StaveBracketWidget
 Helper widget to handle display of the structure of track nesting in the timeline header pane. More...
 

Namespaces

 stage
 Lumiera GTK UI implementation root.
 
 stage::timeline
 The timeline display and editing operations.