This commit is contained in:
2026-08-12 01:44:13 +08:00
parent 75795e43bf
commit 2fff357dff
17 changed files with 717 additions and 505 deletions
+3 -5
View File
@@ -71,11 +71,9 @@ protected:
Properties properties() const {
return Base::read([](const Properties& value) { return value; });
}
void replace_properties(Properties value) {
Base::update([&value](Properties& current) {
current = std::move(value);
});
this->changed();
template <auto Member>
auto property_value() const {
return Base::read([](const Properties& value) { return value.*Member; });
}
const Properties& render_properties(const Render_State_View& state) const noexcept {
return state.get(static_cast<const Base&>(*this));