Back with clickable button.
This commit is contained in:
parent
3e53bd9e00
commit
70891ce7b4
20 changed files with 107 additions and 50 deletions
|
@ -13,8 +13,9 @@ class FontsManager;
|
|||
class AbstractVisualNode
|
||||
{
|
||||
public:
|
||||
AbstractVisualNode(const DiscretePoint& location)
|
||||
: mLocation(location)
|
||||
AbstractVisualNode(const DiscretePoint& location, const std::string& name = {})
|
||||
: mLocation(location),
|
||||
mName(name)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -61,6 +62,16 @@ public:
|
|||
return mChildren.size();
|
||||
}
|
||||
|
||||
void setName(const std::string& name)
|
||||
{
|
||||
mName = name;
|
||||
}
|
||||
|
||||
const std::string& getName() const
|
||||
{
|
||||
return mName;
|
||||
}
|
||||
|
||||
protected:
|
||||
DiscretePoint mLocation;
|
||||
std::unique_ptr<SceneItem> mSceneItem;
|
||||
|
@ -70,4 +81,5 @@ protected:
|
|||
|
||||
bool mIsVisible{true};
|
||||
bool mTransformIsDirty{true};
|
||||
std::string mName;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue