MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / DumpWindow

Method DumpWindow

TranslucentTB/taskbar/taskbarattributeworker.cpp:799–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

797}
798
799std::wstring TaskbarAttributeWorker::DumpWindow(Window window)
800{
801 if (window)
802 {
803 std::wstring title, className, fileName;
804 if (auto titleOpt = window.title())
805 {
806 title = std::move(*titleOpt);
807 if (auto classNameOpt = window.classname())
808 {
809 className = std::move(*classNameOpt);
810 if (const auto fileOpt = window.file())
811 {
812 fileName = fileOpt->filename().native();
813 }
814 }
815 }
816
817 return std::format(L"{} [{}] [{}] [{}]", static_cast<void *>(window.handle()), title, className, fileName);
818 }
819 else
820 {
821 return L"0x0";
822 }
823}
824
825void TaskbarAttributeWorker::CreateAppVisibility()
826{

Callers

nothing calls this directly

Calls 4

titleMethod · 0.80
classnameMethod · 0.80
fileMethod · 0.80
handleMethod · 0.80

Tested by

no test coverage detected