1 #############################################################################
2 ## Name: XS/HyperlinkCtrl.xsp
3 ## Purpose: XS++ for Wx::HyperlinkCtrl
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: HyperlinkCtrl.xsp 2079 2007-07-08 21:18:04Z mbarbon $
8 ## Copyright: (c) 2006 Mattia Barbon
9 ## Licence: This program is free software; you can redistribute it and/or
10 ## modify it under the same terms as Perl itself
11 #############################################################################
15 %typemap{wxHyperlinkCtrl*}{simple};
18 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
20 #include <wx/hyperlink.h>
23 %name{Wx::HyperlinkCtrl} class wxHyperlinkCtrl
25 %name{newDefault} wxHyperlinkCtrl()
26 %code{% RETVAL = new wxHyperlinkCtrl();
27 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
29 %name{newFull} wxHyperlinkCtrl( wxWindow *parent,
31 const wxString& label, const wxString& url,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
35 const wxString& name = wxHyperlinkCtrlNameStr )
36 %code{% RETVAL = new wxHyperlinkCtrl( parent, id, label, url,
37 pos, size, style, name );
38 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
41 bool Create( wxWindow *parent,
43 const wxString& label, const wxString& url,
44 const wxPoint& pos = wxDefaultPosition,
45 const wxSize& size = wxDefaultSize,
47 const wxString& name = wxHyperlinkCtrlNameStr );
49 wxColour GetHoverColour() const;
50 void SetHoverColour( const wxColour& colour );
51 wxColour GetNormalColour() const;
52 void SetNormalColour( const wxColour& colour );
53 wxColour GetVisitedColour() const;
54 void SetVisitedColour( const wxColour& colour );
55 wxString GetURL() const;
56 void SetURL ( const wxString& url );
57 void SetVisited( bool visited = true );
61 %name{Wx::HyperlinkEvent} class wxHyperlinkEvent
64 void SetURL( const wxString& url );
72 MATCH_VOIDM_REDISP( newDefault )
73 MATCH_ANY_REDISP( newFull )
74 END_OVERLOAD( "Wx::HyperlinkCtrl::new" )