Add UI layout XML automation

This commit is contained in:
2026-06-01 00:21:23 +02:00
parent dfdb7a4468
commit 20b5dba41e
13 changed files with 245 additions and 9 deletions

17
src/ui_core/layout_xml.h Normal file
View File

@@ -0,0 +1,17 @@
#pragma once
#include "foundation/result.h"
#include <cstddef>
#include <string_view>
namespace pp::ui {
struct LayoutParseSummary {
std::size_t node_count = 0;
std::size_t length_attribute_count = 0;
};
[[nodiscard]] pp::foundation::Result<LayoutParseSummary> parse_layout_xml(std::string_view xml);
}