gui/auxiliary/window_builder/drawing.hpp

Go to the documentation of this file.
00001 /* $Id: drawing.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2010 - 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_AUXILIARY_WINDOW_BUILDER_DRAWING_HPP_INCLUDED
00017 #define GUI_AUXILIARY_WINDOW_BUILDER_DRAWING_HPP_INCLUDED
00018 
00019 #include "config.hpp"
00020 #include "gui/auxiliary/window_builder/control.hpp"
00021 
00022 namespace gui2 {
00023 
00024 namespace implementation {
00025 
00026 struct tbuilder_drawing
00027     : public tbuilder_control
00028 {
00029     explicit tbuilder_drawing(const config& cfg);
00030 
00031     twidget* build () const;
00032 
00033     /** The width of the widget. */
00034     tformula<unsigned> width;
00035 
00036     /** The height of the widget. */
00037     tformula<unsigned> height;
00038 
00039     /** Config containing what to draw on the widgets canvas. */
00040     config draw;
00041 };
00042 
00043 } // namespace implementation
00044 
00045 } // namespace gui2
00046 
00047 #endif
00048 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Wed May 23 2012 01:02:41 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs