Cleaning for mesh addition.

This commit is contained in:
James Grogan 2022-11-13 17:02:09 +00:00
parent 8e0ce22b57
commit 402f381d10
67 changed files with 655 additions and 456 deletions

View file

@ -1,6 +1,7 @@
#pragma once
#include "DiscretePoint.h"
#include "Color.h"
#include <memory>
#include <vector>
@ -10,7 +11,6 @@ class KeyboardEvent;
class PaintEvent;
class VisualLayer;
class Color;
class Widget
{
@ -73,7 +73,7 @@ public:
std::vector<VisualLayer*> getLayers() const;
DiscretePoint getLocation() const;
const DiscretePoint& getLocation() const;
virtual void onPaintEvent(const PaintEvent* event);
@ -83,7 +83,7 @@ public:
bool contains(const DiscretePoint& loc) const;
void setBackgroundColor(std::unique_ptr<Color> color);
void setBackgroundColor(const Color& color);
void setBounds(unsigned width, unsigned height);
@ -123,8 +123,8 @@ protected:
std::vector<VisualLayer*> mLayers;
std::vector<std::unique_ptr<Widget> > mChildren;
unsigned mBorderThickness{0};
std::unique_ptr<Color> mBackgroundColor;
std::unique_ptr<Color> mBorderColor;
Color mBackgroundColor;
Color mBorderColor;
bool mVisible{false};
bool mDirty{true};
};