]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/hyperlink.h
Use wxWebKitCtrlNameStr to adhere to the convention used by other wx classes.
[wxWidgets.git] / include / wx / gtk / hyperlink.h
CommitLineData
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
7// RCS-ID: $Id$
8// Copyright: (c) 2007 Francesco Montorsi
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef __GTKHYPERLINKCTRLH__
13#define __GTKHYPERLINKCTRLH__
14
15#include "wx/generic/hyperlink.h"
16
17// ----------------------------------------------------------------------------
18// wxHyperlinkCtrl
19// ----------------------------------------------------------------------------
20
21class WXDLLIMPEXP_ADV wxHyperlinkCtrl : public wxGenericHyperlinkCtrl
22{
23public:
24 // Default constructor (for two-step construction).
25 wxHyperlinkCtrl() { }
26
27 // Constructor.
28 wxHyperlinkCtrl(wxWindow *parent,
29 wxWindowID id,
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)
35 {
36 (void)Create(parent, id, label, url, pos, size, style, name);
37 }
38
39 // Creation function (for two-step construction).
40 bool Create(wxWindow *parent,
41 wxWindowID id,
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);
47
48
49 // get/set
50 virtual wxColour GetHoverColour() const;
51 virtual void SetHoverColour(const wxColour &colour);
52
53 virtual wxColour GetNormalColour() const;
54 virtual void SetNormalColour(const wxColour &colour);
55
56 virtual wxColour GetVisitedColour() const;
57 virtual void SetVisitedColour(const wxColour &colour);
58
59 virtual wxString GetURL() const;
60 virtual void SetURL(const wxString &url);
61
62 virtual void SetLabel(const wxString &label);
63
64protected:
65 // overridden base class virtuals
66
67 // Returns the best size for the window, which is the size needed
68 // to display the text label.
69 virtual wxSize DoGetBestSize() const;
70
71 virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
72
73private:
74 DECLARE_DYNAMIC_CLASS(wxHyperlinkCtrl)
75};
76
77#endif // __GTKHYPERLINKCTRLH__