X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83dea146e2523e2d73b810d01b460db2c9aca8da..f62262aacfac8b03ad7b8aca946c4fd5717b6c2e:/wxPython/src/_statctrls.i diff --git a/wxPython/src/_statctrls.i b/wxPython/src/_statctrls.i index b3be54e960..904bcbd2b2 100644 --- a/wxPython/src/_statctrls.i +++ b/wxPython/src/_statctrls.i @@ -95,6 +95,16 @@ public: MustHaveApp(wxStaticText); +enum { + wxST_NO_AUTORESIZE, + wxST_MARKUP, + + wxST_ELLIPSIZE_START, + wxST_ELLIPSIZE_MIDDLE, + wxST_ELLIPSIZE_END +}; + + class wxStaticText : public wxControl { public: %pythonAppend wxStaticText "self._setOORInfo(self)" @@ -121,8 +131,23 @@ public: becomes at most ``width`` pixels wide if possible (the lines are broken at words boundaries so it might not be the case if words are too long). If ``width`` is negative, no wrapping is done.", ""); + + bool IsEllipsized() const; + DocDeclStr( + static wxString , RemoveMarkup(const wxString& str), + "Removes the markup accepted by wx.StaticText when wx.ST_MARKUP is +used, and then returns the cleaned string. + ", ""); + + DocDeclStr( + static wxString , EscapeMarkup(const wxString& str), + "Escapes the alls special symbols (<>\"\'&) present inside the given +string using the corresponding entities (< > " ' +&)", ""); + + static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); };