Project Alice
Loading...
Searching...
No Matches
gui_element_types.cpp File Reference
#include <algorithm>
#include <cmath>
#include <stddef.h>
#include <stdint.h>
#include <unordered_map>
#include <variant>
#include <codecvt>
#include <locale>
#include "color.hpp"
#include "culture.hpp"
#include "cyto_any.hpp"
#include "dcon_generated.hpp"
#include "demographics.hpp"
#include "gui_element_base.hpp"
#include "gui_element_types.hpp"
#include "fonts.hpp"
#include "gui_graphics.hpp"
#include "nations.hpp"
#include "opengl_wrapper.hpp"
#include "text.hpp"
#include "sound.hpp"
#include "unit_tooltip.hpp"
#include "triggers.hpp"
#include "effects.hpp"
Include dependency graph for gui_element_types.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ui
 

Functions

message_result ui::greater_result (message_result a, message_result b)
 
ogl::color_modification ui::get_color_modification (bool is_under_mouse, bool is_disabled, bool is_interactable)
 
uint32_t ui::internal_get_interactable_disabled_color (float r, float g, float b)
 
uint32_t ui::internal_get_interactable_color (float r, float g, float b)
 
uint32_t ui::internal_get_disabled_color (float r, float g, float b)
 
void ui::render_text_chunk (sys::state &state, text::text_chunk t, float x, float baseline_y, uint16_t font_id, ogl::color3f text_color, ogl::color_modification cmod)
 
ogl::color3f ui::get_text_color (sys::state &state, text::text_color text_color)
 
void ui::make_size_from_graphics (sys::state &state, ui::element_data &dat)
 
std::unique_ptr< element_base > ui::make_element (sys::state &state, std::string_view name)
 
std::unique_ptr< element_base > ui::make_element_immediate (sys::state &state, dcon::gui_def_id id)
 
void ui::populate_shortcut_tooltip (sys::state &state, ui::element_base &elm, text::columnar_layout &contents) noexcept