gui/auxiliary/layout_exception.hpp

Go to the documentation of this file.
00001 /* $Id: layout_exception.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2009 - 2012 by Mark de Wever <koraq@xs4all.nl>
00004    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY.
00012 
00013    See the COPYING file for more details.
00014 */
00015 
00016 /**
00017  * @file
00018  * Defines the exception classes for the layout algorithm.
00019  */
00020 
00021 #ifndef GUI_AUXILIRY_LAYOUT_EXCEPTION_HPP_INCLUDED
00022 #define GUI_AUXILIRY_LAYOUT_EXCEPTION_HPP_INCLUDED
00023 
00024 namespace gui2 {
00025 
00026 /**
00027  * Exception thrown when the width has been modified during resizing.
00028  *
00029  * @see layout_algorihm for more information.
00030  */
00031 struct tlayout_exception_width_modified {};
00032 
00033 /** Basic exception when the layout doesn't fit. */
00034 struct tlayout_exception_resize_failed {};
00035 
00036 /**
00037  * Exception thrown when the width resizing has failed.
00038  *
00039  * @see layout_algorihm for more information.
00040  */
00041 struct tlayout_exception_width_resize_failed
00042     : public tlayout_exception_resize_failed
00043 {
00044 };
00045 
00046 /**
00047  * Exception thrown when the height resizing has failed.
00048  *
00049  * @see layout_algorihm for more information.
00050  */
00051 struct tlayout_exception_height_resize_failed
00052     : public tlayout_exception_resize_failed
00053 {
00054 };
00055 
00056 } // namespace gui2
00057 
00058 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:02:54 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs