]>
Commit | Line | Data |
---|---|---|
6762286d | 1 | ///////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/osx/stattext.h |
6762286d SC |
3 | // Purpose: wxStaticText class |
4 | // Author: Stefan Csomor | |
5 | // Modified by: | |
6 | // Created: 1998-01-01 | |
6762286d SC |
7 | // Copyright: (c) Stefan Csomor |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_STATTEXT_H_ | |
12 | #define _WX_STATTEXT_H_ | |
13 | ||
14 | class WXDLLIMPEXP_CORE wxStaticText: public wxStaticTextBase | |
15 | { | |
16 | public: | |
17 | wxStaticText() { } | |
18 | ||
19 | wxStaticText(wxWindow *parent, wxWindowID id, | |
20 | const wxString& label, | |
21 | const wxPoint& pos = wxDefaultPosition, | |
22 | const wxSize& size = wxDefaultSize, | |
23 | long style = 0, | |
24 | const wxString& name = wxStaticTextNameStr) | |
25 | { | |
26 | Create(parent, id, label, pos, size, style, name); | |
27 | } | |
28 | ||
29 | bool Create(wxWindow *parent, wxWindowID id, | |
30 | const wxString& label, | |
31 | const wxPoint& pos = wxDefaultPosition, | |
32 | const wxSize& size = wxDefaultSize, | |
33 | long style = 0, | |
34 | const wxString& name = wxStaticTextNameStr); | |
35 | ||
36 | // accessors | |
37 | void SetLabel( const wxString &str ) ; | |
38 | bool SetFont( const wxFont &font ); | |
39 | ||
8e6efd1f | 40 | virtual bool AcceptsFocus() const { return false; } |
6762286d SC |
41 | |
42 | protected : | |
43 | ||
44 | virtual wxString DoGetLabel() const; | |
45 | virtual void DoSetLabel(const wxString& str); | |
46 | ||
47 | virtual wxSize DoGetBestSize() const ; | |
48 | ||
f672c969 VZ |
49 | #if wxUSE_MARKUP && wxOSX_USE_COCOA |
50 | virtual bool DoSetLabelMarkup(const wxString& markup); | |
51 | #endif // wxUSE_MARKUP && wxOSX_USE_COCOA | |
52 | ||
6762286d SC |
53 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText) |
54 | }; | |
55 | ||
5c6eb3a8 | 56 | #endif |
6762286d | 57 | // _WX_STATTEXT_H_ |