MCPcopy Create free account
hub / github.com/Samsung/rlottie / Demo7

Method Demo7

example/demo.cpp:167–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 void Demo7(EvasApp *app, std::string &filePath) {
168 /* Transform rotation */
169 view7.reset(new LottieView(app->evas()));
170 view7->setFilePath(filePath.c_str());
171 if (view7->player()) {
172 view7->player()->setValue<rlottie::Property::TrRotation>("Shape Layer 2.Shape 1",
173 [](const rlottie::FrameInfo& info) {
174 return info.curFrame() * 20;
175 });
176 }
177 view7->setPos(1800, 0);
178 view7->setSize(300, 300);
179 view7->show();
180 view7->play();
181 view7->loop(true);
182 view7->setRepeatMode(LottieView::RepeatMode::Reverse);
183 }
184 void Demo8(EvasApp *app, std::string &filePath) {
185 /* Transform + color */
186 view8.reset(new LottieView(app->evas()));

Callers

nothing calls this directly

Calls 11

evasMethod · 0.80
setFilePathMethod · 0.80
curFrameMethod · 0.80
setSizeMethod · 0.80
playMethod · 0.80
setRepeatModeMethod · 0.80
resetMethod · 0.45
playerMethod · 0.45
setPosMethod · 0.45
showMethod · 0.45
loopMethod · 0.45

Tested by

no test coverage detected