Ardour
9.0-pre0-427-gd2a3450e2f
tracking_text.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2014 Paul Davis <paul@linuxaudiosystems.com>
3
* Copyright (C) 2015 Robin Gareus <robin@gareus.org>
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License along
16
* with this program; if not, write to the Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
*/
19
20
#ifndef __ardour_canvas_tracking_text_h__
21
#define __ardour_canvas_tracking_text_h__
22
23
#include "
canvas/text.h
"
24
#include <string>
25
26
namespace
ArdourCanvas
{
27
28
class
LIBCANVAS_API
TrackingText
:
public
Text
29
{
30
public
:
31
TrackingText
(
Canvas
*);
32
TrackingText
(
Item
*);
33
34
void
show_and_track
(
bool
track_x,
bool
track_y);
35
void
set_offset
(
Duple
const
&);
36
void
set_x_offset
(
double
);
37
void
set_y_offset
(
double
);
38
39
private
:
40
bool
track_x
;
41
bool
track_y
;
42
Duple
offset
;
43
44
void
pointer_motion
(
Duple
const
&);
45
void
init
();
46
};
47
48
}
// namespace ArdourCanvas
49
50
#endif
/* __ardour_canvas_tracking_text_h__ */
LIBCANVAS_API
#define LIBCANVAS_API
Definition:
canvas/canvas/visibility.h:39
ArdourCanvas::Canvas
Definition:
canvas/canvas/canvas.h:73
ArdourCanvas::Item
Definition:
canvas/canvas/item.h:57
ArdourCanvas::Text
Definition:
text.h:35
ArdourCanvas::TrackingText
Definition:
tracking_text.h:29
ArdourCanvas::TrackingText::set_y_offset
void set_y_offset(double)
ArdourCanvas::TrackingText::set_offset
void set_offset(Duple const &)
ArdourCanvas::TrackingText::show_and_track
void show_and_track(bool track_x, bool track_y)
ArdourCanvas::TrackingText::offset
Duple offset
Definition:
tracking_text.h:42
ArdourCanvas::TrackingText::init
void init()
ArdourCanvas::TrackingText::track_y
bool track_y
Definition:
tracking_text.h:41
ArdourCanvas::TrackingText::track_x
bool track_x
Definition:
tracking_text.h:40
ArdourCanvas::TrackingText::set_x_offset
void set_x_offset(double)
ArdourCanvas::TrackingText::TrackingText
TrackingText(Canvas *)
ArdourCanvas::TrackingText::pointer_motion
void pointer_motion(Duple const &)
ArdourCanvas::TrackingText::TrackingText
TrackingText(Item *)
ArdourCanvas
Definition:
audio_clip_editor.h:56
ArdourCanvas::Duple
Definition:
canvas/canvas/types.h:65
text.h
libs
canvas
canvas
tracking_text.h
Generated on Mon Nov 11 2024 08:49:08 for Ardour by
1.9.1