X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d0e2ede057148772415ee526344f1a1597db3ae7..0cf04a425fe081365237c97fec168b77ea6efd03:/wxPython/src/_hyperlink.i diff --git a/wxPython/src/_hyperlink.i b/wxPython/src/_hyperlink.i index 0115bca95f..5becff5f8d 100644 --- a/wxPython/src/_hyperlink.i +++ b/wxPython/src/_hyperlink.i @@ -15,22 +15,21 @@ //--------------------------------------------------------------------------- -%{ -#include -%} - 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 @@ -49,7 +48,7 @@ public: %pythonAppend wxHyperlinkCtrl "self._setOORInfo(self)" %pythonAppend wxHyperlinkCtrl() "" - + // Constructor. wxHyperlinkCtrl(wxWindow *parent, wxWindowID id, @@ -85,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`"); }; @@ -105,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`"); };