gui/widgets/window_private.hpp

Go to the documentation of this file.
00001 /* $Id: window_private.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 #ifndef GUI_WIDGETS_WINDOW_PRIVATE_HPP_INCLUDED
00017 #define GUI_WIDGETS_WINDOW_PRIVATE_HPP_INCLUDED
00018 
00019 /**
00020  * @file
00021  * Helper for header for the window.
00022  *
00023  * @note This file should only be included by window.cpp.
00024  *
00025  * This file is being used for a small experiment similar like
00026  * gui/widgets/grid_private.hpp.
00027  */
00028 
00029 #include "gui/widgets/window.hpp"
00030 
00031 namespace gui2 {
00032 
00033 /**
00034  * Helper to implement private functions without modifying the header.
00035  *
00036  * The class is a helper to avoid recompilation and only has static
00037  * functions.
00038  */
00039 struct twindow_implementation
00040 {
00041     /**
00042      * Layouts the window.
00043      *
00044      * This part handles the actual layouting of the window.
00045      *
00046      * @see layout_algorihm for more information.
00047      *
00048      * @param window              The window to operate upon.
00049      * @param maximum_width       The maximum width of the window.
00050      * @param maximum_height      The maximum height of the window.
00051      */
00052     static void layout(twindow& window,
00053             const unsigned maximum_width, const unsigned maximum_height);
00054 
00055 };
00056 
00057 } // namespace gui2
00058 
00059 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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