mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -15,7 +15,7 @@ struct TreeMapNode {
|
|||
virtual String name() const = 0;
|
||||
virtual i64 area() const = 0;
|
||||
virtual size_t num_children() const = 0;
|
||||
virtual const TreeMapNode& child_at(size_t i) const = 0;
|
||||
virtual TreeMapNode const& child_at(size_t i) const = 0;
|
||||
virtual void sort_children_by_area() const = 0;
|
||||
|
||||
protected:
|
||||
|
@ -24,7 +24,7 @@ protected:
|
|||
|
||||
struct TreeMap : public RefCounted<TreeMap> {
|
||||
virtual ~TreeMap() = default;
|
||||
virtual const TreeMapNode& root() const = 0;
|
||||
virtual TreeMapNode const& root() const = 0;
|
||||
};
|
||||
|
||||
class TreeMapWidget final : public GUI::Frame {
|
||||
|
@ -35,7 +35,7 @@ public:
|
|||
Function<void()> on_path_change;
|
||||
Function<void(GUI::ContextMenuEvent&)> on_context_menu_request;
|
||||
size_t path_size() const;
|
||||
const TreeMapNode* path_node(size_t n) const;
|
||||
TreeMapNode const* path_node(size_t n) const;
|
||||
size_t viewpoint() const;
|
||||
void set_viewpoint(size_t);
|
||||
void set_tree(RefPtr<TreeMap> tree);
|
||||
|
@ -49,8 +49,8 @@ private:
|
|||
virtual void context_menu_event(GUI::ContextMenuEvent&) override;
|
||||
virtual void keydown_event(GUI::KeyEvent&) override;
|
||||
|
||||
bool rect_can_contain_children(const Gfx::IntRect& rect) const;
|
||||
bool rect_can_contain_label(const Gfx::IntRect& rect) const;
|
||||
bool rect_can_contain_children(Gfx::IntRect const& rect) const;
|
||||
bool rect_can_contain_label(Gfx::IntRect const& rect) const;
|
||||
|
||||
enum class HasLabel {
|
||||
Yes,
|
||||
|
@ -62,14 +62,14 @@ 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&, const Gfx::IntRect&, int depth, HasLabel has_label) const;
|
||||
Vector<int> path_to_position(const Gfx::IntPoint&);
|
||||
void lay_out_children(TreeMapNode const&, Gfx::IntRect const&, int depth, Function);
|
||||
void paint_cell_frame(GUI::Painter&, TreeMapNode const&, Gfx::IntRect const&, Gfx::IntRect const&, int depth, HasLabel has_label) const;
|
||||
Vector<int> path_to_position(Gfx::IntPoint const&);
|
||||
|
||||
RefPtr<TreeMap> m_tree;
|
||||
Vector<int> m_path;
|
||||
size_t m_viewpoint { 0 };
|
||||
const void* m_selected_node_cache;
|
||||
void const* m_selected_node_cache;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue