![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "stage/timeline/stave-bracket-widget.hpp"
Helper widget to handle display of the structure of track nesting in the timeline header pane.
For each TrackHeadWidget, the connected cells in the first grid column are populated with this component, indicating connectivity and layout constraints. The actual drawing is based on Cairo, and implemented in the virtual draw() function.
Definition at line 58 of file stave-bracket-widget.hpp.
Public Member Functions | |
| ~StaveBracketWidget () | |
| StaveBracketWidget () | |
| void | clearConnectors () |
| void | addConnector (uint offset) |
| Request to draw a connector to the nested sub-Track's stave bracket. | |
Private Types | |
| using | _Base = Gtk::DrawingArea |
Private Member Functions | |
| bool | on_draw (CairoC cox) override |
| Custom drawing: a »stave bracket« to indicate track scope. | |
| Gtk::SizeRequestMode | get_request_mode_vfunc () const final |
| indicate layout oriented towards vertical extension | |
| void | get_preferred_width_vfunc (int &, int &) const override |
| void | get_preferred_width_for_height_vfunc (int, int &, int &) const override |
| The structural outline adapts flexible in vertical direction, but requires a proportional horizontal size for proper drawing. | |
Private Attributes | |
| std::vector< uint > | connectors_ |
| ~StaveBracketWidget | ( | ) |
Definition at line 332 of file stave-bracket-widget.cpp.
Definition at line 334 of file stave-bracket-widget.cpp.
References stage::CLASS_fork_bracket.
|
private |
Definition at line 61 of file stave-bracket-widget.hpp.
|
inline |
Definition at line 83 of file stave-bracket-widget.hpp.
References StaveBracketWidget::connectors_.
Referenced by TrackHeadWidget::linkSubTrackPositions().
Here is the caller graph for this function:
|
inline |
Request to draw a connector to the nested sub-Track's stave bracket.
| offset | vertical location where the sub-Track starts, relative to the start of this stave bracket's start |
Definition at line 96 of file stave-bracket-widget.hpp.
References StaveBracketWidget::connectors_.
Referenced by TrackHeadWidget::linkSubTrackPositions().
Here is the caller graph for this function:
|
overrideprivate |
Custom drawing: a »stave bracket« to indicate track scope.
The layout is controlled by settings in the CSS style context
Definition at line 354 of file stave-bracket-widget.cpp.
References StaveBracketWidget::connectors_.
|
finalprivate |
indicate layout oriented towards vertical extension
Definition at line 379 of file stave-bracket-widget.cpp.
|
overrideprivate |
Definition at line 397 of file stave-bracket-widget.cpp.
|
overrideprivate |
The structural outline adapts flexible in vertical direction, but requires a proportional horizontal size for proper drawing.
The horizontal requisition is based on the font in CSS style context.
Definition at line 390 of file stave-bracket-widget.cpp.
|
private |
Definition at line 62 of file stave-bracket-widget.hpp.
Referenced by StaveBracketWidget::addConnector(), StaveBracketWidget::clearConnectors(), and StaveBracketWidget::on_draw().
Inheritance diagram for StaveBracketWidget:
Collaboration diagram for StaveBracketWidget: