add shortcuts, node text font attributes
This commit is contained in:
@@ -456,6 +456,11 @@ public:
|
||||
{
|
||||
return has(key) ? std::dynamic_pointer_cast<T>(props.at(key)) : nullptr;
|
||||
}
|
||||
void unset(const std::string& key)
|
||||
{
|
||||
if (has(key))
|
||||
props.erase(key);
|
||||
}
|
||||
template<typename T> std::shared_ptr<T> set(const std::string& key, const T value)
|
||||
{
|
||||
if (auto ptr = get<T>(key))
|
||||
|
||||
Reference in New Issue
Block a user