Alternative of uxtheme.dll on MacOSX
There is a library uxtheme.dll on Windows that allows to render shapes of system elements.
Here is an illustration of what I mean: http://www.terrainformatica.com/htmlayout/images/themesupport.jpg
Is there anything close to that on MacOSX? I am looking for a function:
开发者_如何学运维void drawSystemShape(CGContextRef gfx, rect, ctlType, part, state);
or the like.
Yes OS X has APIs to draw system controls in the HIToolbox framework which you can find inside the Carbon framework. The HIThemeDrawXXX
functions are documented in the header HITheme.h
.
Even though Carbon is deprecated, those functions are not and also available for 64-bit code.
精彩评论