diff --git a/intern/ghost/GHOST_C-api.h b/intern/ghost/GHOST_C-api.h index a8dae232d8b..3aac4ac960b 100644 --- a/intern/ghost/GHOST_C-api.h +++ b/intern/ghost/GHOST_C-api.h @@ -560,6 +560,13 @@ extern GHOST_TDrawingContextType GHOST_GetDrawingContextType(GHOST_WindowHandle extern GHOST_TSuccess GHOST_SetDrawingContextType(GHOST_WindowHandle windowhandle, GHOST_TDrawingContextType type); +/** + * Returns the drawing context used in the this window. + * \param windowhandle: The handle to the window. + * \return The window drawing context. + */ +extern GHOST_ContextHandle GHOST_GetDrawingContext(GHOST_WindowHandle windowhandle); + /** * Sets the title displayed in the title bar. * \param windowhandle: The handle to the window.