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

Method toggle

Telegram/SourceFiles/ui/chat/group_call_userpics.cpp:366–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366void GroupCallUserpics::toggle(Userpic &userpic, bool shown) {
367 if (userpic.hiding == !shown && !userpic.shownAnimation.animating()) {
368 return;
369 }
370 userpic.hiding = !shown;
371 userpic.shownAnimation.start(
372 [=] { recountAndRepaint(); },
373 shown ? 0. : 1.,
374 shown ? 1. : 0.,
375 kDuration);
376}
377
378void GroupCallUserpics::updatePositions() {
379 const auto shownCount = ranges::count(_list, false, &Userpic::hiding);

Callers 15

createRowViewMethod · 0.45
TopBarMethod · 0.45
ChooseLanguageBoxFunction · 0.45
setContentMethod · 0.45
RequestsBarMethod · 0.45
GroupCallBarMethod · 0.45
MoreChatsBarMethod · 0.45
showMethod · 0.45
CreateScreenReaderBarFunction · 0.45
AddJoinedCountButtonFunction · 0.45
venuesSearchChangedMethod · 0.45
initFieldMethod · 0.45

Calls 2

animatingMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected