Ardour  9.0-pre0-582-g084a23a80d
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 <gtkmm/widget.h>
25 
26 #include "gtkmm2ext/widget_state.h"
27 #include "widgets/visibility.h"
28 
29 namespace ArdourWidgets { namespace ArdourIcon {
30  enum Icon {
85  NoIcon //< Last
86  };
87 
88  LIBWIDGETS_API bool render (cairo_t *cr,
89  const enum Icon icon,
90  const int width, const int height,
91  const Gtkmm2ext::ActiveState state,
92  const uint32_t fg_color);
93 
95  Gtk::Widget* w,
96  const enum Icon icon);
97 
99  Gtk::Widget* w,
100  const enum Icon icon,
101  std::string const&);
102 
103 }; } /* end namespace */
104 
105 #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
gint height
Definition: xcursors.h:1
gint width
Definition: xcursors.h:1