The Battle for Wesnoth
1.19.7+dev
gui
core
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
*/
47
struct
layout_exception_width_resize_failed
48
:
public
layout_exception_resize_failed
49
{
50
};
51
52
/**
53
* Exception thrown when the height resizing has failed.
54
*
55
* See layout_algorithm for more information.
56
*/
57
struct
layout_exception_height_resize_failed
58
:
public
layout_exception_resize_failed
59
{
60
};
61
62
}
// namespace gui2
gui2
Generic file dialog.
Definition:
draw_manager.hpp:21
gui2::layout_exception_height_resize_failed
Exception thrown when the height resizing has failed.
Definition:
layout_exception.hpp:59
gui2::layout_exception_resize_failed
Basic exception when the layout doesn't fit.
Definition:
layout_exception.hpp:39
gui2::layout_exception_width_modified
Exception thrown when the width has been modified during resizing.
Definition:
layout_exception.hpp:34
gui2::layout_exception_width_resize_failed
Exception thrown when the width resizing has failed.
Definition:
layout_exception.hpp:49
Generated by
1.9.1