Ardour  9.0-pre0-822-g12e3bc5c20
ardour_icon.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Robin Gareus <robin@gareus.org>
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 #ifndef _WIDGETS_ARDOUR_ICON_H_
20 #define _WIDGETS_ARDOUR_ICON_H_
21 
22 #include <stdint.h>
23 #include <cairo.h>
24 #include <ytkmm/widget.h>
25 
26 #include "gtkmm2ext/widget_state.h"
27 #include "widgets/visibility.h"
28 
29 namespace ArdourWidgets { namespace ArdourIcon {
30  enum Icon {
88  NoIcon //< Last
89  };
90 
91  LIBWIDGETS_API bool render (cairo_t *cr,
92  const enum Icon icon,
93  const int width, const int height,
94  const Gtkmm2ext::ActiveState state,
95  const uint32_t fg_color);
96 
97  LIBWIDGETS_API bool expose (GdkEventExpose* ev,
98  Gtk::Widget* w,
99  const enum Icon icon);
100 
101  LIBWIDGETS_API bool expose_with_text (GdkEventExpose* ev,
102  Gtk::Widget* w,
103  const enum Icon icon,
104  std::string const&);
105 
106 }; } /* end namespace */
107 
108 #endif
bool render(cairo_t *cr, const enum Icon icon, const int width, const int height, const Gtkmm2ext::ActiveState state, const uint32_t fg_color)
bool expose(GdkEventExpose *ev, Gtk::Widget *w, const enum Icon icon)
bool expose_with_text(GdkEventExpose *ev, Gtk::Widget *w, const enum Icon icon, std::string const &)
#define LIBWIDGETS_API