Files
rive-cpp/include/shapes/cubic_vertex.hpp
2020-08-16 18:20:11 -07:00

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