diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-02-09 17:55:05 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-02-10 19:48:47 -0500 |
commit | 34779ee81ea52abfdb658b320726155c44178483 (patch) | |
tree | 427e3d686ef478ba498b3c5871b61580093d06d1 /libs/canvas/canvas | |
parent | 99054ea415c8a28227024bc27152fdf30379bdf9 (diff) |
add a sort-of hack to allow us to avoid drawing the first pixel of a waveview when necessary
Diffstat (limited to 'libs/canvas/canvas')
-rw-r--r-- | libs/canvas/canvas/wave_view.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libs/canvas/canvas/wave_view.h b/libs/canvas/canvas/wave_view.h index f26c3a5c10..4820a3696e 100644 --- a/libs/canvas/canvas/wave_view.h +++ b/libs/canvas/canvas/wave_view.h @@ -103,6 +103,15 @@ public: void set_channel (int); void set_region_start (ARDOUR::frameoffset_t); + /** Change the first position drawn by @param pixels. + * @param pixels must be positive. This is used by + * AudioRegionViews in Ardour to avoid drawing the + * first pixel of a waveform, and exists in case + * there are uses for WaveView where we do not + * want this behaviour. + */ + void set_start_shift (double pixels); + void set_fill_color (Color); void set_outline_color (Color); @@ -171,7 +180,8 @@ private: bool _gradient_depth_independent; double _amplitude_above_axis; float _region_amplitude; - + double _start_shift; + /** The `start' value to use for the region; we can't use the region's * value as the crossfade editor needs to alter it. */ |