mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 13:11:19 +01:00
39 lines
821 B
C++
39 lines
821 B
C++
#ifndef _RIVE_ELLIPSE_BASE_HPP_
|
|
#define _RIVE_ELLIPSE_BASE_HPP_
|
|
#include "shapes/parametric_path.hpp"
|
|
namespace rive
|
|
{
|
|
class EllipseBase : public ParametricPath
|
|
{
|
|
protected:
|
|
typedef ParametricPath Super;
|
|
|
|
public:
|
|
static const int typeKey = 4;
|
|
|
|
/// Helper to quickly determine if a core object extends another without
|
|
/// RTTI at runtime.
|
|
bool isTypeOf(int typeKey) const override
|
|
{
|
|
switch (typeKey)
|
|
{
|
|
case EllipseBase::typeKey:
|
|
case ParametricPathBase::typeKey:
|
|
case PathBase::typeKey:
|
|
case NodeBase::typeKey:
|
|
case TransformComponentBase::typeKey:
|
|
case ContainerComponentBase::typeKey:
|
|
case ComponentBase::typeKey:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
int coreType() const override { return typeKey; }
|
|
|
|
protected:
|
|
};
|
|
} // namespace rive
|
|
|
|
#endif |