X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4e67f28fb7c5f0b96577e2cca3196804caecc150..4ed51f4d1c02f01489df35b25a96a1d5b25c1478:/wxPython/src/_hyperlink.i diff --git a/wxPython/src/_hyperlink.i b/wxPython/src/_hyperlink.i index eb4e898fe5..5becff5f8d 100644 --- a/wxPython/src/_hyperlink.i +++ b/wxPython/src/_hyperlink.i @@ -19,14 +19,17 @@ MAKE_CONST_WXSTRING(HyperlinkCtrlNameStr); enum { wxHL_CONTEXTMENU, - wxHL_DEFAULT_STYLE + wxHL_ALIGN_LEFT, + wxHL_ALIGN_RIGHT, + wxHL_ALIGN_CENTRE, + wxHL_DEFAULT_STYLE, }; //--------------------------------------------------------------------------- %newgroup -MustHaveApp(wxHyperlinkCtrl); +MustHaveApp(wxHyperlinkCtrl); DocStr( wxHyperlinkCtrl, "A static text control that emulates a hyperlink. The link is displayed @@ -45,7 +48,7 @@ public: %pythonAppend wxHyperlinkCtrl "self._setOORInfo(self)" %pythonAppend wxHyperlinkCtrl() "" - + // Constructor. wxHyperlinkCtrl(wxWindow *parent, wxWindowID id, @@ -81,6 +84,11 @@ public: void SetVisited(bool visited = true); bool GetVisited() const; + %property(HoverColour, GetHoverColour, SetHoverColour, doc="See `GetHoverColour` and `SetHoverColour`"); + %property(NormalColour, GetNormalColour, SetNormalColour, doc="See `GetNormalColour` and `SetNormalColour`"); + %property(URL, GetURL, SetURL, doc="See `GetURL` and `SetURL`"); + %property(Visited, GetVisited, SetVisited, doc="See `GetVisited` and `SetVisited`"); + %property(VisitedColour, GetVisitedColour, SetVisitedColour, doc="See `GetVisitedColour` and `SetVisitedColour`"); }; @@ -101,6 +109,8 @@ public: // that the user clicked on. wxString GetURL() const; void SetURL(const wxString &url); + + %property(URL, GetURL, SetURL, doc="See `GetURL` and `SetURL`"); };