开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜