Add UI layout XML automation
This commit is contained in:
17
src/ui_core/layout_xml.h
Normal file
17
src/ui_core/layout_xml.h
Normal 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);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user