1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
pub
pub use *;
pub use ;
pub use *;
pub use *;
pub use WindowHandler;
pub use MouseCursor;
pub use *;
pub use *;
pub use *;
pub
/// Assumes the current baseview library is the only one running in this process.
///
/// This allows baseview to change some platform-specific settings for greater compatibility.
/// Which settings are actually changed is documented below for information, but is not to be
/// considered stable. They are considered an implementation detail.
///
/// # Safety
///
/// This function must *not* be called in the following cases:
///
/// * The current binary is a plugin that can be loaded into an external host;
/// * Multiple `baseview` versions are present in the final binary;
/// * `baseview` is being used in conjunction with other platform windowing libraries (e.g. `winit`,
/// SDL, etc.);
/// * The current process may host other plugins that need to interact with the platform's GUI capabilities.
///
/// # Platform-specific considerations
///
/// This function is currently a no-op on macOS and X11.
/// On Windows, this sets the process' DPI awareness setting to the latest option supported by the
/// currently running system (up to `PerMonitorAwareV2`).
pub unsafe