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

Method Demo4

example/demo.cpp:110–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 */

Callers

nothing calls this directly

Calls 12

PointClass · 0.85
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