Back with clickable button.

This commit is contained in:
James Grogan 2022-11-16 17:00:55 +00:00
parent 3e53bd9e00
commit 70891ce7b4
20 changed files with 107 additions and 50 deletions

View file

@ -5,6 +5,7 @@
#include <memory>
#include <vector>
#include <string>
class MouseEvent;
class KeyboardEvent;
@ -103,6 +104,13 @@ public:
void setVisible(bool visible);
void setName(const std::string& name)
{
mName = name;
}
bool needsUpdate() const;
protected:
virtual bool onMyKeyboardEvent(const KeyboardEvent* event);
@ -114,11 +122,6 @@ protected:
virtual void updateChildLocations();
void addMyLayers();
bool needsUpdate() const;
protected:
virtual bool isDirty() const;
DiscretePoint mLocation;
@ -139,6 +142,7 @@ protected:
bool mMaterialDirty{true};
bool mVisibilityDirty{true};
std::string mName;
std::vector<TransformNode*> mPendingChildNodes;
};