Add GetHFONT, OSXGetCGFont, and GetPangoFontDescription

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-03-28 00:15:30 +00:00
parent ce9b26f926
commit 8967f52028

View File

@@ -73,6 +73,36 @@ def run():
return self->IsOk();
""")
c.addCppMethod('void*', 'GetHFONT', '()',
doc="Returns the font's native handle.",
body="""\
#ifdef __WXMSW__
return self->GetHFONT();
#else
return 0;
#endif
""")
c.addCppMethod('void*', 'OSXGetCGFont', '()',
doc="Returns the font's native handle.",
body="""\
#ifdef __WXMAC__
return self->OSXGetCGFont();
#else
return 0;
#endif
""")
c.addCppMethod('void*', 'GetPangoFontDescription', '()',
doc="Returns the font's native handle.",
body="""\
#ifdef __WXGTK__
return self->GetNativeFontInfo()->description;
#else
return 0;
#endif
""")
# The stock Font items are documented as simple pointers, but in reality