开发者

Alternative of uxtheme.dll on MacOSX

开发者 https://www.devze.com 2023-03-03 01:03 出处:网络
There is a library uxtheme.dll on Windows that allows to render shapes of system elements. Here is an illustration of what I mean:

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

精彩评论

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