#include <string.h>
#include <math.h>
#include "tvgSwCommon.h"
static constexpr auto SW_STROKE_TAG_POINT = …;
static constexpr auto SW_STROKE_TAG_CUBIC = …;
static constexpr auto SW_STROKE_TAG_BEGIN = …;
static constexpr auto SW_STROKE_TAG_END = …;
static inline SwFixed SIDE_TO_ROTATE(const int32_t s)
{ … }
static inline void SCALE(const SwStroke& stroke, SwPoint& pt)
{ … }
static void _growBorder(SwStrokeBorder* border, uint32_t newPts)
{ … }
static void _borderClose(SwStrokeBorder* border, bool reverse)
{ … }
static void _borderCubicTo(SwStrokeBorder* border, const SwPoint& ctrl1, const SwPoint& ctrl2, const SwPoint& to)
{ … }
static void _borderArcTo(SwStrokeBorder* border, const SwPoint& center, SwFixed radius, SwFixed angleStart, SwFixed angleDiff, SwStroke& stroke)
{ … }
static void _borderLineTo(SwStrokeBorder* border, const SwPoint& to, bool movable)
{ … }
static void _borderMoveTo(SwStrokeBorder* border, SwPoint& to)
{ … }
static void _arcTo(SwStroke& stroke, int32_t side)
{ … }
static void _outside(SwStroke& stroke, int32_t side, SwFixed lineLength)
{ … }
static void _inside(SwStroke& stroke, int32_t side, SwFixed lineLength)
{ … }
void _processCorner(SwStroke& stroke, SwFixed lineLength)
{ … }
void _firstSubPath(SwStroke& stroke, SwFixed startAngle, SwFixed lineLength)
{ … }
static void _lineTo(SwStroke& stroke, const SwPoint& to)
{ … }
static void _cubicTo(SwStroke& stroke, const SwPoint& ctrl1, const SwPoint& ctrl2, const SwPoint& to)
{ … }
static void _addCap(SwStroke& stroke, SwFixed angle, int32_t side)
{ … }
static void _addReverseLeft(SwStroke& stroke, bool opened)
{ … }
static void _beginSubPath(SwStroke& stroke, const SwPoint& to, bool closed)
{ … }
static void _endSubPath(SwStroke& stroke)
{ … }
static void _getCounts(SwStrokeBorder* border, uint32_t& ptsCnt, uint32_t& cntrsCnt)
{ … }
static void _exportBorderOutline(const SwStroke& stroke, SwOutline* outline, uint32_t side)
{ … }
void strokeFree(SwStroke* stroke)
{ … }
void strokeReset(SwStroke* stroke, const RenderShape* rshape, const Matrix& transform)
{ … }
bool strokeParseOutline(SwStroke* stroke, const SwOutline& outline)
{ … }
SwOutline* strokeExportOutline(SwStroke* stroke, SwMpool* mpool, unsigned tid)
{ … }