Hermet Park
90c9810b97
test: ++coverage of Canvas::paints(), Scene::paints()
2023-06-14 10:46:21 +09:00
Hermet Park
4627daf6f7
api: enhance API usability
...
Set the default values of rx = 0 and ry = 0 for the shape.
Only the round rectangle shape requires the usage of these values.
2023-06-13 10:42:57 +09:00
Hermet Park
b214fd23bc
common canvas/scene: introduce paints() api that returns the list of the paints.
...
These new apis would enable users to easily modify the motion scene,
The data structure of the paints has been changed from an array to a list.
@APIs:
std::list<Paint*>& Canvas::paints() noexcept;
std::list<Paint*>& Scene::paints() noexcept;
@Deprecated:
Result Canvas::reserve(uint32_t size) noexcept;
Result Scene::reserve(uint32_t size) noexcept;
@Issue: https://github.com/thorvg/thorvg/issues/1203
2023-06-09 10:54:03 +09:00
Martin Capitanio
4def2a679c
Fix clang compiler warnings in unit tests.
...
[clang] Warn on unqualified calls to std::move and std::forward
See: https://reviews.llvm.org/D119670
[141/166] Compiling C++ object test/tvgUnitTests.p/testAccessor.cpp.o
../thorvg-git/test/testAccessor.cpp:58:29: warning: unqualified call to
'std::move' [-Wunqualified-std-cast-call]
picture = accessor->set(move(picture), nullptr);
^
std::
...
2023-06-07 16:56:30 +09:00
Hermet Park
f0ae3e9cee
test: fix broken plugin support.
...
The thorvg test should not attempt to perform features
that were not enabled, as this will cause them to fail.
@Issues: https://github.com/thorvg/thorvg/issues/1251
2023-04-06 19:47:10 +09:00
Hermet Park
9b3c34c3b1
updated copyright.
2023-01-14 13:48:11 +09:00
projectitis
510ffa571a
Fix compiler warnings on windows
2022-08-20 12:30:35 +09:00
Hermet Park
f0141e63de
updated copyright date.
2022-01-12 14:08:48 +09:00
JunsuChoi
00bba39b02
test Array: Remove too big size test
...
On large memory machines, if machine have enough memory,
tests failed because it doesn't return null.
2021-11-09 14:04:42 +09:00
JunsuChoi
f28a0d9b5c
test Scene/Canvas: Fix maximum size for big size test
...
In some development environments, -1 of uint32_t may become 0.
2021-10-28 14:24:20 +09:00
Hermet Park
79933d9efa
api: set default value nullptr for user convenience.
2021-09-09 12:40:43 +09:00
Hermet Park
52d95dcb59
tests: add SwCanvasBase unit tests
2021-06-11 15:14:35 +09:00
Hermet Park
f0598a7481
Revert "tests: add SwCanvas base part unit tests"
...
This reverts commit ce6348a504
.
This isn't intended pushing...
2021-06-07 20:09:02 +09:00
Hermet Park
ce6348a504
tests: add SwCanvas base part unit tests
2021-06-07 19:57:52 +09:00