1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/hyperlink.h
3 // Purpose: Hyperlink control
4 // Author: Francesco Montorsi
7 // Copyright: (c) 2007 Francesco Montorsi
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_GTKHYPERLINKCTRL_H_
12 #define _WX_GTKHYPERLINKCTRL_H_
14 #include "wx/generic/hyperlink.h"
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 class WXDLLIMPEXP_ADV wxHyperlinkCtrl
: public wxGenericHyperlinkCtrl
23 // Default constructor (for two-step construction).
27 wxHyperlinkCtrl(wxWindow
*parent
,
29 const wxString
& label
, const wxString
& url
,
30 const wxPoint
& pos
= wxDefaultPosition
,
31 const wxSize
& size
= wxDefaultSize
,
32 long style
= wxHL_DEFAULT_STYLE
,
33 const wxString
& name
= wxHyperlinkCtrlNameStr
)
35 (void)Create(parent
, id
, label
, url
, pos
, size
, style
, name
);
38 // Creation function (for two-step construction).
39 bool Create(wxWindow
*parent
,
41 const wxString
& label
, const wxString
& url
,
42 const wxPoint
& pos
= wxDefaultPosition
,
43 const wxSize
& size
= wxDefaultSize
,
44 long style
= wxHL_DEFAULT_STYLE
,
45 const wxString
& name
= wxHyperlinkCtrlNameStr
);
49 virtual wxColour
GetHoverColour() const;
50 virtual void SetHoverColour(const wxColour
&colour
);
52 virtual wxColour
GetNormalColour() const;
53 virtual void SetNormalColour(const wxColour
&colour
);
55 virtual wxColour
GetVisitedColour() const;
56 virtual void SetVisitedColour(const wxColour
&colour
);
58 virtual wxString
GetURL() const;
59 virtual void SetURL(const wxString
&url
);
61 virtual void SetLabel(const wxString
&label
);
64 virtual wxSize
DoGetBestSize() const;
65 virtual wxSize
DoGetBestClientSize() const;
67 virtual GdkWindow
*GTKGetWindow(wxArrayGdkWindows
& windows
) const;
69 DECLARE_DYNAMIC_CLASS(wxHyperlinkCtrl
)
72 #endif // _WX_GTKHYPERLINKCTRL_H_