#include "Scanline.h" #include <cstdlib> #include "arithmetics.hpp" namespace msdfgen { static int compareIntersections(const void *a, const void *b) { … } bool interpretFillRule(int intersections, FillRule fillRule) { … } double Scanline::overlap(const Scanline &a, const Scanline &b, double xFrom, double xTo, FillRule fillRule) { … } Scanline::Scanline() : … { … } void Scanline::preprocess() { … } void Scanline::setIntersections(const std::vector<Intersection> &intersections) { … } #ifdef MSDFGEN_USE_CPP11 void Scanline::setIntersections(std::vector<Intersection> &&intersections) { this->intersections = (std::vector<Intersection> &&) intersections; preprocess(); } #endif int Scanline::moveTo(double x) const { … } int Scanline::countIntersections(double x) const { … } int Scanline::sumIntersections(double x) const { … } bool Scanline::filled(double x, FillRule fillRule) const { … } }