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

Axis-aligned bounding box used for repaint-rect math. More...

#include <scene_node.hpp>

Public Member Functions

constexpr bool empty () const
constexpr SceneRect united (const SceneRect &other) const
 Union with other, treating empty rects as "no contribution".
constexpr bool operator== (const SceneRect &o) const
constexpr bool operator!= (const SceneRect &o) const

Public Attributes

float x = 0.0f
float y = 0.0f
float w = 0.0f
float h = 0.0f

Detailed Description

Axis-aligned bounding box used for repaint-rect math.

Local-coordinate bounds are reported by local_bounds(); the scene walker composes a node's transform onto its parent to derive "scene" bounds when the host asks for the bounding box that needs to be repainted after a mutation.

Member Function Documentation

◆ empty()

bool pulp::canvas::SceneRect::empty ( ) const
inlineconstexpr

◆ operator!=()

bool pulp::canvas::SceneRect::operator!= ( const SceneRect & o) const
inlineconstexpr

◆ operator==()

bool pulp::canvas::SceneRect::operator== ( const SceneRect & o) const
inlineconstexpr

◆ united()

SceneRect pulp::canvas::SceneRect::united ( const SceneRect & other) const
inlineconstexpr

Union with other, treating empty rects as "no contribution".

Member Data Documentation

◆ h

float pulp::canvas::SceneRect::h = 0.0f

◆ w

float pulp::canvas::SceneRect::w = 0.0f

◆ x

float pulp::canvas::SceneRect::x = 0.0f

◆ y

float pulp::canvas::SceneRect::y = 0.0f

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