View-layer editing surface that composes waveform primitives without owning audio or painting. More...
#include <waveform_editor_primitives.hpp>
Public Member Functions | |
| void | set_total_samples (int64_t samples) |
| void | set_bounds (Rect bounds) |
| void | set_visible_range (int64_t start, int64_t length) |
| void | zoom_to_fit () |
| void | scroll (int64_t delta_samples) |
| const WaveformViewport & | viewport () const |
| const WaveformHandleModel & | handles () const |
| void | set_snap_settings (WaveformSnapSettings settings) |
| const WaveformSnapSettings & | snap_settings () const |
| void | set_selection (int64_t start, int64_t end) |
| void | clear_selection () |
| void | set_trim (int64_t start, int64_t end) |
| void | clear_trim () |
| void | set_loop (int64_t start, int64_t end) |
| void | clear_loop () |
| void | set_fade_in (int64_t end_sample) |
| void | clear_fade_in () |
| void | set_fade_out (int64_t start_sample) |
| void | clear_fade_out () |
| void | set_playhead (int64_t sample) |
| void | clear_playhead () |
| void | set_slice_markers (std::vector< int64_t > markers) |
| WaveformEditorSurfaceSnapshot | snapshot () const |
| WaveformRenderPlan | render_plan (int max_spans=0) const |
| WaveformHitResult | hit_test (float x, float tolerance_px) const |
| WaveformHitResult | hit_test (float x, const HitMetrics &metrics, float pixels_per_point=1.0f) const |
| bool | begin_selection_edit (int64_t anchor_sample) |
| bool | begin_handle_edit (WaveformHandleKind kind, int id=-1) |
| bool | begin_handle_edit (const WaveformHitResult &hit) |
| WaveformEditorSurfaceEditResult | update_edit (int64_t sample) |
| WaveformEditorSurfaceEditResult | commit_edit (int64_t sample) |
| WaveformEditorSurfaceEditResult | cancel_edit () |
| bool | edit_active () const |
| WaveformHandleKind | edit_kind () const |
| int | edit_id () const |
View-layer editing surface that composes waveform primitives without owning audio or painting.
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
| void pulp::view::WaveformEditorSurface::clear_fade_in | ( | ) |
| void pulp::view::WaveformEditorSurface::clear_fade_out | ( | ) |
| void pulp::view::WaveformEditorSurface::clear_loop | ( | ) |
| void pulp::view::WaveformEditorSurface::clear_playhead | ( | ) |
| void pulp::view::WaveformEditorSurface::clear_selection | ( | ) |
| void pulp::view::WaveformEditorSurface::clear_trim | ( | ) |
|
nodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
| void pulp::view::WaveformEditorSurface::scroll | ( | int64_t | delta_samples | ) |
| void pulp::view::WaveformEditorSurface::set_bounds | ( | Rect | bounds | ) |
| void pulp::view::WaveformEditorSurface::set_fade_in | ( | int64_t | end_sample | ) |
| void pulp::view::WaveformEditorSurface::set_fade_out | ( | int64_t | start_sample | ) |
| void pulp::view::WaveformEditorSurface::set_loop | ( | int64_t | start, |
| int64_t | end ) |
| void pulp::view::WaveformEditorSurface::set_playhead | ( | int64_t | sample | ) |
| void pulp::view::WaveformEditorSurface::set_selection | ( | int64_t | start, |
| int64_t | end ) |
| void pulp::view::WaveformEditorSurface::set_slice_markers | ( | std::vector< int64_t > | markers | ) |
| void pulp::view::WaveformEditorSurface::set_snap_settings | ( | WaveformSnapSettings | settings | ) |
| void pulp::view::WaveformEditorSurface::set_total_samples | ( | int64_t | samples | ) |
| void pulp::view::WaveformEditorSurface::set_trim | ( | int64_t | start, |
| int64_t | end ) |
| void pulp::view::WaveformEditorSurface::set_visible_range | ( | int64_t | start, |
| int64_t | length ) |
|
inlinenodiscard |
|
nodiscard |
|
nodiscard |
|
inlinenodiscard |
| void pulp::view::WaveformEditorSurface::zoom_to_fit | ( | ) |