Ardour  9.10-48-g0f45032f6d
cross_cursor.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2026 Paul Davis <paul@linuxaudiosystems.com>
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 #pragma once
20 
21 #include "canvas/types.h"
22 #include "canvas/line.h"
23 
24 #include "gtkmm2ext/colors.h"
25 
26 namespace ArdourCanvas {
27 class Canvas;
28 class Item;
29 class Line;
30 }
31 
33 {
34  public:
37 
38  void set_extents (double w, double h);
39 
42  void set_line_width (double);
44  void show ();
45  void hide ();
46 
47  private:
48  double _line_width;
49  double _width;
50  double _height;
55 };
double _width
Definition: cross_cursor.h:49
ArdourCanvas::Line * _vline1
Definition: cross_cursor.h:51
void set_position(ArdourCanvas::Duple const &)
double _line_width
Definition: cross_cursor.h:48
ArdourCanvas::Duple position() const
ArdourCanvas::Line * _vline2
Definition: cross_cursor.h:52
void set_outline_color(Gtkmm2ext::Color)
ArdourCanvas::Line * _hline2
Definition: cross_cursor.h:54
void set_extents(double w, double h)
double _height
Definition: cross_cursor.h:50
CrossCursor(ArdourCanvas::Item *)
ArdourCanvas::Line * _hline1
Definition: cross_cursor.h:53
void set_line_width(double)
uint32_t Color
Definition: colors.h:33