MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / step

Method step

plugins/animate/fire/fire.cpp:256–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256bool FireAnimation::step()
257{
258 auto transformer = view->get_transformed_node()
259 ->get_transformer<fire_node_t>(name);
260
261 transformer->set_progress_line(this->progression);
262 if (this->progression.running())
263 {
264 transformer->ps->spawn(transformer->ps->size() / 10);
265 }
266
267 transformer->ps->update();
268 transformer->ps->resize(particle_count_for_width(
269 transformer->get_children_bounding_box().width));
270 return this->progression.running() || transformer->ps->statistic();
271}
272
273void FireAnimation::reverse()
274{

Callers 1

animation_hookClass · 0.45

Calls 8

particle_count_for_widthFunction · 0.85
set_progress_lineMethod · 0.80
spawnMethod · 0.80
updateMethod · 0.80
statisticMethod · 0.80
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected