1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 16:47:45 +00:00

PaintBrush: Add support for opening files.

Obviously this only supports whatever PNG files that load_png() can decode
at the moment.
This commit is contained in:
Andreas Kling 2019-06-25 20:27:32 +02:00
parent 8adae51b35
commit b529b4a3e6
3 changed files with 24 additions and 0 deletions

View file

@ -23,6 +23,8 @@ public:
Color color_for(const GMouseEvent&);
void set_bitmap(const GraphicsBitmap&);
GraphicsBitmap& bitmap() { return *m_bitmap; }
const GraphicsBitmap& bitmap() const { return *m_bitmap; }