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

One timeline item after a front-end projects it into pixel space. More...

#include <hit_test.hpp>

Public Member Functions

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

Public Attributes

timeline::ItemId item {}
float left_px = 0.0f
float top_px = 0.0f
float right_px = 0.0f
float bottom_px = 0.0f

Detailed Description

One timeline item after a front-end projects it into pixel space.

Bounds are half-open: the left and top edges belong to the candidate, while the right and bottom edges do not. Candidates are supplied in paint order, from back to front, so an exact geometric tie resolves to the later item.

Member Function Documentation

◆ operator==()

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

Member Data Documentation

◆ bottom_px

float pulp::timeline_editor::ProjectedHitCandidate::bottom_px = 0.0f

◆ item

timeline::ItemId pulp::timeline_editor::ProjectedHitCandidate::item {}

◆ left_px

float pulp::timeline_editor::ProjectedHitCandidate::left_px = 0.0f

◆ right_px

float pulp::timeline_editor::ProjectedHitCandidate::right_px = 0.0f

◆ top_px

float pulp::timeline_editor::ProjectedHitCandidate::top_px = 0.0f

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