The Battle for Wesnoth
1.19.5+dev
gui
core
linked_group_definition.hpp
Go to the documentation of this file.
1
/*
2
Copyright (C) 2008 - 2024
3
by Mark de Wever <koraq@xs4all.nl>
4
Part of the Battle for Wesnoth Project https://www.wesnoth.org/
5
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY.
12
13
See the COPYING file for more details.
14
*/
15
16
#pragma once
17
18
#include "
config.hpp
"
19
#include <string>
20
#include <vector>
21
22
namespace
gui2
23
{
24
25
struct
linked_group_definition
26
{
27
linked_group_definition
() :
id
(),
fixed_width
(false),
fixed_height
(false)
28
{
29
}
30
31
linked_group_definition
(
const
linked_group_definition
& other)
32
:
id
(other.
id
)
33
,
fixed_width
(other.
fixed_width
)
34
,
fixed_height
(other.
fixed_height
)
35
{
36
}
37
38
std::string
id
;
39
bool
fixed_width
;
40
bool
fixed_height
;
41
};
42
43
std::vector<linked_group_definition>
parse_linked_group_definitions
(
const
config
& cfg);
44
45
}
config
A config object defines a single node in a WML file, with access to child nodes.
Definition:
config.hpp:172
config.hpp
Definitions for the interface to Wesnoth Markup Language (WML).
gui2
Generic file dialog.
Definition:
draw_manager.hpp:21
gui2::parse_linked_group_definitions
std::vector< linked_group_definition > parse_linked_group_definitions(const config &cfg)
Definition:
linked_group_definition.cpp:24
gui2::linked_group_definition
Definition:
linked_group_definition.hpp:26
gui2::linked_group_definition::linked_group_definition
linked_group_definition()
Definition:
linked_group_definition.hpp:27
gui2::linked_group_definition::fixed_width
bool fixed_width
Definition:
linked_group_definition.hpp:39
gui2::linked_group_definition::id
std::string id
Definition:
linked_group_definition.hpp:38
gui2::linked_group_definition::linked_group_definition
linked_group_definition(const linked_group_definition &other)
Definition:
linked_group_definition.hpp:31
gui2::linked_group_definition::fixed_height
bool fixed_height
Definition:
linked_group_definition.hpp:40
Generated by
1.9.1