The Battle for Wesnoth
1.19.5+dev
gui
core
top_level_drawable.cpp
Go to the documentation of this file.
1
/*
2
Copyright (C) 2022 - 2024
3
Part of the Battle for Wesnoth Project https://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
#include "
gui/core/top_level_drawable.hpp
"
16
17
#include "
draw_manager.hpp
"
18
19
namespace
gui2
20
{
21
22
top_level_drawable::top_level_drawable
()
23
{
24
draw_manager::register_drawable
(
this
);
25
}
26
27
top_level_drawable::~top_level_drawable
()
28
{
29
draw_manager::deregister_drawable
(
this
);
30
}
31
32
top_level_drawable::top_level_drawable
(
const
top_level_drawable
&)
33
{
34
draw_manager::register_drawable
(
this
);
35
}
36
37
top_level_drawable
&
top_level_drawable::operator=
(
const
top_level_drawable
&)
38
{
39
draw_manager::register_drawable
(
this
);
40
return
*
this
;
41
}
42
43
top_level_drawable::top_level_drawable
(
top_level_drawable
&&)
44
{
45
draw_manager::register_drawable
(
this
);
46
}
47
48
top_level_drawable
&
top_level_drawable::operator=
(
top_level_drawable
&&)
49
{
50
draw_manager::register_drawable
(
this
);
51
return
*
this
;
52
}
53
54
}
// namespace gui2
gui2::top_level_drawable
A top-level drawable item (TLD), such as a window.
Definition:
top_level_drawable.hpp:52
gui2::top_level_drawable::top_level_drawable
top_level_drawable()
Definition:
top_level_drawable.cpp:22
gui2::top_level_drawable::operator=
top_level_drawable & operator=(const top_level_drawable &)
Definition:
top_level_drawable.cpp:37
gui2::top_level_drawable::~top_level_drawable
virtual ~top_level_drawable()
Definition:
top_level_drawable.cpp:27
draw_manager.hpp
draw_manager::register_drawable
void register_drawable(top_level_drawable *tld)
Register a top-level drawable.
Definition:
draw_manager.cpp:280
draw_manager::deregister_drawable
void deregister_drawable(top_level_drawable *tld)
Remove a top-level drawable from the drawing stack.
Definition:
draw_manager.cpp:291
gui2
Generic file dialog.
Definition:
draw_manager.hpp:21
top_level_drawable.hpp
Generated by
1.9.1