Definition at line 88 of file body-canvas-widget.hpp.
|
| TimelineCanvas (_Renderer groundingFun, _Renderer overlayFun) |
|
|
using | _Renderer = std::function< void(CairoC)> |
|
|
_Renderer | renderGrounding_ |
|
_Renderer | renderOverlay_ |
|
◆ on_draw()
bool on_draw |
( |
CairoC |
cox | ) |
|
|
overrideprivatevirtual |
Custom drawing of the timeline content area.
The inherited Gtk::Layout::on_draw(Context)
handles all drawing of child widgets placed onto the virtual canvas. Thus we need to fill in the structure of the tracks in the timeline background, and any non-standard overlay elements, including tags and markers, indicators, locators (edit point and playhead) and (semi-transparent) range selections.
- Todo:
- according to the documentation for
signal_draw()
, the framework passes the actually visible area as clipping region. In theory, this information could be used to reduce the load of canvas painting and repainting, which becomes crucial for responsiveness on large sessions ////////////////////////////////////TICKET #1191
Definition at line 653 of file body-canvas-widget.cpp.
◆ openCanvas()
void openCanvas |
( |
CairoC |
cox | ) |
|
|
private |
Prepare the drawing canvas to work within our virtual canvas coordinate system.
Definition at line 680 of file body-canvas-widget.cpp.
◆ closeCanvas()
void closeCanvas |
( |
CairoC |
cox | ) |
|
|
private |
Finish and close the virtual drawing canvas established by openCanvas().
Discard any coordinate offsets, stroke and drawing settings applied within.
Definition at line 697 of file body-canvas-widget.cpp.
◆ drawGrounding()
void drawGrounding |
( |
CairoC |
cox | ) |
|
|
private |
Establish and render the structure of (possibly nested) tracks and overview rulers.
- Parameters
-
cox | cairo drawing context for custom drawing, adjusted for our virtual canvas. |
Definition at line 708 of file body-canvas-widget.cpp.
◆ drawOverlays()
void drawOverlays |
( |
CairoC |
cox | ) |
|
|
private |
- Parameters
-
cox | cairo drawing context of the virtual canvas for custom drawing. |
Definition at line 719 of file body-canvas-widget.cpp.
The documentation for this class was generated from the following files: