| 134 | } |
| 135 | |
| 136 | void 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 | |
| 146 | int main(int argc, char** argv){ |
| 147 | window = new Lemon::GUI::Window("Text Editor", {512, 256}, WINDOW_FLAGS_RESIZABLE, Lemon::GUI::WindowType::GUI); |
nothing calls this directly
no test coverage detected