13 double unscaledAscent,
20 metrics->fHardBreak = hardBreak;
23 metrics->fUnscaledAscent = unscaledAscent;
25 metrics->fWidth =
width;
26 metrics->fLeft =
left;
27 metrics->fBaseline = baseline;
28 metrics->fLineNumber = lineNumber;
61 return metrics->
fLeft;
static bool left(const SkPoint &p0, const SkPoint &p1)
SKWASM_EXPORT SkScalar lineMetrics_getHeight(LineMetrics *metrics)
SKWASM_EXPORT size_t lineMetrics_getStartIndex(LineMetrics *metrics)
SKWASM_EXPORT size_t lineMetrics_getEndIndex(LineMetrics *metrics)
SKWASM_EXPORT SkScalar lineMetrics_getUnscaledAscent(LineMetrics *metrics)
SKWASM_EXPORT SkScalar lineMetrics_getAscent(LineMetrics *metrics)
SKWASM_EXPORT SkScalar lineMetrics_getDescent(LineMetrics *metrics)
SKWASM_EXPORT SkScalar lineMetrics_getLeft(LineMetrics *metrics)
SKWASM_EXPORT LineMetrics * lineMetrics_create(bool hardBreak, double ascent, double descent, double unscaledAscent, double height, double width, double left, double baseline, size_t lineNumber)
SKWASM_EXPORT void lineMetrics_dispose(LineMetrics *metrics)
SKWASM_EXPORT SkScalar lineMetrics_getBaseline(LineMetrics *metrics)
SKWASM_EXPORT bool lineMetrics_getHardBreak(LineMetrics *metrics)
SKWASM_EXPORT SkScalar lineMetrics_getWidth(LineMetrics *metrics)
SKWASM_EXPORT int lineMetrics_getLineNumber(LineMetrics *metrics)