X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/63f7d5022e786be61c0226314dac98739f49a426..0738b901b17340f09766524b8d9d79e9ed1268e7:/interface/wx/textentry.h diff --git a/interface/wx/textentry.h b/interface/wx/textentry.h index bec4b6a928..ba646469e2 100644 --- a/interface/wx/textentry.h +++ b/interface/wx/textentry.h @@ -198,6 +198,11 @@ public: The returned first position. @param to The returned last position. + + @beginWxPerlOnly + In wxPerl this method takes no parameters and returns a + 2-element list (from, to). + @endWxPerlOnly */ virtual void GetSelection(long* from, long* to) const; @@ -381,6 +386,35 @@ public: */ virtual wxString GetHint() const; + //@{ + /** + Attempts to set the control margins. When margins are given as wxPoint, + x indicates the left and y the top margin. Use -1 to indicate that + an existing value should be used. + + @return + @true if setting of all requested margins was successful. + + @since 2.9.1 + */ + bool SetMargins(const wxPoint& pt); + bool SetMargins(wxCoord left, wxCoord top = -1); + //@} + + /** + Returns the margins used by the control. The @c x field of the returned + point is the horizontal margin and the @c y field is the vertical one. + + @remarks If given margin cannot be accurately determined, its value + will be set to -1. On some platforms you cannot obtain valid + margin values until you have called SetMargins(). + + @see SetMargins() + + @since 2.9.1 + */ + wxPoint GetMargins() const; + /** Sets the new text control value.