phoenix::Viewport
A viewport is a widget designed to allow an external video API to draw to it. By default, the background of this widget is painted as black. This is the only class that exposes the underlying OS-level window ID, which is meant to be used to bind eg OpenGL, DirectX, SDL, etc contexts to it.
struct Viewport : Widget {
function<void ()> onMouseLeave();
function<void ()> onMouseMove(Position position);
function<void (Mouse::Button)> onMousePress(Mouse::Button button);
function<void (Mouse::Button)> onMouseRelease(Mouse::Button button);
uintptr_t handle();
};