- @e string is the text string to measure, @e descent is the
- dimension from the baseline of the font to the bottom of the
- descender, and @e externalLeading is any extra vertical space added
- to the font by the font designer (usually is zero).
-
- The text extent is returned in @e w and @e h pointers (first form) or as
- a wxSize object (second form).
-
- If the optional parameter @e font is specified and valid, then it is used
- for the text extent calculation. Otherwise the currently selected font is.
-
- Note that this function only works with single-line strings.
-
- @sa wxFont, SetFont(), GetPartialTextExtents(),
- GetMultiLineTextExtent()
- */
- void GetTextExtent(const wxString& string, wxCoord * w,
- wxCoord * h,
- wxCoord * descent = @NULL,
- wxCoord * externalLeading = @NULL,
- const wxFont * font = @NULL);
- wxSize GetTextExtent(const wxString& string);
+ @a string is the text string to measure, @a descent is the dimension
+ from the baseline of the font to the bottom of the descender, and
+ @a externalLeading is any extra vertical space added to the font by the
+ font designer (usually is zero).
+
+ The text extent is returned in @a w and @a h pointers or as a wxSize
+ object depending on which version of this function is used.
+
+ If the optional parameter @a font is specified and valid, then it is
+ used for the text extent calculation. Otherwise the currently selected
+ font is.
+
+ @note This function only works with single-line strings.
+
+ @beginWxPythonOnly
+ The following methods are implemented in wxPython:
+ - GetTextExtent(string) - Returns a 2-tuple, (width, height).
+ - GetFullTextExtent(string, font=NULL) -
+ Returns a 4-tuple, (width, height, descent, externalLeading).
+ @endWxPythonOnly
+
+ @see wxFont, SetFont(), GetPartialTextExtents(),
+ GetMultiLineTextExtent()
+ */
+ void GetTextExtent(const wxString& string, wxCoord* w, wxCoord* h,
+ wxCoord* descent = NULL,
+ wxCoord* externalLeading = NULL,
+ const wxFont* font = NULL) const;
+ const wxSize GetTextExtent(const wxString& string) const;