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

Function OnWindowCmd

Applications/TextEdit/main.cpp:136–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void OnWindowCmd(unsigned short cmd, Lemon::GUI::Window* win){
137 if(cmd == TEXTEDIT_OPEN){
138 OpenFile();
139 } else if(cmd == TEXTEDIT_SAVEAS){
140 SaveFileAs();
141 } else if(cmd == TEXTEDIT_SAVE){
142 SaveOpenFile();
143 }
144}
145
146int main(int argc, char** argv){
147 window = new Lemon::GUI::Window("Text Editor", {512, 256}, WINDOW_FLAGS_RESIZABLE, Lemon::GUI::WindowType::GUI);

Callers

nothing calls this directly

Calls 3

OpenFileFunction · 0.85
SaveFileAsFunction · 0.85
SaveOpenFileFunction · 0.85

Tested by

no test coverage detected