| 108 | } |
| 109 | |
| 110 | void Demo4(EvasApp *app, std::string &filePath) { |
| 111 | /* Transform position */ |
| 112 | view4.reset(new LottieView(app->evas())); |
| 113 | view4->setFilePath(filePath.c_str()); |
| 114 | if (view4->player()) { |
| 115 | view4->player()->setValue<rlottie::Property::TrPosition>("Shape Layer 1.Ellipse 1", |
| 116 | [](const rlottie::FrameInfo& info) { |
| 117 | return rlottie::Point(-20 + (double)info.curFrame()/2.0, |
| 118 | -20 + (double)info.curFrame()/2.0); |
| 119 | }); |
| 120 | } |
| 121 | view4->setPos(900, 0); |
| 122 | view4->setSize(300, 300); |
| 123 | view4->show(); |
| 124 | view4->play(); |
| 125 | view4->loop(true); |
| 126 | view4->setRepeatMode(LottieView::RepeatMode::Reverse); |
| 127 | } |
| 128 | |
| 129 | void Demo5(EvasApp *app, std::string &filePath) { |
| 130 | /* Transform position */ |
nothing calls this directly
no test coverage detected