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

Snapshot of the full environment state. More...

#include <environment.hpp>

Public Attributes

DisplayInfo display
SafeAreaInsets safe_area
KeyboardInset keyboard
Orientation orientation = Orientation::unknown
ColorScheme color_scheme = ColorScheme::unknown
LifecycleState lifecycle = LifecycleState::unknown
MemoryPressure memory_pressure = MemoryPressure::normal

Detailed Description

Snapshot of the full environment state.

Listener callbacks receive a (state, change) pair so they can branch on change.color_scheme without diffing the previous snapshot themselves.

Member Data Documentation

◆ color_scheme

ColorScheme pulp::platform::EnvironmentState::color_scheme = ColorScheme::unknown

◆ display

DisplayInfo pulp::platform::EnvironmentState::display

◆ keyboard

KeyboardInset pulp::platform::EnvironmentState::keyboard

◆ lifecycle

LifecycleState pulp::platform::EnvironmentState::lifecycle = LifecycleState::unknown

◆ memory_pressure

MemoryPressure pulp::platform::EnvironmentState::memory_pressure = MemoryPressure::normal

◆ orientation

Orientation pulp::platform::EnvironmentState::orientation = Orientation::unknown

◆ safe_area

SafeAreaInsets pulp::platform::EnvironmentState::safe_area

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