准备改adminive
This commit is contained in:
@@ -71,6 +71,12 @@ 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();
|
||||
}
|
||||
const Properties& render_properties(const Render_State_View& state) const noexcept {
|
||||
return state.get(static_cast<const Base&>(*this));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user