mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:27: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
|
@ -31,7 +31,7 @@ public:
|
|||
virtual ~Menu() override = default;
|
||||
|
||||
ConnectionFromClient* client() { return m_client; }
|
||||
const ConnectionFromClient* client() const { return m_client; }
|
||||
ConnectionFromClient const* client() const { return m_client; }
|
||||
int menu_id() const { return m_menu_id; }
|
||||
|
||||
bool is_open() const;
|
||||
|
@ -40,7 +40,7 @@ public:
|
|||
|
||||
bool is_empty() const { return m_items.is_empty(); }
|
||||
size_t item_count() const { return m_items.size(); }
|
||||
const MenuItem& item(size_t index) const { return m_items.at(index); }
|
||||
MenuItem const& item(size_t index) const { return m_items.at(index); }
|
||||
MenuItem& item(size_t index) { return m_items.at(index); }
|
||||
|
||||
MenuItem* item_by_identifier(unsigned identifier)
|
||||
|
@ -72,7 +72,7 @@ public:
|
|||
}
|
||||
|
||||
Gfx::IntRect rect_in_window_menubar() const { return m_rect_in_window_menubar; }
|
||||
void set_rect_in_window_menubar(const Gfx::IntRect& rect) { m_rect_in_window_menubar = rect; }
|
||||
void set_rect_in_window_menubar(Gfx::IntRect const& rect) { m_rect_in_window_menubar = rect; }
|
||||
|
||||
Window* menu_window() { return m_menu_window.ptr(); }
|
||||
Window& ensure_menu_window(Gfx::IntPoint const&);
|
||||
|
@ -94,7 +94,7 @@ public:
|
|||
|
||||
void draw();
|
||||
void draw(MenuItem const&, bool = false);
|
||||
const Gfx::Font& font() const;
|
||||
Gfx::Font const& font() const;
|
||||
|
||||
MenuItem* item_with_identifier(unsigned);
|
||||
bool remove_item_with_identifier(unsigned);
|
||||
|
@ -113,10 +113,10 @@ public:
|
|||
|
||||
void set_visible(bool);
|
||||
|
||||
void popup(const Gfx::IntPoint&);
|
||||
void do_popup(const Gfx::IntPoint&, bool make_input, bool as_submenu = false);
|
||||
void popup(Gfx::IntPoint const&);
|
||||
void do_popup(Gfx::IntPoint const&, bool make_input, bool as_submenu = false);
|
||||
|
||||
bool is_menu_ancestor_of(const Menu&) const;
|
||||
bool is_menu_ancestor_of(Menu const&) const;
|
||||
|
||||
void redraw_if_theme_changed();
|
||||
|
||||
|
@ -126,18 +126,18 @@ public:
|
|||
void descend_into_submenu_at_hovered_item();
|
||||
void open_hovered_item(bool leave_menu_open);
|
||||
|
||||
const Vector<size_t>* items_with_alt_shortcut(u32 alt_shortcut) const;
|
||||
Vector<size_t> const* items_with_alt_shortcut(u32 alt_shortcut) const;
|
||||
|
||||
private:
|
||||
Menu(ConnectionFromClient*, int menu_id, String name);
|
||||
|
||||
virtual void event(Core::Event&) override;
|
||||
|
||||
void handle_mouse_move_event(const MouseEvent&);
|
||||
void handle_mouse_move_event(MouseEvent const&);
|
||||
size_t visible_item_count() const;
|
||||
Gfx::IntRect stripe_rect();
|
||||
|
||||
int item_index_at(const Gfx::IntPoint&);
|
||||
int item_index_at(Gfx::IntPoint const&);
|
||||
static constexpr int padding_between_text_and_shortcut() { return 50; }
|
||||
void did_activate(MenuItem&, bool leave_menu_open);
|
||||
void update_for_new_hovered_item(bool make_input = false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue