The Battle for Wesnoth  1.19.5+dev
layout_exception.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 - 2024
3  by Mark de Wever <koraq@xs4all.nl>
4  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY.
12 
13  See the COPYING file for more details.
14 */
15 
16 /**
17  * @file
18  * Defines the exception classes for the layout algorithm.
19  */
20 
21 #pragma once
22 
23 #include <exception>
24 
25 namespace gui2
26 {
27 
28 /**
29  * Exception thrown when the width has been modified during resizing.
30  *
31  * See layout_algorithm for more information.
32  */
33 struct layout_exception_width_modified : public std::exception
34 {
35 };
36 
37 /** Basic exception when the layout doesn't fit. */
38 struct layout_exception_resize_failed : public std::exception
39 {
40 };
41 
42 /**
43  * Exception thrown when the width resizing has failed.
44  *
45  * See layout_algorithm for more information.
46  */
49 {
50 };
51 
52 /**
53  * Exception thrown when the height resizing has failed.
54  *
55  * See layout_algorithm for more information.
56  */
59 {
60 };
61 
62 } // namespace gui2
Generic file dialog.
Exception thrown when the height resizing has failed.
Basic exception when the layout doesn't fit.
Exception thrown when the width has been modified during resizing.
Exception thrown when the width resizing has failed.