]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/stattext.h
Second try to add "support" for deriving from
[wxWidgets.git] / include / wx / mac / carbon / stattext.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: stattext.h
3 // Purpose: wxStaticText class
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
7 // RCS-ID: $Id$
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_STATTEXT_H_
13 #define _WX_STATTEXT_H_
14
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "stattext.h"
17 #endif
18
19 class WXDLLEXPORT wxStaticText: public wxStaticTextBase
20 {
21 public:
22 wxStaticText() { }
23
24 wxStaticText(wxWindow *parent, wxWindowID id,
25 const wxString& label,
26 const wxPoint& pos = wxDefaultPosition,
27 const wxSize& size = wxDefaultSize,
28 long style = 0,
29 const wxString& name = wxStaticTextNameStr)
30 {
31 Create(parent, id, label, pos, size, style, name);
32 }
33
34 bool Create(wxWindow *parent, wxWindowID id,
35 const wxString& label,
36 const wxPoint& pos = wxDefaultPosition,
37 const wxSize& size = wxDefaultSize,
38 long style = 0,
39 const wxString& name = wxStaticTextNameStr);
40
41 // accessors
42 void SetLabel( const wxString &str ) ;
43 bool SetFont( const wxFont &font );
44
45 protected :
46
47 virtual wxSize DoGetBestSize() const ;
48 virtual bool AcceptsFocus() const { return FALSE; }
49
50 DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText)
51 };
52
53 #endif
54 // _WX_STATTEXT_H_