mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
LibGUI: Add show_tooltip_immediately()
This allows an application to display a tooltip without waiting for a timer to fire first.
This commit is contained in:
parent
552dd7abd3
commit
d46c3896c6
2 changed files with 19 additions and 4 deletions
|
@ -36,6 +36,7 @@ public:
|
|||
void unregister_global_shortcut_action(Badge<Action>, Action&);
|
||||
|
||||
void show_tooltip(String, const Widget* tooltip_source_widget);
|
||||
void show_tooltip_immediately(String, const Widget* tooltip_source_widget);
|
||||
void hide_tooltip();
|
||||
Widget* tooltip_source_widget() { return m_tooltip_source_widget; };
|
||||
|
||||
|
@ -85,7 +86,7 @@ private:
|
|||
|
||||
virtual void event(Core::Event&) override;
|
||||
|
||||
void tooltip_show_timer_did_fire();
|
||||
void request_tooltip_show();
|
||||
void tooltip_hide_timer_did_fire();
|
||||
|
||||
void set_drag_hovered_widget_impl(Widget*, const Gfx::IntPoint& = {}, Vector<String> = {});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue