1// Aseprite
2// Copyright (C) 2001-2015 David Capello
3//
4// This program is distributed under the terms of
5// the End-User License Agreement for Aseprite.
6
7#ifndef APP_TOOLS_PICK_INK_H_INCLUDED
8#define APP_TOOLS_PICK_INK_H_INCLUDED
9#pragma once
10
11#include "app/tools/ink.h"
12
13namespace app {
14 namespace tools {
15
16 class PickInk : public Ink {
17 public:
18 enum Target { Fg, Bg };
19
20 public:
21 PickInk(Target target);
22 Ink* clone() override;
23
24 Target target() const { return m_target; }
25
26 bool isEyedropper() const override;
27 void prepareInk(ToolLoop* loop) override;
28 void inkHline(int x1, int y, int x2, ToolLoop* loop) override;
29
30 private:
31 Target m_target;
32 };
33
34 } // namespace tools
35} // namespace app
36
37#endif // APP_TOOLS_PICK_INK_H_INCLUDED
38