mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-08 09:24:41 +00:00
23 lines
395 B
C++
Vendored
23 lines
395 B
C++
Vendored
#pragma once
|
|
|
|
#include <atomic>
|
|
#include <cstdint>
|
|
|
|
namespace gpui_safe_area {
|
|
|
|
struct Insets {
|
|
double top;
|
|
double right;
|
|
double bottom;
|
|
double left;
|
|
};
|
|
|
|
inline std::atomic<double> windowTopInset{0.0};
|
|
|
|
inline Insets gpui_safe_area_insets(int32_t /*surfaceId*/) {
|
|
return {
|
|
.top = windowTopInset.load(), .right = 0.0, .bottom = 0.0, .left = 0.0};
|
|
}
|
|
|
|
} // namespace gpui_safe_area
|