Get Slate Widget Position on screen (Without window borders)


I am trying to get a slate widget position inside a windowed game.

So far, I have overriden the OnPaint method, and I have tried to call some methods of the MyClippingRect parameter inside OnPaint, but the results I am getting are nowhere near satisfying. I can get the overall dimensions of the widget, but outside of fullscreen, the small borders around the game window are offsetting everything.

While I was able to find the transform from desktop to window, I haven’t been able to find the transform from “Window edges” to “Viewport Edges”, if that makes sense.

I didn’t expect it to be so difficult… I just want to know the position of a widget… There must be some way to get those values as they are needed to draw said widget in the first place!