]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/stattext.h
Applied rowspan patch #15276 (dghart)
[wxWidgets.git] / include / wx / cocoa / stattext.h
CommitLineData
fb896a32
DE
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/cocoa/stattext.h
3// Purpose: wxStaticText class
4// Author: David Elliott
5// Modified by:
6// Created: 2003/02/15
1b88201f 7// RCS-ID: $Id$
fb896a32 8// Copyright: (c) 2003 David Elliott
1b88201f 9// Licence: wxWindows licence
fb896a32
DE
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef __WX_COCOA_STATTEXT_H__
13#define __WX_COCOA_STATTEXT_H__
14
15#include "wx/cocoa/NSTextField.h"
16
17// ========================================================================
18// wxStaticText
19// ========================================================================
53a2db12 20class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase, protected wxCocoaNSTextField
fb896a32
DE
21{
22 DECLARE_DYNAMIC_CLASS(wxStaticText)
23 DECLARE_EVENT_TABLE()
24 WX_DECLARE_COCOA_OWNER(NSTextField,NSControl,NSView)
25// ------------------------------------------------------------------------
26// initialization
27// ------------------------------------------------------------------------
28public:
29 wxStaticText() {}
30 wxStaticText(wxWindow *parent, wxWindowID winid,
31 const wxString& label,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize, long style = 0,
34 const wxString& name = wxStaticTextNameStr)
35 {
36 Create(parent, winid, label, pos, size, style, name);
37 }
38
39 bool Create(wxWindow *parent, wxWindowID winid,
40 const wxString& label,
41 const wxPoint& pos = wxDefaultPosition,
42 const wxSize& size = wxDefaultSize, long style = 0,
43 const wxString& name = wxStaticTextNameStr);
44 virtual ~wxStaticText();
45
46// ------------------------------------------------------------------------
47// Cocoa specifics
48// ------------------------------------------------------------------------
49protected:
50 virtual void Cocoa_didChangeText(void);
51// ------------------------------------------------------------------------
52// Implementation
53// ------------------------------------------------------------------------
54public:
d174f457
VZ
55 virtual void SetLabel(const wxString& label);
56 virtual wxString GetLabel() const;
fb896a32
DE
57};
58
d174f457 59#endif // __WX_COCOA_STATTEXT_H__