Class HoverClick¶
Defined in File hover_click.h
Class Documentation¶
-
class HoverClick¶
Enable configuring hover click at runtime.
Remark
Since MirAL 5.5
Public Functions
-
explicit HoverClick(bool enabled_by_default)¶
-
void operator()(mir::Server &server)¶
-
HoverClick &enable()¶
Enables hover click.
When already enabled, further calls have no effect.
-
HoverClick &disable()¶
Disables hover click.
When already disabled, further calls have no effect.
-
HoverClick &hover_duration(std::chrono::milliseconds hover_duration)¶
Configures how long the pointer has to stay still to dispatch a left click.
-
HoverClick &cancel_displacement_threshold(int displacement)¶
-
HoverClick &reclick_displacement_threshold(int displacement)¶
-
HoverClick &on_hover_start(std::function<void()>&&)¶
Called shortly after a hover click is scheduled. Should be used to indicate to the user that a hover click has begun.
-
HoverClick &on_hover_cancel(std::function<void()>&&)¶
-
HoverClick &on_click_dispatched(std::function<void()>&&)¶
-
explicit HoverClick(bool enabled_by_default)¶