serenity/Widgets/RootWidget.h
Andreas Kling 9963da9005 Start refactoring graphics system to have per-window backing stores.
It was fun for everyone to share a single framebuffer but it was also
kinda really awful. Let's move towards having a "GraphicsBitmap" as the
backing store for each Window.

This is going to need a lot of refactoring so let's get started.
2019-01-09 02:06:04 +01:00

19 lines
398 B
C++

#pragma once
#include "Widget.h"
class GraphicsBitmap;
class RootWidget final : public Widget {
public:
RootWidget();
virtual ~RootWidget() override;
private:
virtual void paintEvent(PaintEvent&) override;
virtual void mouseMoveEvent(MouseEvent&) override;
virtual GraphicsBitmap* backing() override { return m_backing.ptr(); }
RetainPtr<GraphicsBitmap> m_backing;
};