1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

SpaceAnalyzer: Reduce thickness of black borders between cells.

-Adds take_from_{left,right,top,bottom} to Rect.
This commit is contained in:
Mart G 2021-03-02 14:29:22 +01:00 committed by Andreas Kling
parent ee7c8fbd7b
commit de9f458ff5
3 changed files with 101 additions and 53 deletions

View file

@ -67,9 +67,8 @@ private:
bool rect_can_contain_children(const Gfx::IntRect& rect) const;
bool rect_can_contain_label(const Gfx::IntRect& rect) const;
Gfx::IntRect inner_rect_for_frame(const Gfx::IntRect& rect) const;
enum class IsVisualLeaf {
enum class HasLabel {
Yes,
No
};
@ -80,7 +79,7 @@ private:
template<typename Function>
void lay_out_children(const TreeMapNode&, const Gfx::IntRect&, int depth, Function);
void paint_cell_frame(GUI::Painter&, const TreeMapNode&, const Gfx::IntRect&, int depth, bool fill) const;
void paint_cell_frame(GUI::Painter&, const TreeMapNode&, const Gfx::IntRect&, const Gfx::IntRect&, int depth, HasLabel has_label) const;
Vector<int> path_to_position(const Gfx::IntPoint&);
RefPtr<TreeMap> m_tree;