mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:07:36 +00:00
Meta+Userland: Pass Gfx::IntPoint by value
This is just two ints or 8 bytes or the size of the reference on x86_64 or AArch64.
This commit is contained in:
parent
bbc149ebb9
commit
7be0b27dd3
161 changed files with 442 additions and 441 deletions
|
@ -76,10 +76,10 @@ public:
|
|||
void set_rect_in_window_menubar(Gfx::IntRect const& rect) { m_rect_in_window_menubar = rect; }
|
||||
|
||||
Gfx::IntPoint unadjusted_position() const { return m_unadjusted_position; }
|
||||
void set_unadjusted_position(Gfx::IntPoint const& position) { m_unadjusted_position = position; }
|
||||
void set_unadjusted_position(Gfx::IntPoint position) { m_unadjusted_position = position; }
|
||||
|
||||
Window* menu_window() { return m_menu_window.ptr(); }
|
||||
Window& ensure_menu_window(Gfx::IntPoint const&);
|
||||
Window& ensure_menu_window(Gfx::IntPoint);
|
||||
|
||||
Window* window_menu_of() { return m_window_menu_of; }
|
||||
void set_window_menu_of(Window& window) { m_window_menu_of = window; }
|
||||
|
@ -118,9 +118,9 @@ public:
|
|||
|
||||
void set_visible(bool);
|
||||
|
||||
void popup(Gfx::IntPoint const&);
|
||||
void do_popup(Gfx::IntPoint const&, bool make_input, bool as_submenu = false);
|
||||
void open_button_menu(Gfx::IntPoint const& position, Gfx::IntRect const& button_rect);
|
||||
void popup(Gfx::IntPoint);
|
||||
void do_popup(Gfx::IntPoint, bool make_input, bool as_submenu = false);
|
||||
void open_button_menu(Gfx::IntPoint position, Gfx::IntRect const& button_rect);
|
||||
|
||||
bool is_menu_ancestor_of(Menu const&) const;
|
||||
|
||||
|
@ -143,7 +143,7 @@ private:
|
|||
size_t visible_item_count() const;
|
||||
Gfx::IntRect stripe_rect();
|
||||
|
||||
int item_index_at(Gfx::IntPoint const&);
|
||||
int item_index_at(Gfx::IntPoint);
|
||||
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