]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/classic/stattext.h
regenerated using build/update-setup-h to have wxUSE_DISPLAY and wxUSE_DATAVIEWCTRL...
[wxWidgets.git] / include / wx / mac / classic / 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 class WXDLLEXPORT wxStaticText: public wxStaticTextBase
16 {
17 DECLARE_DYNAMIC_CLASS(wxStaticText)
18 public:
19 inline wxStaticText() : m_label() { }
20
21 inline wxStaticText(wxWindow *parent, wxWindowID id,
22 const wxString& label,
23 const wxPoint& pos = wxDefaultPosition,
24 const wxSize& size = wxDefaultSize,
25 long style = 0,
26 const wxString& name = wxStaticTextNameStr)
27 {
28 Create(parent, id, label, pos, size, style, name);
29 }
30
31 bool Create(wxWindow *parent, wxWindowID id,
32 const wxString& label,
33 const wxPoint& pos = wxDefaultPosition,
34 const wxSize& size = wxDefaultSize,
35 long style = 0,
36 const wxString& name = wxStaticTextNameStr);
37
38 // accessors
39 void SetLabel( const wxString &str ) ;
40 bool SetFont( const wxFont &font );
41
42 // operations
43 virtual void Command(wxCommandEvent& WXUNUSED(event)) {};
44 virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {};
45 // events
46 void DrawParagraph(wxDC &dc, wxString paragraph, int &y);
47 void OnPaint( wxPaintEvent &event ) ;
48 void OnDraw( wxDC &dc ) ;
49 virtual wxSize DoGetBestSize() const ;
50 virtual bool AcceptsFocus() const { return FALSE; }
51 private :
52 wxString m_label ;
53
54 DECLARE_EVENT_TABLE()
55 };
56
57 #endif
58 // _WX_STATTEXT_H_