Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
text_line_metrics.hpp
Go to the documentation of this file.
1// Where captured text lines put their baselines, from the browser-measured
2// line metrics (design_line_metrics.hpp).
3#pragma once
4
6
7#include <optional>
8
9namespace pulp::view {
10
21float captured_baseline_offset(float line_height, float css_descent,
22 const std::optional<LineMetrics>& measured);
23
30float captured_baseline(float line_top, float offset, float root_y);
31
32} // namespace pulp::view
Hover-cursor tracking for platform window hosts.
Definition fwd.hpp:27
float captured_baseline(float line_top, float offset, float root_y)
The baseline of a captured line whose rect top is at line_top in the label's coordinates and whose ba...
float captured_baseline_offset(float line_height, float css_descent, const std::optional< LineMetrics > &measured)
Where the baseline of a captured line sits below the top of its run rect, for a rect line_height CSS ...