8#include "unordered_dense.h"
68inline void bytes_to_windows(
char const* bytes,
size_t size, std::string
const& project_name, ankerl::unordered_dense::map<std::string, sys::aui_pending_bytes>&
map) {
75 auto window_size = window_section.view_size() - window_offset;
77 auto essential_window_section = window_section.read_section();
80 essential_window_section.read(name);
105 return r == o.r &&
g == o.g &&
b == o.b &&
a == o.a;
108 return !(*
this == o);
157 auto essential_window_section = window_section.
read_section();
159 essential_window_section.
read<std::string_view>();
160 essential_window_section.read(result.x_pos);
161 essential_window_section.read(result.y_pos);
162 essential_window_section.read(result.x_size);
163 essential_window_section.read(result.y_size);
164 essential_window_section.read(result.orientation);
165 while(essential_window_section) {
166 auto ptype = essential_window_section.read<
aui_property>();
168 essential_window_section.read(result.border_size);
170 result.texture = essential_window_section.read<std::string_view>();
172 result.alt_texture = essential_window_section.read<std::string_view>();
180 while(window_section) {
183 auto essential_child_section = window_section.
read_section();
184 auto optional_child_section = window_section.
read_section();
195 auto essential_child_section = window_section.
read_section();
197 result.name = essential_child_section.read<std::string_view>();
198 essential_child_section.read(result.x_pos);
199 essential_child_section.read(result.y_pos);
200 essential_child_section.read(result.x_size);
201 essential_child_section.read(result.y_size);
203 while(essential_child_section) {
204 auto ptype = essential_child_section.read<
aui_property>();
206 essential_child_section.read(result.text_color);
208 essential_child_section.read(result.text_alignment);
210 result.tooltip_text_key = essential_child_section.read<std::string_view>();
212 result.text_key = essential_child_section.read<std::string_view>();
214 essential_child_section.read(result.text_type);
216 essential_child_section.read(result.text_scale);
218 essential_child_section.read(result.border_size);
220 result.texture = essential_child_section.read<std::string_view>();
222 result.alt_texture = essential_child_section.read<std::string_view>();
224 essential_child_section.read(result.table_highlight_color);
226 essential_child_section.read(result.table_highlight_color);
228 result.ascending_sort_icon =essential_child_section.read<std::string_view>();
230 result.descending_sort_icon = essential_child_section.read<std::string_view>();
232 result.row_background_a = essential_child_section.read<std::string_view>();
234 result.row_background_b = essential_child_section.read<std::string_view>();
236 essential_child_section.read(result.row_height);
238 essential_child_section.read(result.table_divider_color);
241 tc.
header_key = essential_child_section.read<std::string_view>();
243 tc.
header_texture = essential_child_section.read<std::string_view>();
245 essential_child_section.read(tc.
width);
249 result.table_columns.emplace_back(tc);
size_t view_read_position() const
void bytes_to_windows(char const *bytes, size_t size, std::string const &project_name, ankerl::unordered_dense::map< std::string, sys::aui_pending_bytes > &map)
aui_element_data read_child_bytes(char const *bytes, size_t size)
@ table_internal_column_data
@ table_has_per_section_headers
@ table_display_column_data
aui_window_data read_window_bytes(char const *bytes, size_t size, std::vector< sys::aui_pending_bytes > &children_out)
std::vector< table_display_column > table_columns
std::string_view descending_sort_icon
text::alignment text_alignment
std::string_view row_background_b
ogl::color4f table_highlight_color
std::string_view row_background_a
text::text_color text_color
ogl::color3f table_divider_color
std::string_view ascending_sort_icon
std::string_view alt_texture
std::string_view tooltip_text_key
std::string_view text_key
ui::orientation orientation
std::string_view alt_texture
bool operator==(color4f const &o) const noexcept
color4f operator*(float v) const noexcept
bool operator!=(color4f const &o) const noexcept
std::string_view header_texture
text::text_color header_text_color
std::string_view header_tooltip_key
std::string_view header_key
std::string_view cell_tooltip_key
text::text_color cell_text_color
text::alignment text_alignment