mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
2530378f59
This will be very useful when debugging line layout.
20 lines
484 B
C++
20 lines
484 B
C++
#pragma once
|
|
|
|
class GPainter;
|
|
|
|
class RenderingContext {
|
|
public:
|
|
explicit RenderingContext(GPainter& painter)
|
|
: m_painter(painter)
|
|
{
|
|
}
|
|
|
|
GPainter& painter() const { return m_painter; }
|
|
|
|
bool should_show_line_box_borders() const { return m_should_show_line_box_borders; }
|
|
void set_should_show_line_box_borders(bool value) { m_should_show_line_box_borders = value; }
|
|
|
|
private:
|
|
GPainter& m_painter;
|
|
bool m_should_show_line_box_borders { false };
|
|
};
|