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 { 31 RecButton, 32 ZoomIn, 33 ZoomOut, 34 ZoomFull, 35 TransportPanic, 36 TransportStop, 37 TransportPlay, 38 TransportLoop, 39 TransportRange, 40 TransportStart, 41 TransportEnd, 42 TransportMetronom, 43 ToolGrab, 44 ToolRange, 45 ToolCut, 46 ToolStretch, 47 ToolAudition, 48 ToolDraw, 49 ToolContent, 50 ZoomExpand, 51 TimeAxisShrink, 52 TimeAxisExpand, 53 StripWidth, 54 CloseCross, 55 HideEye, 56 PlusSign, 57 ScrollLeft, 58 ScrollRight, 59 NudgeLeft, 60 NudgeRight, 61 DinMidi, 62 PsetAdd, 63 PsetSave, 64 PsetDelete, 65 PsetBrowse, 66 PluginReset, 67 PluginBypass, 68 PluginPinout, 69 LatencyClock, 70 Config, 71 ConfigReset, 72 PowerOnOff, 73 ShadedPlusSign, 74 NoIcon //< Last 75 }; 76 77 LIBWIDGETS_API bool render (cairo_t *cr, 78 const enum Icon icon, 79 const int width, const int height, 80 const Gtkmm2ext::ActiveState state, 81 const uint32_t fg_color); 82 83 LIBWIDGETS_API bool expose (GdkEventExpose* ev, 84 Gtk::Widget* w, 85 const enum Icon icon); 86 87 }; } /* end namespace */ 88 89 #endif 90