blob: 1f3a68e0f8106bd28be77bf41be45b1ea35cf2ab [file] [log] [blame]
#ifndef _RIVE_CUBIC_VERTEX_BASE_HPP_
#define _RIVE_CUBIC_VERTEX_BASE_HPP_
#include "rive/shapes/path_vertex.hpp"
namespace rive {
class CubicVertexBase : public PathVertex {
protected:
typedef PathVertex Super;
public:
static const uint16_t typeKey = 36;
/// Helper to quickly determine if a core object extends another without RTTI
/// at runtime.
bool isTypeOf(uint16_t typeKey) const override {
switch (typeKey) {
case CubicVertexBase::typeKey:
case PathVertexBase::typeKey:
case VertexBase::typeKey:
case ContainerComponentBase::typeKey:
case ComponentBase::typeKey:
return true;
default:
return false;
}
}
uint16_t coreType() const override { return typeKey; }
protected:
};
} // namespace rive
#endif