mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:17:36 +00:00
SpaceAnalyzer: Reduce thickness of black borders between cells.
-Adds take_from_{left,right,top,bottom} to Rect.
This commit is contained in:
parent
ee7c8fbd7b
commit
de9f458ff5
3 changed files with 101 additions and 53 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue