~registry/dolphin-emu/triforce

« back to all changes in this revision

Viewing changes to Externals/wxWidgets3/src/osx/cocoa/statline.mm

  • Committer: Sérgio Benjamim
  • Date: 2015-02-13 05:54:40 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20150213055440-ey2rt3sjpy27km78
Dolphin Triforce branch from code.google, commit b957980 (4.0-315).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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