1 // Aseprite
2 // Copyright (C) 2001-2018  David Capello
3 //
4 // This program is distributed under the terms of
5 // the End-User License Agreement for Aseprite.
6 
7 #ifndef APP_MODULES_GFX_H_INCLUDED
8 #define APP_MODULES_GFX_H_INCLUDED
9 #pragma once
10 
11 #include "app/color.h"
12 #include "doc/color_mode.h"
13 #include "gfx/color.h"
14 #include "gfx/rect.h"
15 #include "ui/base.h"
16 
17 namespace she {
18   class Surface;
19 }
20 
21 namespace ui {
22   class Graphics;
23 }
24 
25 namespace app {
26   using namespace doc;
27 
28   void draw_color(ui::Graphics* g,
29                   const gfx::Rect& rc,
30                   const app::Color& color,
31                   const doc::ColorMode colorMode);
32 
33   void draw_color_button(ui::Graphics* g,
34                          const gfx::Rect& rc,
35                          const app::Color& color,
36                          const doc::ColorMode colorMode,
37                          const bool hot,
38                          const bool drag);
39 
40   void draw_alpha_slider(ui::Graphics* g,
41                          const gfx::Rect& rc,
42                          const app::Color& color);
43 
44   void draw_alpha_slider(she::Surface* s,
45                          const gfx::Rect& rc,
46                          const app::Color& color);
47 
48 } // namespace app
49 
50 #endif
51