substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DA...
[wxWidgets.git] / include / wx / motif / stattext.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/stattext.h
3 // Purpose: wxStaticText class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 17/09/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_STATTEXT_H_
13 #define _WX_STATTEXT_H_
14
15 class WXDLLIMPEXP_CORE wxStaticText: public wxStaticTextBase
16 {
17 DECLARE_DYNAMIC_CLASS(wxStaticText)
18
19 public:
20 wxStaticText() { }
21
22 wxStaticText(wxWindow *parent, wxWindowID id,
23 const wxString& label,
24 const wxPoint& pos = wxDefaultPosition,
25 const wxSize& size = wxDefaultSize,
26 long style = 0,
27 const wxString& name = wxStaticTextNameStr)
28 {
29 Create(parent, id, label, pos, size, style, name);
30 }
31
32 bool Create(wxWindow *parent, wxWindowID id,
33 const wxString& label,
34 const wxPoint& pos = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize,
36 long style = 0,
37 const wxString& name = wxStaticTextNameStr);
38
39 // implementation
40 // --------------
41
42 // operations
43 virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event))
44 {
45 return false;
46 }
47
48 virtual void SetLabel(const wxString& label);
49
50 // Get the widget that corresponds to the label
51 // (for font setting, label setting etc.)
52 virtual WXWidget GetLabelWidget() const
53 { return m_labelWidget; }
54
55 virtual void DoSetLabel(const wxString& str);
56 virtual wxString DoGetLabel() const;
57
58 virtual wxSize DoGetBestSize() const;
59 protected:
60 WXWidget m_labelWidget;
61 };
62
63 #endif
64 // _WX_STATTEXT_H_