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

Method Demo5

example/demo.cpp:129–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127 }
128
129 void Demo5(EvasApp *app, std::string &filePath) {
130 /* Transform position */
131 view5.reset(new LottieView(app->evas()));
132 view5->setFilePath(filePath.c_str());
133 if (view5->player()) {
134 view5->player()->setValue<rlottie::Property::TrPosition>("Shape Layer 2.Shape 1",
135 [](const rlottie::FrameInfo& info) {
136 return rlottie::Point(-20 + (double)info.curFrame()/2.0,
137 -20 + (double)info.curFrame()/2.0);
138 });
139 }
140 view5->setPos(1200, 0);
141 view5->setSize(300, 300);
142 view5->show();
143 view5->play();
144 view5->loop(true);
145 view5->setRepeatMode(LottieView::RepeatMode::Reverse);
146 }
147
148 void Demo6(EvasApp *app, std::string &filePath) {
149 /* Transform scale */

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