]> git.saurik.com Git - wxWidgets.git/blame - src/osx/carbon/statlmac.cpp
Make public headers compatible with Objective-C++ with ARC.
[wxWidgets.git] / src / osx / carbon / statlmac.cpp
CommitLineData
489468fe 1/////////////////////////////////////////////////////////////////////////////
524c47aa 2// Name: src/osx/carbon/statlmac.cpp
489468fe
SC
3// Purpose: a generic wxStaticLine class
4// Author: Vadim Zeitlin
5// Created: 28.06.99
489468fe
SC
6// Copyright: (c) 1998 Vadim Zeitlin
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10// ============================================================================
11// declarations
12// ============================================================================
13
14// ----------------------------------------------------------------------------
15// headers
16// ----------------------------------------------------------------------------
17
18// For compilers that support precompilation, includes "wx.h".
19#include "wx/wxprec.h"
20
21#ifdef __BORLANDC__
22 #pragma hdrstop
23#endif
24
25#if wxUSE_STATLINE
26
27#include "wx/statline.h"
28
29#ifndef WX_PRECOMP
30 #include "wx/statbox.h"
31#endif
32
524c47aa 33#include "wx/osx/private.h"
489468fe
SC
34
35// ============================================================================
36// implementation
37// ============================================================================
38
03647350
VZ
39wxWidgetImplType* wxWidgetImpl::CreateStaticLine( wxWindowMac* wxpeer,
40 wxWindowMac* parent,
41 wxWindowID WXUNUSED(id),
42 const wxPoint& pos,
524c47aa 43 const wxSize& size,
03647350
VZ
44 long WXUNUSED(style),
45 long WXUNUSED(extraStyle))
489468fe 46{
524c47aa
SC
47 Rect bounds = wxMacGetBoundsForControl( wxpeer , pos , size ) ;
48 wxMacControl* peer = new wxMacControl(wxpeer) ;
49 verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, peer->GetControlRefAddr() ) ) ;
50 return peer;
489468fe
SC
51}
52
53#endif //wxUSE_STATLINE