mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 21:21:17 +01:00
31 lines
615 B
C++
31 lines
615 B
C++
#ifndef _RIVE_CUBIC_VERTEX_HPP_
|
|
#define _RIVE_CUBIC_VERTEX_HPP_
|
|
#include "generated/shapes/cubic_vertex_base.hpp"
|
|
#include "math/vec2d.hpp"
|
|
|
|
namespace rive
|
|
{
|
|
class Vec2D;
|
|
class CubicVertex : public CubicVertexBase
|
|
{
|
|
protected:
|
|
bool m_InValid = false;
|
|
bool m_OutValid = false;
|
|
Vec2D m_InPoint;
|
|
Vec2D m_OutPoint;
|
|
|
|
virtual void computeIn() = 0;
|
|
virtual void computeOut() = 0;
|
|
|
|
public:
|
|
const Vec2D& outPoint();
|
|
const Vec2D& inPoint();
|
|
|
|
void outPoint(const Vec2D& value);
|
|
void inPoint(const Vec2D& value);
|
|
void xChanged() override;
|
|
void yChanged() override;
|
|
};
|
|
} // namespace rive
|
|
|
|
#endif |