Ocean
WxWidgets.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) Meta Platforms, Inc. and affiliates.
3
*
4
* This source code is licensed under the MIT license found in the
5
* LICENSE file in the root directory of this source tree.
6
*/
7
8
#ifndef META_OCEAN_PLATFORM_WXWIDGETS_WX_WIDGETS_H
9
#define META_OCEAN_PLATFORM_WXWIDGETS_WX_WIDGETS_H
10
11
#include "
ocean/platform/Platform.h
"
12
13
#ifdef _WINDOWS
14
#include <winsock2.h>
15
#endif
16
17
#ifdef __clang__
18
#pragma clang diagnostic push
19
#pragma clang diagnostic ignored "-Wcomma"
20
#endif
21
22
#include <wx/wx.h>
23
24
#ifndef OCEAN_WXWIDGETS_HANDLE
25
#if defined(OCEAN_PLATFORM_BUILD_LINUX)
26
#define OCEAN_WXWIDGETS_HANDLE WXWidget
27
#else
28
#define OCEAN_WXWIDGETS_HANDLE WXHWND
29
#endif
30
#endif
31
32
#ifdef __clang__
33
#pragma clang diagnostic pop
34
#endif
35
36
namespace
Ocean
37
{
38
39
namespace
Platform
40
{
41
42
namespace
WxWidgets
43
{
44
45
/**
46
* @ingroup platform
47
* @defgroup platformwxw Ocean Platform WxWidgets Library
48
* @{
49
* The Ocean WxWidgets Library provides specific functionalities for platforms supported by WxWidgets.
50
* The library is available on several platforms.
51
* @}
52
*/
53
54
/**
55
* @namespace Ocean::Platform::WxWidgets Namespace of the Platform WxWidgets library.<p>
56
* The Namespace Ocean::Platform::WxWidgets is used in the entire Ocean Platform WxWidgets Library.
57
*/
58
59
// Defines OCEAN_PLATFORM_WXWIDGETS_EXPORT for dll export and import.
60
#if defined(_WINDOWS) && defined(OCEAN_RUNTIME_SHARED)
61
#ifdef USE_OCEAN_PLATFORM_WXWIDGETS_EXPORT
62
#define OCEAN_PLATFORM_WXWIDGETS_EXPORT __declspec(dllexport)
63
#else
64
#define OCEAN_PLATFORM_WXWIDGETS_EXPORT __declspec(dllimport)
65
#endif
66
#else
67
#define OCEAN_PLATFORM_WXWIDGETS_EXPORT
68
#endif
69
70
}
71
72
}
73
74
}
75
76
#endif
// META_OCEAN_PLATFORM_WXWIDGETS_WX_WIDGETS_H
Platform.h
Ocean
The namespace covering the entire Ocean framework.
Definition:
Accessor.h:15
impl
ocean
platform
wxwidgets
WxWidgets.h
Generated on Thu Nov 14 2024 06:04:24 for Ocean by
1.9.1