]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/stattext.h
The rounded corners look really dumb at this size.
[wxWidgets.git] / include / wx / osx / stattext.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/stattext.h
3 // Purpose: wxStaticText class
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
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
40 virtual bool AcceptsFocus() const { return false; }
41
42 protected :
43
44 virtual wxString DoGetLabel() const;
45 virtual void DoSetLabel(const wxString& str);
46
47 virtual wxSize DoGetBestSize() const ;
48
49 #if wxUSE_MARKUP && wxOSX_USE_COCOA
50 virtual bool DoSetLabelMarkup(const wxString& markup);
51 #endif // wxUSE_MARKUP && wxOSX_USE_COCOA
52
53 DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText)
54 };
55
56 #endif
57 // _WX_STATTEXT_H_