1 /*
2  * Copyright (C) 2014-2018 Christopho, Solarus - http://www.solarus-games.org
3  *
4  * Solarus Quest Editor 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 3 of the License, or
7  * (at your option) any later version.
8  *
9  * Solarus Quest Editor 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, see <http://www.gnu.org/licenses/>.
16  */
17 #ifndef SOLARUSEDITOR_RESIZE_MODE_H
18 #define SOLARUSEDITOR_RESIZE_MODE_H
19 
20 namespace SolarusEditor {
21 
22 /**
23  * @brief How an entity can be resized.
24  */
25 enum class ResizeMode {
26   NONE,                      /**< Cannot be resized. */
27   HORIZONTAL_ONLY,           /**< Can only be resized horizontally. */
28   VERTICAL_ONLY,             /**< Can only be resized vertically. */
29   SQUARE,                    /**< Can only stay square. */
30   SINGLE_DIMENSION,          /**< Can be resized horizontally or vertically
31                               * but not both. */
32   MULTI_DIMENSION_ONE,       /**< Can be resized horizontally, vertically
33                               * or both but not at the same time. */
34   MULTI_DIMENSION_ALL        /**< Can be resized horizontally, vertically
35                               * or both even at the same time. */
36 };
37 
38 }
39 
40 #endif
41