00001 /* $Id: window_builder_private.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */ 00002 /* 00003 Copyright (C) 2008 - 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 * This file contains all classes used privately in window_builder.cpp and 00019 * should only be included by window_builder.cpp. 00020 */ 00021 00022 #ifndef GUI_AUXILIARY_WINDOW_BUILDER_PRIVATE_HPP_INCLUDED 00023 #define GUI_AUXILIARY_WINDOW_BUILDER_PRIVATE_HPP_INCLUDED 00024 00025 #include "gui/auxiliary/window_builder.hpp" 00026 00027 #include "config.hpp" 00028 00029 namespace gui2 { 00030 00031 /** 00032 * A temporary helper class. 00033 * 00034 * @todo refactor with the grid builder. 00035 */ 00036 struct tbuilder_gridcell 00037 : public tbuilder_widget 00038 { 00039 explicit tbuilder_gridcell(const config& cfg); 00040 00041 /** The flags for the cell. */ 00042 unsigned flags; 00043 00044 /** The bordersize for the cell. */ 00045 unsigned border_size; 00046 00047 /** The widgets for the cell. */ 00048 tbuilder_widget_ptr widget; 00049 00050 /** We're a dummy the building is done on construction. */ 00051 twidget* build () const { return NULL; } 00052 }; 00053 00054 } // namespace gui2 00055 00056 #endif 00057
| Generated by doxygen 1.7.1 on Sat May 19 2012 01:02:03 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |