Safeguard against possibly invalid peak-requests
[ardour.git] / libs / widgets / widgets / ardour_icon.h
1 #ifndef _WIDGETS_ARDOUR_ICON_H_
2 #define _WIDGETS_ARDOUR_ICON_H_
3
4 #include <stdint.h>
5 #include <cairo.h>
6
7 #include "gtkmm2ext/widget_state.h"
8 #include "widgets/visibility.h"
9
10 namespace ArdourWidgets { namespace ArdourIcon {
11         enum Icon {
12                 NoIcon,
13                 RecButton,
14                 RecTapeMode,
15                 CloseCross,
16                 StripWidth,
17                 DinMidi,
18                 TransportStop,
19                 TransportPlay,
20                 TransportLoop,
21                 TransportRange,
22                 TransportStart,
23                 TransportEnd,
24                 TransportPanic,
25                 TransportMetronom,
26                 NudgeLeft,
27                 NudgeRight,
28                 ZoomIn,
29                 ZoomOut,
30                 ZoomFull,
31                 ZoomExpand,
32                 TimeAxisShrink,
33                 TimeAxisExpand,
34                 ToolGrab,
35                 ToolRange,
36                 ToolCut,
37                 ToolStretch,
38                 ToolAudition,
39                 ToolDraw,
40                 ToolContent,
41         };
42
43         LIBWIDGETS_API bool render (cairo_t *cr,
44                                     const enum Icon icon,
45                                     const int width, const int height,
46                                     const Gtkmm2ext::ActiveState state,
47                                     const uint32_t fg_color);
48 }; } /* end namespace */
49
50 #endif