stuff-from-scratch/apps/notes_tk/canvas/CanvasView.h
2023-12-21 09:18:44 +00:00

29 lines
496 B
C++

#pragma once
#include "Widget.h"
#include "CanvasElements.h"
class CanvasController;
class CanvasDrawingArea;
class CanvasView : public Widget
{
public:
CanvasView();
~CanvasView();
static Ptr<CanvasView> Create();
private:
void onDrawCommandChanged(CanvasDrawCommand command);
void initialize();
Ptr<Widget> initializeCacheButtons();
Ptr<CanvasController> mController;
CanvasDrawingArea* mDrawingArea{nullptr};
};
using CanvasViewPtr = Ptr<CanvasView>;