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

Method createCallTopBar

Telegram/SourceFiles/mainwidget.cpp:1026–1052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1024}
1025
1026void MainWidget::createCallTopBar(
1027 Calls::Call *call,
1028 Calls::GroupCall *group) {
1029 Expects(call || group);
1030
1031 const auto show = controller()->uiShow();
1032 _callTopBar.create(
1033 this,
1034 (call
1035 ? object_ptr<Calls::TopBar>(this, call, show)
1036 : object_ptr<Calls::TopBar>(this, group, show)));
1037 _callTopBar->entity()->initBlobsUnder(this, _callTopBar->geometryValue());
1038 _callTopBar->heightValue(
1039 ) | rpl::on_next([this](int value) {
1040 callTopBarHeightUpdated(value);
1041 }, lifetime());
1042 orderWidgets();
1043 if (_showAnimation) {
1044 _callTopBar->show(anim::type::instant);
1045 _callTopBar->setVisible(false);
1046 } else {
1047 _callTopBar->hide(anim::type::instant);
1048 _callTopBar->show(anim::type::normal);
1049 _callTopBarHeight = _contentScrollAddToY = _callTopBar->height();
1050 updateControlsGeometry();
1051 }
1052}
1053
1054void MainWidget::destroyCallTopBar() {
1055 if (_callTopBar) {

Callers

nothing calls this directly

Calls 8

initBlobsUnderMethod · 0.80
uiShowMethod · 0.45
createMethod · 0.45
heightValueMethod · 0.45
showMethod · 0.45
setVisibleMethod · 0.45
hideMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected