mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
Rename Painter::set_clip_rect() to add_clip_rect().
It was confusing to see multiple calls to set_foo() in a row. Since this is an intersecting operation, let's call it add_clip_rect() instead.
This commit is contained in:
parent
474340b9cd
commit
f249c40aaa
18 changed files with 28 additions and 28 deletions
|
@ -489,7 +489,7 @@ void Painter::draw_focus_rect(const Rect& rect)
|
|||
draw_rect(focus_rect, Color::from_rgb(0x84351a));
|
||||
}
|
||||
|
||||
void Painter::set_clip_rect(const Rect& rect)
|
||||
void Painter::add_clip_rect(const Rect& rect)
|
||||
{
|
||||
state().clip_rect.intersect(rect.translated(m_clip_origin.location()));
|
||||
state().clip_rect.intersect(m_target->rect());
|
||||
|
|
|
@ -42,7 +42,7 @@ public:
|
|||
void set_draw_op(DrawOp op) { state().draw_op = op; }
|
||||
DrawOp draw_op() const { return state().draw_op; }
|
||||
|
||||
void set_clip_rect(const Rect& rect);
|
||||
void add_clip_rect(const Rect& rect);
|
||||
void clear_clip_rect();
|
||||
Rect clip_rect() const { return state().clip_rect; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue