MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / AddWindow

Function AddWindow

Applications/Shell/main.cpp:81–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79
80bool paintTaskbar = true;
81void AddWindow(ShellWindow* win){
82 WindowButton* btn = new WindowButton(win, {0, 0, 0, 0} /* The LayoutContainer will handle bounds for us*/);
83 taskbarWindows.insert(std::pair<ShellWindow*, WindowButton*>(win, btn));
84
85 taskbarWindowsContainer->AddWidget(btn);
86}
87
88void RemoveWindow(ShellWindow* win){
89 WindowButton* btn = taskbarWindows[win];

Callers 2

PollCommandsMethod · 0.70
PollMethod · 0.50

Calls 2

insertMethod · 0.45
AddWidgetMethod · 0.45

Tested by

no test coverage detected