Get ui element under mouse

Hi, is there a function which returns the ui area/element/property the mouse is currently over?

Properties (ie: BoolProperty, FloatProperty, etc) have no event callbacks such as “onmouseover”, only update or get/set callbacks.

Operators (ie: buttons) can have their properties assigned during invoke op = layout.operator(...) however this means that the values are set during the panel layout.

What are you trying to implement? There might be a workaround.

I think I might be getting somewhere near a resolution:

Here’s what I have so far, but I think I might be barking up the wrong tree.

import bpy
from bl_ui.space_toolsystem_toolbar import  ToolDef
from bl_ui.space_toolsystem_common import description_from_id, ToolSelectPanelHelper




class NOTE_OT_printtooldef(bpy.types.Operator):
    bl_idname = "note.printtooldef"
    bl_label = "print the tool description"
    
   
    
    def execute(self, context):
       
        space_type = context.space_data.type
        
        tool = ToolSelectPanelHelper.tool_active_from_context(context)
       
        
        description = **HOW TO GET DESCRIPTION**
        print(description)
        

        
        return {'FINISHED'}