MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / PerformAction

Method PerformAction

plugins/base/macro-action-window.cpp:65–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65bool MacroActionWindow::PerformAction()
66{
67 auto window = GetMatchingWindow();
68 if (!window) {
69 return true;
70 }
71
72 switch (_action) {
73 case Action::SET_FOCUS_WINDOW:
74 SetFocusWindow(*window);
75 break;
76 case Action::MAXIMIZE_WINDOW:
77 MaximizeWindow(*window);
78 break;
79 case Action::MINIMIZE_WINDOW:;
80 MinimizeWindow(*window);
81 break;
82 case Action::CLOSE_WINDOW:
83 CloseWindow(*window);
84 break;
85 default:
86 break;
87 }
88
89 return true;
90}
91
92void MacroActionWindow::LogAction() const
93{

Callers

nothing calls this directly

Calls 4

SetFocusWindowFunction · 0.70
MaximizeWindowFunction · 0.70
MinimizeWindowFunction · 0.70
CloseWindowFunction · 0.70

Tested by

no test coverage detected