mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
9963da9005
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.
19 lines
398 B
C++
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;
|
|
};
|