reSWIGged

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-06-17 06:05:17 +00:00
parent fdc775af55
commit fd2dc34356
10 changed files with 236 additions and 75 deletions

View File

@@ -2611,7 +2611,12 @@ class DC(_core.Object):
return _gdi_.DC_GetCharWidth(*args, **kwargs)
def GetTextExtent(*args, **kwargs):
"""GetTextExtent(wxString string) -> (width, height)"""
"""
GetTextExtent(wxString string) -> (width, height)
Get the width and height of the text using the current font. Only
works for single line strings.
"""
return _gdi_.DC_GetTextExtent(*args, **kwargs)
def GetFullTextExtent(*args, **kwargs):
@@ -2628,6 +2633,10 @@ class DC(_core.Object):
"""
GetMultiLineTextExtent(wxString string, Font font=None) ->
(width, height, descent, externalLeading)
Get the width, height, decent and leading of the text using the
current or specified font. Works for single as well as multi-line
strings.
"""
return _gdi_.DC_GetMultiLineTextExtent(*args, **kwargs)