1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/hyperlink.h
3 // Purpose: Hyperlink control
4 // Author: Francesco Montorsi
8 // Copyright: (c) 2007 Francesco Montorsi
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_GTKHYPERLINKCTRL_H_
13 #define _WX_GTKHYPERLINKCTRL_H_
15 #include "wx/generic/hyperlink.h"
17 // ----------------------------------------------------------------------------
19 // ----------------------------------------------------------------------------
21 class WXDLLIMPEXP_ADV wxHyperlinkCtrl
: public wxGenericHyperlinkCtrl
24 // Default constructor (for two-step construction).
28 wxHyperlinkCtrl(wxWindow
*parent
,
30 const wxString
& label
, const wxString
& url
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
,
33 long style
= wxHL_DEFAULT_STYLE
,
34 const wxString
& name
= wxHyperlinkCtrlNameStr
)
36 (void)Create(parent
, id
, label
, url
, pos
, size
, style
, name
);
39 // Creation function (for two-step construction).
40 bool Create(wxWindow
*parent
,
42 const wxString
& label
, const wxString
& url
,
43 const wxPoint
& pos
= wxDefaultPosition
,
44 const wxSize
& size
= wxDefaultSize
,
45 long style
= wxHL_DEFAULT_STYLE
,
46 const wxString
& name
= wxHyperlinkCtrlNameStr
);
50 virtual wxColour
GetHoverColour() const;
51 virtual void SetHoverColour(const wxColour
&colour
);
53 virtual wxColour
GetNormalColour() const;
54 virtual void SetNormalColour(const wxColour
&colour
);
56 virtual wxColour
GetVisitedColour() const;
57 virtual void SetVisitedColour(const wxColour
&colour
);
59 virtual wxString
GetURL() const;
60 virtual void SetURL(const wxString
&url
);
62 virtual void SetLabel(const wxString
&label
);
65 virtual wxSize
DoGetBestSize() const;
66 virtual wxSize
DoGetBestClientSize() const;
68 virtual GdkWindow
*GTKGetWindow(wxArrayGdkWindows
& windows
) const;
70 DECLARE_DYNAMIC_CLASS(wxHyperlinkCtrl
)
73 #endif // _WX_GTKHYPERLINKCTRL_H_