mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 01:57:44 +00:00
LibGfx: Unpublish Gfx::Rect from global namespace
This commit is contained in:
parent
c39d44fc2e
commit
20cfd2a6bf
78 changed files with 262 additions and 260 deletions
|
@ -57,7 +57,7 @@ public:
|
|||
Function<void(const Gfx::Rect&)> on_set_needs_display;
|
||||
|
||||
void set_viewport_rect(const Gfx::Rect&);
|
||||
Rect viewport_rect() const { return m_viewport_rect; }
|
||||
Gfx::Rect viewport_rect() const { return m_viewport_rect; }
|
||||
|
||||
private:
|
||||
explicit Frame(HtmlView&);
|
||||
|
|
|
@ -55,7 +55,7 @@ HtmlView::HtmlView(GUI::Widget* parent)
|
|||
update();
|
||||
return;
|
||||
}
|
||||
Rect adjusted_rect = content_rect;
|
||||
Gfx::Rect adjusted_rect = content_rect;
|
||||
adjusted_rect.set_location(to_widget_position(content_rect.location()));
|
||||
update(adjusted_rect);
|
||||
};
|
||||
|
|
|
@ -38,7 +38,7 @@ LayoutListItemMarker::~LayoutListItemMarker()
|
|||
|
||||
void LayoutListItemMarker::render(RenderingContext& context)
|
||||
{
|
||||
Rect bullet_rect { 0, 0, 4, 4 };
|
||||
Gfx::Rect bullet_rect { 0, 0, 4, 4 };
|
||||
bullet_rect.center_within(enclosing_int_rect(rect()));
|
||||
// FIXME: It would be nicer to not have to go via the parent here to get our inherited style.
|
||||
auto color = parent()->style().color_or_fallback(CSS::PropertyID::Color, document(), context.palette().base_text());
|
||||
|
|
|
@ -47,7 +47,7 @@ public:
|
|||
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; }
|
||||
|
||||
Rect viewport_rect() const { return m_viewport_rect; }
|
||||
Gfx::Rect viewport_rect() const { return m_viewport_rect; }
|
||||
void set_viewport_rect(const Gfx::Rect& rect) { m_viewport_rect = rect; }
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue