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

Method DumpWindowSet

TranslucentTB/taskbar/taskbarattributeworker.cpp:773–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771}
772
773void TaskbarAttributeWorker::DumpWindowSet(std::wstring_view prefix, const std::unordered_set<Window> &set, bool showInfo)
774{
775 if (!set.empty())
776 {
777 std::wstring buf;
778 for (const Window window : set)
779 {
780 buf.clear();
781 if (showInfo)
782 {
783 buf += prefix;
784 buf += DumpWindow(window);
785 }
786 else
787 {
788 std::format_to(std::back_inserter(buf), L"{}{}", prefix, static_cast<void *>(window.handle()));
789 }
790 MessagePrint(spdlog::level::off, buf);
791 }
792 }
793 else
794 {
795 MessagePrint(spdlog::level::off, std::format(L"{}[none]", prefix));
796 }
797}
798
799std::wstring TaskbarAttributeWorker::DumpWindow(Window window)
800{

Callers

nothing calls this directly

Calls 1

handleMethod · 0.80

Tested by

no test coverage detected