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 
29 {
30 public:
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;
43 
44  void pointer_motion (Duple const&);
45  void init ();
46 };
47 
48 } // namespace ArdourCanvas
49 
50 #endif /* __ardour_canvas_tracking_text_h__ */
#define LIBCANVAS_API
void set_offset(Duple const &)
void show_and_track(bool track_x, bool track_y)
void pointer_motion(Duple const &)