mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-15 16:48:24 +03:00
21 lines
415 B
C++
21 lines
415 B
C++
#pragma once
|
|
|
|
#include "Color.h"
|
|
#include "Point.h"
|
|
#include "Rect.h"
|
|
#include <AK/String.h>
|
|
|
|
class Widget;
|
|
|
|
class Painter {
|
|
public:
|
|
enum class TextAlignment { TopLeft, Center };
|
|
explicit Painter(Widget&);
|
|
~Painter();
|
|
void fillRect(const Rect&, Color);
|
|
void drawText(const Rect&, const String&, TextAlignment = TextAlignment::TopLeft, const Color& = Color());
|
|
|
|
private:
|
|
Widget& m_widget;
|
|
};
|