mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:27:45 +00:00
LibGUI: Add hook when a context menu is requested on a tab
This commit is contained in:
parent
ff98f55b85
commit
bf2e6325a4
2 changed files with 17 additions and 0 deletions
|
@ -84,6 +84,7 @@ public:
|
|||
|
||||
Function<void(Widget&)> on_change;
|
||||
Function<void(Widget&)> on_middle_click;
|
||||
Function<void(Widget&, const ContextMenuEvent&)> on_context_menu_request;
|
||||
|
||||
protected:
|
||||
TabWidget();
|
||||
|
@ -95,6 +96,7 @@ protected:
|
|||
virtual void mousemove_event(MouseEvent&) override;
|
||||
virtual void leave_event(Core::Event&) override;
|
||||
virtual void keydown_event(KeyEvent&) override;
|
||||
virtual void context_menu_event(ContextMenuEvent&) override;
|
||||
|
||||
private:
|
||||
Gfx::Rect child_rect_for_size(const Gfx::Size&) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue