Detect Hovering a custom panel button

Hi, for my addon, I’d like to do (display in the viewport, not anything similar to tooltip) something while the user hovers a button (slider). I found no reference to that.
Could you please help me to find the way ?
Thanks in advance.

there’s no built in way to do it- but you could manually detect it by checking the mouse position in relation to the UI element’s position in the region

Thank you much, testure. I noticed that the background of my sliders gets a clearer grey while the mouse hovers it.
So maybe there’s a hidden way. Your solution is too complicated for me, absolute beginner.
But I am thankful you told me that.

there is code that detects a mouseover, but it’s not exposed to the python API unfortunately.

Thanks again, testure. I found another way, I made additional small buttons to perform what I wanted with hovering…