MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / set_hover

Method set_hover

plugins/decor/deco-button.cpp:31–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void button_t::set_hover(bool is_hovered)
32{
33 this->is_hovered = is_hovered;
34 if (!this->is_pressed)
35 {
36 if (is_hovered)
37 {
38 this->hover.animate(HOVERED);
39 } else
40 {
41 this->hover.animate(NORMAL);
42 }
43 }
44
45 add_idle_damage();
46}
47
48/**
49 * Set whether the button is pressed or not.

Callers 2

unset_hoverMethod · 0.80
handle_motionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected