6#include "../wrappers.h"
16 style->setReplaceTabCharacters(
true);
21 style->setTextStyle(textStyle);
52 bool applyHeightToFirstAscent,
53 bool applyHeightToLastDescent) {
55 if (!applyHeightToFirstAscent && !applyHeightToLastDescent) {
57 }
else if (!applyHeightToLastDescent) {
59 }
else if (!applyHeightToFirstAscent) {
83 bool applyRoundingHack) {
constexpr SkColor SK_ColorBLACK
void setColor(SkColor color)
SKWASM_EXPORT void paragraphStyle_setStrutStyle(ParagraphStyle *style, StrutStyle *strutStyle)
SKWASM_EXPORT void paragraphStyle_setTextStyle(ParagraphStyle *style, TextStyle *textStyle)
SKWASM_EXPORT void paragraphStyle_setTextAlign(ParagraphStyle *style, TextAlign align)
SKWASM_EXPORT void paragraphStyle_setHeight(ParagraphStyle *style, SkScalar height)
SKWASM_EXPORT void paragraphStyle_setMaxLines(ParagraphStyle *style, size_t maxLines)
SKWASM_EXPORT ParagraphStyle * paragraphStyle_create()
SKWASM_EXPORT void paragraphStyle_setEllipsis(ParagraphStyle *style, SkString *ellipsis)
SKWASM_EXPORT void paragraphStyle_setApplyRoundingHack(ParagraphStyle *style, bool applyRoundingHack)
SKWASM_EXPORT void paragraphStyle_setTextDirection(ParagraphStyle *style, TextDirection direction)
SKWASM_EXPORT void paragraphStyle_dispose(ParagraphStyle *style)
SKWASM_EXPORT void paragraphStyle_setTextHeightBehavior(ParagraphStyle *style, bool applyHeightToFirstAscent, bool applyHeightToLastDescent)
void setEllipsis(const std::u16string &ellipsis)
void setTextDirection(TextDirection direction)
void setTextStyle(const TextStyle &textStyle)
void setMaxLines(size_t maxLines)
void setHeight(SkScalar height)
void setStrutStyle(StrutStyle strutStyle)
void setTextHeightBehavior(TextHeightBehavior v)
void setTextAlign(TextAlign align)
void setApplyRoundingHack(bool value)