HoverGesture Usablitiy

HoverGesture

With reference to the HoverGesture documentation, I am trying a create an extension that will detect if the mouse arrow is hovering a UI button.
I am unable to write the code to make use of any of the methods used in mentioned document.
Does anyone know the usage? If yes, please paste a sample code snippet.
Thanks.