Ardour  9.0-pre0-582-g084a23a80d
flag.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013-2014 Paul Davis <paul@linuxaudiosystems.com>
3  * Copyright (C) 2014-2015 David Robillard <d@drobilla.net>
4  * Copyright (C) 2015-2017 Robin Gareus <robin@gareus.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
21 #ifndef __CANVAS_FLAG_H__
22 #define __CANVAS_FLAG_H__
23 
24 #include <pangomm/fontdescription.h>
25 
26 #include "canvas/visibility.h"
27 #include "canvas/types.h"
28 #include "canvas/container.h"
29 
30 namespace ArdourCanvas {
31 
32 class Text;
33 class Line;
34 class Rectangle;
35 
37 {
38 public:
41 
42  void set_text (std::string const &);
44 
45  void set_font_description (Pango::FontDescription);
46 
47  bool covers (Duple const &) const;
48 
49  double width() const;
50 
51 private:
53 
59  bool _invert;
60 };
61 
62 }
63 
64 #endif // __CANVAS_FLAG_H__
#define LIBCANVAS_API
void set_text(std::string const &)
Flag(Canvas *, Distance, Gtkmm2ext::Color, Gtkmm2ext::Color, Duple, bool invert=false)
double width() const
Gtkmm2ext::Color _fill_color
Definition: flag.h:55
bool _invert
Definition: flag.h:59
void setup(Distance height, Duple position)
Flag(Item *, Distance, Gtkmm2ext::Color, Gtkmm2ext::Color, Duple, bool invert=false)
void set_font_description(Pango::FontDescription)
bool covers(Duple const &) const
Rectangle * _rectangle
Definition: flag.h:58
Line * _line
Definition: flag.h:57
Gtkmm2ext::Color _outline_color
Definition: flag.h:54
void set_height(Distance)
Text * _text
Definition: flag.h:56
uint32_t Color
Definition: colors.h:33
gint height
Definition: xcursors.h:1