Ardour
9.0-pre0-582-g084a23a80d
region_peak_cursor.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 Robin Gareus <robin@gareus.org>
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License along
15
* with this program; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
*/
18
19
#ifndef _gtk_ardour_region_peak_cursor_h_
20
#define _gtk_ardour_region_peak_cursor_h_
21
22
#include "
ardour/types.h
"
23
#include "
canvas/canvas.h
"
24
25
namespace
ArdourCanvas
26
{
27
class
Text;
28
class
Arrow;
29
}
30
31
class
AudioRegionView
;
32
33
class
RegionPeakCursor
34
{
35
public
:
36
RegionPeakCursor
(
ArdourCanvas::Item
*);
37
~RegionPeakCursor
();
38
39
void
set
(
AudioRegionView
*,
samplepos_t
,
ARDOUR::samplecnt_t
);
40
void
hide
();
41
bool
visible
()
const
;
42
43
private
:
44
void
color_handler
();
45
void
show
();
46
47
ArdourCanvas::Text
*
_canvas_text
;
48
ArdourCanvas::Arrow
*
_canvas_line
;
49
};
50
51
#endif
types.h
canvas.h
Declaration of the main canvas classes.
ArdourCanvas::Arrow
Definition:
canvas/canvas/arrow.h:49
ArdourCanvas::Item
Definition:
canvas/canvas/item.h:57
ArdourCanvas::Text
Definition:
text.h:35
AudioRegionView
Definition:
audio_region_view.h:59
RegionPeakCursor
Definition:
region_peak_cursor.h:34
RegionPeakCursor::~RegionPeakCursor
~RegionPeakCursor()
RegionPeakCursor::hide
void hide()
RegionPeakCursor::_canvas_line
ArdourCanvas::Arrow * _canvas_line
Definition:
region_peak_cursor.h:48
RegionPeakCursor::show
void show()
RegionPeakCursor::RegionPeakCursor
RegionPeakCursor(ArdourCanvas::Item *)
RegionPeakCursor::color_handler
void color_handler()
RegionPeakCursor::visible
bool visible() const
RegionPeakCursor::_canvas_text
ArdourCanvas::Text * _canvas_text
Definition:
region_peak_cursor.h:47
RegionPeakCursor::set
void set(AudioRegionView *, samplepos_t, ARDOUR::samplecnt_t)
ARDOUR::samplecnt_t
Temporal::samplecnt_t samplecnt_t
Definition:
ardour/ardour/types.h:89
ARDOUR::samplepos_t
Temporal::samplepos_t samplepos_t
Definition:
ardour/ardour/types.h:90
ArdourCanvas
Definition:
audio_clip_editor.h:56
gtk2_ardour
region_peak_cursor.h
Generated on Wed Dec 25 2024 05:44:45 for Ardour by
1.9.1