Started canvas component work, and moving to unique network pointers (build is broken)
This commit is contained in:
parent
d3d080620a
commit
5b5aef8369
33 changed files with 750 additions and 468 deletions
20
src/CanvasComponents/CanvasComponent.hpp
Normal file
20
src/CanvasComponents/CanvasComponent.hpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
#include <cstdint>
|
||||
#include <cereal/archives/portable_binary.hpp>
|
||||
#include <Helpers/VersionNumber.hpp>
|
||||
|
||||
class CanvasComponent {
|
||||
public:
|
||||
enum class CompType : uint8_t {
|
||||
BRUSHSTROKE = 0,
|
||||
RECTANGLE,
|
||||
ELLIPSE,
|
||||
TEXTBOX,
|
||||
IMAGE
|
||||
};
|
||||
protected:
|
||||
virtual void write_update() const;
|
||||
virtual void read_update();
|
||||
virtual void save_file(cereal::PortableBinaryOutputArchive& a) const;
|
||||
virtual void load_file(cereal::PortableBinaryInputArchive& a, VersionNumber version);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue