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

A one-dimensional pixel range owned by the editor kernel. More...

#include <viewport_projection.hpp>

Public Member Functions

constexpr bool operator== (const PixelSpan &) const =default

Public Attributes

float origin = 0.0f
float extent = 0.0f

Detailed Description

A one-dimensional pixel range owned by the editor kernel.

Keeping this scalar avoids coupling projection math to any view-layer rectangle or pointer type. extent is the distance from the leading edge and must be finite and positive.

Member Function Documentation

◆ operator==()

bool pulp::timeline_editor::PixelSpan::operator== ( const PixelSpan & ) const
constexprdefault

Member Data Documentation

◆ extent

float pulp::timeline_editor::PixelSpan::extent = 0.0f

◆ origin

float pulp::timeline_editor::PixelSpan::origin = 0.0f

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