mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 21:21:17 +01:00
35 lines
684 B
C++
35 lines
684 B
C++
#ifndef _RIVE_CUBIC_VERTEX_BASE_HPP_
|
|
#define _RIVE_CUBIC_VERTEX_BASE_HPP_
|
|
#include "shapes/path_vertex.hpp"
|
|
namespace rive
|
|
{
|
|
class CubicVertexBase : public PathVertex
|
|
{
|
|
protected:
|
|
typedef PathVertex Super;
|
|
|
|
public:
|
|
static const int typeKey = 36;
|
|
|
|
/// Helper to quickly determine if a core object extends another without
|
|
/// RTTI at runtime.
|
|
bool isTypeOf(int typeKey) const override
|
|
{
|
|
switch (typeKey)
|
|
{
|
|
case CubicVertexBase::typeKey:
|
|
case PathVertexBase::typeKey:
|
|
case ComponentBase::typeKey:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
int coreType() const override { return typeKey; }
|
|
|
|
protected:
|
|
};
|
|
} // namespace rive
|
|
|
|
#endif |