]> git.saurik.com Git - wxWidgets.git/blob - src/osx/cocoa/statline.mm
fix vertical mouse wheel event rotation value, sign was reversed in r74805
[wxWidgets.git] / src / osx / cocoa / statline.mm
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/osx/cocoa/statline.mm
3 // Purpose: wxStaticLine class
4 // Author: Stefan Csomor
5 // Created: 28.06.99
6 // Copyright: (c) 2008 Stefan Csomor
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
33 #include "wx/osx/private.h"
34
35 wxWidgetImplType* wxWidgetImpl::CreateStaticLine( wxWindowMac* wxpeer,
36 wxWindowMac* WXUNUSED(parent),
37 wxWindowID WXUNUSED(id),
38 const wxPoint& pos,
39 const wxSize& size,
40 long WXUNUSED(style),
41 long WXUNUSED(extraStyle))
42 {
43 NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
44 wxNSBox* v = [[wxNSBox alloc] initWithFrame:r];
45 wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
46 return c;
47 }
48
49 #endif //wxUSE_STATLINE