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

Method paintUserpic

Telegram/SourceFiles/boxes/peer_list_box.cpp:930–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

928}
929
930void PeerListRow::paintUserpic(
931 Painter &p,
932 const style::PeerListItem &st,
933 int x,
934 int y,
935 int outerWidth) {
936 if (_disabledState == State::DisabledChecked) {
937 paintDisabledCheckUserpic(p, st, x, y, outerWidth);
938 } else if (_checkbox) {
939 _checkbox->paint(p, x, y, outerWidth);
940 } else if (const auto callback = generatePaintUserpicCallback(false)) {
941 callback(p, x, y, outerWidth, st.photoSize);
942 }
943 paintUserpicOverlay(p, st, x, y, outerWidth);
944}
945
946// Emulates Ui::RoundImageCheckbox::paint() in a checked state.
947void PeerListRow::paintDisabledCheckUserpic(

Callers 4

paintRowMethod · 0.45
AddWearGiftCoverFunction · 0.45
paintRowMethod · 0.45

Calls 1

paintMethod · 0.45

Tested by

no test coverage detected