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

Function main

example/pathtest.cpp:99–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97};
98
99int
100main(void)
101{
102 APP = new EvasApp(800, 800);
103 ecore_evas_callback_resize_set(APP->mEcoreEvas, _on_resize);
104 APP->setup();
105
106 VPath path;
107 path.addRoundRect(VRectF(100, 100, 200, 200), 20, 20, VPath::Direction::CCW);
108 path.addCircle(50, 50, 20, VPath::Direction::CCW);
109
110 path.addOval(VRectF(300, 100, 100, 50), VPath::Direction::CCW);
111
112 path.addPolystar(15.0, 106.0, 34.0, 0.0, 150,
113 150, 231.0, 88.0, VPath::Direction::CW);
114
115 PathTest test(APP);
116 test.setPath(path);
117 test.setColor(255, 0, 0, 255);
118 test.setStrokeColor(200, 200, 0, 200);
119 test.setStrokeWidth(5);
120
121
122 APP->run();
123 delete APP;
124 return 0;
125}
126
127
128

Callers

nothing calls this directly

Calls 11

setColorMethod · 0.80
setStrokeColorMethod · 0.80
setStrokeWidthMethod · 0.80
addRoundRectMethod · 0.60
addCircleMethod · 0.60
addOvalMethod · 0.60
addPolystarMethod · 0.60
VRectFFunction · 0.50
setupMethod · 0.45
setPathMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected