Ardour  8.7-15-gadf511264b
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 {
81  NoIcon //< Last
82  };
83 
84  LIBWIDGETS_API bool render (cairo_t *cr,
85  const enum Icon icon,
86  const int width, const int height,
87  const Gtkmm2ext::ActiveState state,
88  const uint32_t fg_color);
89 
91  Gtk::Widget* w,
92  const enum Icon icon);
93 
95  Gtk::Widget* w,
96  const enum Icon icon,
97  std::string const&);
98 
99 }; } /* end namespace */
100 
101 #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