1// Aseprite Document Library
2// Copyright (c) 2018 David Capello
3//
4// This file is released under the terms of the MIT license.
5// Read LICENSE.txt for more information.
6
7#ifndef DOC_ALGORITHM_MODIFY_SELECTION_H_INCLUDED
8#define DOC_ALGORITHM_MODIFY_SELECTION_H_INCLUDED
9#pragma once
10
11#include "doc/brush_type.h"
12#include "doc/color.h"
13#include "gfx/point.h"
14
15namespace doc {
16 class Mask;
17 namespace algorithm {
18
19 enum class SelectionModifier {
20 Border,
21 Expand,
22 Contract,
23 };
24
25 void modify_selection(const SelectionModifier modifier,
26 const Mask* srcMask,
27 Mask* dstMask,
28 const int radius,
29 const BrushType brush);
30
31 } // namespace algorithm
32} // namespace doc
33
34#endif
35