common: introduce iterator 91/288391/1
authorHermet Park <chuneon.park@samsung.com>
Fri, 22 Oct 2021 12:04:15 +0000 (21:04 +0900)
committerjykeon <jykeon@samsung.com>
Thu, 16 Feb 2023 05:30:38 +0000 (14:30 +0900)
commitd411b51acf8844edd22a8e95aa9ade3467239435
tree45f302695b0f98d10925897ae787aede29300378
parent973dfc7dd64db59ce412c79426aee4521db7821a
common: introduce iterator

+++

auto picture = tvg::Picture::gen();

auto func = [](const tvg::Paint* paint, const tvg::Paint* parent, bool hasChildren) -> int
{
    if (paint->identifier() == Shape::identifier())
        //TODO: override properties.

    //return true to continue, return false to stop.
    return true;
};

picture = tvg::Iteratorv::iterate(move(picture), func);

Change-Id: I2ea956cb46b20547239686969c2e403e23fc8943
inc/thorvg.h
src/lib/meson.build
src/lib/tvgInitializer.cpp
src/lib/tvgIterator.cpp [new file with mode: 0644]