mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -28,7 +28,7 @@ public:
|
|||
Optional<size_t> active_tab_index() const;
|
||||
|
||||
Widget* active_widget() { return m_active_widget.ptr(); }
|
||||
const Widget* active_widget() const { return m_active_widget.ptr(); }
|
||||
Widget const* active_widget() const { return m_active_widget.ptr(); }
|
||||
void set_active_widget(Widget*);
|
||||
void set_tab_index(int);
|
||||
|
||||
|
@ -62,7 +62,7 @@ public:
|
|||
void remove_all_tabs_except(Widget& tab);
|
||||
|
||||
void set_tab_title(Widget& tab, StringView title);
|
||||
void set_tab_icon(Widget& tab, const Gfx::Bitmap*);
|
||||
void set_tab_icon(Widget& tab, Gfx::Bitmap const*);
|
||||
|
||||
void activate_next_tab();
|
||||
void activate_previous_tab();
|
||||
|
@ -86,7 +86,7 @@ public:
|
|||
Function<void(Widget&)> on_change;
|
||||
Function<void(Widget&)> on_middle_click;
|
||||
Function<void(Widget&)> on_tab_close_click;
|
||||
Function<void(Widget&, const ContextMenuEvent&)> on_context_menu_request;
|
||||
Function<void(Widget&, ContextMenuEvent const&)> on_context_menu_request;
|
||||
Function<void(Widget&)> on_double_click;
|
||||
|
||||
protected:
|
||||
|
@ -104,7 +104,7 @@ protected:
|
|||
virtual void doubleclick_event(MouseEvent&) override;
|
||||
|
||||
private:
|
||||
Gfx::IntRect child_rect_for_size(const Gfx::IntSize&) const;
|
||||
Gfx::IntRect child_rect_for_size(Gfx::IntSize const&) const;
|
||||
Gfx::IntRect button_rect(size_t index) const;
|
||||
Gfx::IntRect close_button_rect(size_t index) const;
|
||||
Gfx::IntRect bar_rect() const;
|
||||
|
@ -116,7 +116,7 @@ private:
|
|||
RefPtr<Widget> m_active_widget;
|
||||
|
||||
struct TabData {
|
||||
int width(const Gfx::Font&) const;
|
||||
int width(Gfx::Font const&) const;
|
||||
String title;
|
||||
RefPtr<Gfx::Bitmap> icon;
|
||||
Widget* widget { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue