Project Alice
Loading...
Searching...
No Matches
gui_error_window.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
gui_common_elements.hpp
"
4
#include "
gui_element_types.hpp
"
5
#include <string_view>
6
7
namespace
ui
{
8
class
error_body_text
:
public
scrollable_text
{
9
void
populate_layout(
sys::state
&
state
,
text::endless_layout
& contents)
noexcept
;
10
public
:
11
std::string
msg
=
""
;
12
void
on_create
(
sys::state
&
state
)
noexcept
override
;
13
void
on_update
(
sys::state
&
state
)
noexcept
override
;
14
};
15
class
error_dialog_window
:
public
window_element_base
{
16
public
:
17
simple_text_element_base
*
title
=
nullptr
;
18
error_body_text
*
body
=
nullptr
;
19
std::unique_ptr<element_base>
make_child
(
sys::state
&
state
, std::string_view
name
, dcon::gui_def_id
id
)
noexcept
override
;
20
};
21
void
popup_error_window
(
sys::state
&
state
, std::string_view title, std::string_view body);
22
}
// namespace ui
ui::error_body_text
Definition:
gui_error_window.hpp:8
ui::error_body_text::msg
std::string msg
Definition:
gui_error_window.hpp:11
ui::error_body_text::on_create
void on_create(sys::state &state) noexcept override
Definition:
gui_error_window.cpp:10
ui::error_body_text::on_update
void on_update(sys::state &state) noexcept override
Definition:
gui_error_window.cpp:14
ui::error_dialog_window
Definition:
gui_error_window.hpp:15
ui::error_dialog_window::body
error_body_text * body
Definition:
gui_error_window.hpp:18
ui::error_dialog_window::title
simple_text_element_base * title
Definition:
gui_error_window.hpp:17
ui::error_dialog_window::make_child
std::unique_ptr< element_base > make_child(sys::state &state, std::string_view name, dcon::gui_def_id id) noexcept override
Definition:
gui_error_window.cpp:43
ui::scrollable_text
Definition:
gui_element_types.hpp:943
ui::simple_text_element_base
Definition:
gui_element_types.hpp:358
ui::window_element_base
Definition:
gui_element_types.hpp:443
gui_common_elements.hpp
gui_element_types.hpp
ui
Definition:
constants.hpp:582
ui::production_sort_order::name
@ name
ui::popup_error_window
void popup_error_window(sys::state &state, std::string_view title, std::string_view body)
Definition:
gui_error_window.cpp:62
sys::state
Definition:
system_state.hpp:472
text::endless_layout
Definition:
text.hpp:871
ui::state
Definition:
gui_graphics.hpp:403
src
gui
gui_error_window.hpp
Generated by
1.9.5