13
0

NO-OP: whitespace

This commit is contained in:
Robin Gareus 2020-12-29 23:54:07 +01:00
parent 3f60d12308
commit d741f01ad0
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 18 additions and 18 deletions

View File

@ -20,23 +20,23 @@
#ifndef __ardour_canvas_tracking_text_h__ #ifndef __ardour_canvas_tracking_text_h__
#define __ardour_canvas_tracking_text_h__ #define __ardour_canvas_tracking_text_h__
#include <string>
#include "canvas/text.h" #include "canvas/text.h"
#include <string>
namespace ArdourCanvas { namespace ArdourCanvas {
class LIBCANVAS_API TrackingText : public Text class LIBCANVAS_API TrackingText : public Text
{ {
public: public:
TrackingText (Canvas*); TrackingText (Canvas*);
TrackingText (Item*); TrackingText (Item*);
void show_and_track (bool track_x, bool track_y); void show_and_track (bool track_x, bool track_y);
void set_offset (Duple const &); void set_offset (Duple const&);
void set_x_offset (double); void set_x_offset (double);
void set_y_offset (double); void set_y_offset (double);
private: private:
bool track_x; bool track_x;
bool track_y; bool track_y;
Duple offset; Duple offset;
@ -45,6 +45,6 @@ class LIBCANVAS_API TrackingText : public Text
void init (); void init ();
}; };
} } // namespace ArdourCanvas
#endif /* __ardour_canvas_tracking_text_h__ */ #endif /* __ardour_canvas_tracking_text_h__ */

View File

@ -51,7 +51,7 @@ TrackingText::init ()
} }
void void
TrackingText::pointer_motion (Duple const & winpos) TrackingText::pointer_motion (Duple const& winpos)
{ {
if (!_visible) { if (!_visible) {
return; return;
@ -60,18 +60,18 @@ TrackingText::pointer_motion (Duple const & winpos)
Duple pos (_parent->window_to_item (winpos)); Duple pos (_parent->window_to_item (winpos));
if (!track_x) { if (!track_x) {
pos.x = position().x; pos.x = position ().x;
} }
if (!track_y) { if (!track_y) {
pos.y = position().y; pos.y = position ().y;
} }
pos = pos.translate (offset); pos = pos.translate (offset);
/* keep inside the window */ /* keep inside the window */
Rect r (0, 0, _canvas->width(), _canvas->height()); Rect r (0, 0, _canvas->width (), _canvas->height ());
/* border of 200 pixels on the right, and 50 on all other sides */ /* border of 200 pixels on the right, and 50 on all other sides */
@ -142,7 +142,7 @@ TrackingText::set_y_offset (double o)
} }
void void
TrackingText::set_offset (Duple const & d) TrackingText::set_offset (Duple const& d)
{ {
begin_change (); begin_change ();
offset = d; offset = d;