Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::platform::SafeAreaInsets Struct Reference

Safe-area insets in CSS-pixel space (already divided by content_scale). More...

#include <environment.hpp>

Public Member Functions

bool is_zero () const noexcept

Public Attributes

float top = 0.0f
float bottom = 0.0f
float left = 0.0f
float right = 0.0f

Detailed Description

Safe-area insets in CSS-pixel space (already divided by content_scale).

Top/bottom cover the iOS notch + home indicator and Android cutouts; left/right cover landscape notches and rounded display corners.

Member Function Documentation

◆ is_zero()

bool pulp::platform::SafeAreaInsets::is_zero ( ) const
inlinenoexcept

Member Data Documentation

◆ bottom

float pulp::platform::SafeAreaInsets::bottom = 0.0f

◆ left

float pulp::platform::SafeAreaInsets::left = 0.0f

◆ right

float pulp::platform::SafeAreaInsets::right = 0.0f

◆ top

float pulp::platform::SafeAreaInsets::top = 0.0f

The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/platform/include/pulp/platform/environment.hpp