- // get the width/height/... of the text using current or specified
- // font
- virtual void GetTextExtent(const wxString& string, int *OUTPUT, int *OUTPUT); // x, y
- %name(GetFullTextExtent) virtual void GetTextExtent(const wxString& string,
- int *OUTPUT, int *OUTPUT, // x, y
- int *OUTPUT, int* OUTPUT, // descent, externalLeading
- const wxFont* font = NULL);
+
+ DocDeclAStr(
+ void, GetTextExtent(const wxString& string, int *OUTPUT, int *OUTPUT),
+ "GetTextExtent(String string) -> (width, height)",
+ "Get the width and height of the text using the current font.");
+ DocDeclAStrName(
+ void, GetTextExtent(const wxString& string,
+ int *OUTPUT, int *OUTPUT, int *OUTPUT, int* OUTPUT,
+ const wxFont* font = NULL),
+ "GetFullTextExtent(String string, Font font=None) ->\n (width, height, descent, externalLeading)",
+ "Get the width, height, decent and leading of the text using the current or specified font.",
+ GetFullTextExtent);
+