mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
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:
30
etg/font.py
30
etg/font.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user