MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / progressForLayer

Method progressForLayer

Telegram/SourceFiles/dialogs/dialogs_row.cpp:203–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203float64 Row::CornerLayersManager::progressForLayer(Layer layer) const {
204 return (_nextLayer == layer)
205 ? progress()
206 : (_prevLayer == layer)
207 ? (1. - progress())
208 : 0.;
209}
210
211float64 Row::CornerLayersManager::progress() const {
212 return _animation.value(1.);

Callers 2

PaintCornerBadgeFrameMethod · 0.80
paintUserpicMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected