[Adaptation Layer] Added rive-tizen adaptation layer class.
[platform/core/uifw/rive-tizen.git] / submodule / include / shapes / polygon.hpp
1 #ifndef _RIVE_POLYGON_HPP_
2 #define _RIVE_POLYGON_HPP_
3 #include "generated/shapes/polygon_base.hpp"
4 #include "shapes/path_vertex.hpp"
5 #include <stdio.h>
6 namespace rive
7 {
8         class Polygon : public PolygonBase
9         {
10         public:
11                 Polygon();
12                 ~Polygon();
13                 void update(ComponentDirt value) override;
14
15         protected:
16                 void cornerRadiusChanged() override;
17                 void pointsChanged() override;
18                 void clearVertices();
19                 void resizeVertices(int size);
20                 virtual int expectedSize();
21                 virtual void buildPolygon();
22                 void buildVertex(PathVertex* vertex, float h, float w, float angle);
23         };
24 } // namespace rive
25
26 #endif