Merge "capi: Added wrapper for tvg::Shape::transform (fixed)" into tizen

This commit is contained in:
Hermet Park 2020-07-30 04:47:31 +00:00 committed by Gerrit Code Review
commit 07e5c233a7
2 changed files with 6 additions and 0 deletions

View file

@ -143,6 +143,7 @@ TVG_EXPORT Tvg_Result tvg_shape_fill_color(Tvg_Paint* paint, uint8_t r, uint8_t
TVG_EXPORT Tvg_Result tvg_shape_scale(Tvg_Paint* paint, float factor);
TVG_EXPORT Tvg_Result tvg_shape_rotate(Tvg_Paint* paint, float degree);
TVG_EXPORT Tvg_Result tvg_shape_translate(Tvg_Paint* paint, float x, float y);
TVG_EXPORT Tvg_Result tvg_shape_transform(Tvg_Paint* paint, const Tvg_Matrix* m);
#ifdef __cplusplus
}

View file

@ -241,6 +241,11 @@ TVG_EXPORT Tvg_Result tvg_shape_translate(Tvg_Paint* paint, float x, float y)
return (Tvg_Result) reinterpret_cast<Shape*>(paint)->translate(x, y);
}
TVG_EXPORT Tvg_Result tvg_shape_transform(Tvg_Paint* paint, const Tvg_Matrix* m)
{
return (Tvg_Result) reinterpret_cast<Shape*>(paint)->transform(*(reinterpret_cast<const Matrix*>(m)));
}
#ifdef __cplusplus
}
#endif