]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/stattext.h
added missing consts and pass objects by const reference instead of by value (patch...
[wxWidgets.git] / include / wx / mac / carbon / stattext.h
CommitLineData
8cf73271
SC
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
65571936 9// Licence: wxWindows licence
8cf73271
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_STATTEXT_H_
13#define _WX_STATTEXT_H_
14
8cf73271
SC
15class WXDLLEXPORT wxStaticText: public wxStaticTextBase
16{
4f305456
SC
17public:
18 wxStaticText() { }
8cf73271 19
4f305456 20 wxStaticText(wxWindow *parent, wxWindowID id,
8cf73271
SC
21 const wxString& label,
22 const wxPoint& pos = wxDefaultPosition,
23 const wxSize& size = wxDefaultSize,
24 long style = 0,
25 const wxString& name = wxStaticTextNameStr)
26 {
27 Create(parent, id, label, pos, size, style, name);
28 }
29
30 bool Create(wxWindow *parent, wxWindowID id,
31 const wxString& label,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
34 long style = 0,
35 const wxString& name = wxStaticTextNameStr);
36
37 // accessors
38 void SetLabel( const wxString &str ) ;
c0e6c051 39 bool SetFont( const wxFont &font );
8cf73271 40
4f305456
SC
41protected :
42
8cf73271
SC
43 virtual wxSize DoGetBestSize() const ;
44 virtual bool AcceptsFocus() const { return FALSE; }
8cf73271 45
4f305456 46 DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText)
8cf73271
SC
47};
48
49#endif
50 // _WX_STATTEXT_H_