mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
![]() This identifier is useful when user identify the instance type in runtime. ThorVG basically don't prefer to dynamic_cast() nor typeid(), it compiles with -fno-rtti option for the optimial size. Here is an example for the simple usage. if (paint->identifier() == Shape::identifier()) auto shape = static_cast<Shape*>(paint); @Issue: https://github.com/Samsung/thorvg/issues/693 |
||
---|---|---|
.. | ||
meson.build | ||
thorvg.h |