godot/thirdparty/thorvg/src/renderer/tvgShape.cpp

/*
 * Copyright (c) 2020 - 2024 the ThorVG project. All rights reserved.

 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:

 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.

 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

#include "tvgMath.h"
#include "tvgShape.h"

/************************************************************************/
/* Internal Class Implementation                                        */
/************************************************************************/


/************************************************************************/
/* External Class Implementation                                        */
/************************************************************************/

Shape :: Shape() :{}


Shape :: ~Shape()
{}


unique_ptr<Shape> Shape::gen() noexcept
{}


uint32_t Shape::identifier() noexcept
{}


Result Shape::reset() noexcept
{}


uint32_t Shape::pathCommands(const PathCommand** cmds) const noexcept
{}


uint32_t Shape::pathCoords(const Point** pts) const noexcept
{}


Result Shape::appendPath(const PathCommand *cmds, uint32_t cmdCnt, const Point* pts, uint32_t ptsCnt) noexcept
{}


Result Shape::moveTo(float x, float y) noexcept
{}


Result Shape::lineTo(float x, float y) noexcept
{}


Result Shape::cubicTo(float cx1, float cy1, float cx2, float cy2, float x, float y) noexcept
{}


Result Shape::close() noexcept
{}


Result Shape::appendCircle(float cx, float cy, float rx, float ry) noexcept
{}


Result Shape::appendArc(float cx, float cy, float radius, float startAngle, float sweep, bool pie) noexcept
{}


Result Shape::appendRect(float x, float y, float w, float h, float rx, float ry) noexcept
{}


Result Shape::fill(uint8_t r, uint8_t g, uint8_t b, uint8_t a) noexcept
{}


Result Shape::fill(unique_ptr<Fill> f) noexcept
{}


Result Shape::fillColor(uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a) const noexcept
{}


const Fill* Shape::fill() const noexcept
{}


Result Shape::order(bool strokeFirst) noexcept
{}


Result Shape::stroke(float width) noexcept
{}


float Shape::strokeWidth() const noexcept
{}


Result Shape::stroke(uint8_t r, uint8_t g, uint8_t b, uint8_t a) noexcept
{}


Result Shape::strokeColor(uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a) const noexcept
{}


Result Shape::stroke(unique_ptr<Fill> f) noexcept
{}


const Fill* Shape::strokeFill() const noexcept
{}


Result Shape::stroke(const float* dashPattern, uint32_t cnt) noexcept
{}


uint32_t Shape::strokeDash(const float** dashPattern) const noexcept
{}


Result Shape::stroke(StrokeCap cap) noexcept
{}


Result Shape::stroke(StrokeJoin join) noexcept
{}


Result Shape::strokeMiterlimit(float miterlimit) noexcept
{}


StrokeCap Shape::strokeCap() const noexcept
{}


StrokeJoin Shape::strokeJoin() const noexcept
{}


float Shape::strokeMiterlimit() const noexcept
{}


Result Shape::strokeTrim(float begin, float end, bool simultaneous) noexcept
{}


bool Shape::strokeTrim(float* begin, float* end) const noexcept
{}


Result Shape::fill(FillRule r) noexcept
{}


FillRule Shape::fillRule() const noexcept
{}