summaryrefslogtreecommitdiff
path: root/gtk2_ardour/grid_lines.h
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2018-02-09 11:21:40 -0600
committerBen Loftis <ben@harrisonconsoles.com>2018-02-09 11:23:24 -0600
commit913445c9815646c7b9e9909d109722cf9b8c88a6 (patch)
tree55ae0434eebabbb399520487ca461c75bc2cb500 /gtk2_ardour/grid_lines.h
parentdc61256466cb02daa4c6de0dbaebf4b9ed1325d6 (diff)
new_grid: Add grid_lines.cc
Diffstat (limited to 'gtk2_ardour/grid_lines.h')
-rw-r--r--gtk2_ardour/grid_lines.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/gtk2_ardour/grid_lines.h b/gtk2_ardour/grid_lines.h
new file mode 100644
index 0000000000..d3d3fe50a1
--- /dev/null
+++ b/gtk2_ardour/grid_lines.h
@@ -0,0 +1,41 @@
+/*
+ Copyright (C) 2000-2018 Paul Davis
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#ifndef __ardour_grid_lines_h__
+#define __ardour_grid_lines_h__
+
+#include "canvas/line_set.h"
+#include "canvas/ruler.h"
+#include "ardour/tempo.h"
+
+class GridLines {
+public:
+ GridLines (ArdourCanvas::Container* group, double screen_height);
+ ~GridLines ();
+
+ void draw (std::vector<ArdourCanvas::Ruler::Mark> marks);
+
+ void show();
+ void hide();
+
+private:
+
+ ArdourCanvas::LineSet lines;
+};
+
+#endif /* __ardour_grid_lines_h__ */