]>
Commit | Line | Data |
---|---|---|
c105dda0 VZ |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/gtk/hyperlink.h | |
3 | // Purpose: Hyperlink control | |
4 | // Author: Francesco Montorsi | |
5 | // Modified by: | |
6 | // Created: 14/2/2007 | |
c105dda0 VZ |
7 | // Copyright: (c) 2007 Francesco Montorsi |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
8ca8714b PC |
11 | #ifndef _WX_GTKHYPERLINKCTRL_H_ |
12 | #define _WX_GTKHYPERLINKCTRL_H_ | |
c105dda0 VZ |
13 | |
14 | #include "wx/generic/hyperlink.h" | |
15 | ||
16 | // ---------------------------------------------------------------------------- | |
17 | // wxHyperlinkCtrl | |
18 | // ---------------------------------------------------------------------------- | |
19 | ||
20 | class WXDLLIMPEXP_ADV wxHyperlinkCtrl : public wxGenericHyperlinkCtrl | |
21 | { | |
22 | public: | |
23 | // Default constructor (for two-step construction). | |
24 | wxHyperlinkCtrl() { } | |
25 | ||
26 | // Constructor. | |
27 | wxHyperlinkCtrl(wxWindow *parent, | |
28 | wxWindowID id, | |
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) | |
34 | { | |
35 | (void)Create(parent, id, label, url, pos, size, style, name); | |
36 | } | |
37 | ||
38 | // Creation function (for two-step construction). | |
39 | bool Create(wxWindow *parent, | |
40 | wxWindowID id, | |
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); | |
46 | ||
47 | ||
48 | // get/set | |
49 | virtual wxColour GetHoverColour() const; | |
50 | virtual void SetHoverColour(const wxColour &colour); | |
51 | ||
52 | virtual wxColour GetNormalColour() const; | |
53 | virtual void SetNormalColour(const wxColour &colour); | |
54 | ||
55 | virtual wxColour GetVisitedColour() const; | |
56 | virtual void SetVisitedColour(const wxColour &colour); | |
57 | ||
58 | virtual wxString GetURL() const; | |
59 | virtual void SetURL(const wxString &url); | |
60 | ||
61 | virtual void SetLabel(const wxString &label); | |
62 | ||
63 | protected: | |
c105dda0 | 64 | virtual wxSize DoGetBestSize() const; |
8ca8714b | 65 | virtual wxSize DoGetBestClientSize() const; |
c105dda0 VZ |
66 | |
67 | virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const; | |
68 | ||
c105dda0 VZ |
69 | DECLARE_DYNAMIC_CLASS(wxHyperlinkCtrl) |
70 | }; | |
71 | ||
8ca8714b | 72 | #endif // _WX_GTKHYPERLINKCTRL_H_ |