Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::PendingDamage::Snapshot Class Reference

One frame's damage, taken atomically out of a PendingDamage. More...

#include <pending_damage.hpp>

Public Member Functions

bool is_full () const noexcept
bool has_bounds () const noexcept
Rect bounds () const noexcept
bool is_bounded () const noexcept
 True when this snapshot describes a clippable region — bounded damage with a real rect.

Friends

class PendingDamage

Detailed Description

One frame's damage, taken atomically out of a PendingDamage.

Deliberately has no mutators: it is a value the frame paints against and then either discards (the frame reached its output) or hands back to restore() (it did not).

Member Function Documentation

◆ bounds()

Rect pulp::view::PendingDamage::Snapshot::bounds ( ) const
inlinenoexcept

◆ has_bounds()

bool pulp::view::PendingDamage::Snapshot::has_bounds ( ) const
inlinenoexcept

◆ is_bounded()

bool pulp::view::PendingDamage::Snapshot::is_bounded ( ) const
inlinenoexcept

True when this snapshot describes a clippable region — bounded damage with a real rect.

The single predicate every host used to spell out as !is_full() && has_bounds().

◆ is_full()

bool pulp::view::PendingDamage::Snapshot::is_full ( ) const
inlinenoexcept

◆ PendingDamage

friend class PendingDamage
friend

The documentation for this class was generated from the following file: