How to draw a gpu handler in front of any spaces?

i’d like to use draw_handler_add() in order to drawmy own pie menu

Such menu do not care about the spaces context, such as shown above,
but are drawn in 2D window space.

How can i do that with python?

bpy.types.Space.draw_handler_add( won’t work, even tho this api call exists in the documentation and bpy.types.Window.draw_handler_add( simply do not exist.
Anyone who want to draw across spaces will get stuck unfortunately.

What is the solution to this problem?

1 Like