The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
instance.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2012 - 2016 by Mark de Wever <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #ifndef GUI_AUXILIARY_WINDOW_BUILDER_INSTANCE_HPP_INCLUDED
16 #define GUI_AUXILIARY_WINDOW_BUILDER_INSTANCE_HPP_INCLUDED
17 
19 
20 #include "config.hpp"
21 
22 namespace gui2
23 {
24 
25 namespace implementation
26 {
27 
29 {
30  explicit tbuilder_instance(const config& cfg);
31 
32  twidget* build() const;
33 
34  twidget* build(const treplacements& replacements) const;
35 
36  /**
37  * Holds a copy of the cfg parameter in the constructor.
38  *
39  * This is used when instantiating a spacer, it can still use the
40  * parameters originally sent.
41  */
43 };
44 
45 } // namespace implementation
46 
47 } // namespace gui2
48 
49 #endif
Contains the info needed to instantiate a widget.
config configuration
Holds a copy of the cfg parameter in the constructor.
Definition: instance.hpp:42
Definitions for the interface to Wesnoth Markup Language (WML).
A class inherited from ttext_box that displays its input as stars.
Definition: field-fwd.hpp:23
Base class for all widgets.
Definition: widget.hpp:49
std::map< std::string, boost::intrusive_ptr< tbuilder_widget > > treplacements
The replacements type is used to define replacement types.
A config object defines a single node in a WML file, with access to child nodes.
Definition: config.hpp:83
Contains the implementation details for lexical_cast and shouldn't be used directly.