| 125 | } |
| 126 | |
| 127 | void OnWindowPaint(surface_t* surface){ |
| 128 | Lemon::Graphics::DrawRect(0, window->GetSize().y - 20, window->GetSize().x, 20, 160, 160, 160, surface); |
| 129 | |
| 130 | char buf[38]; |
| 131 | sprintf(buf, "Line: %d Col: %d", textBox->cursorPos.y + 1, textBox->cursorPos.x + 1); // lines and columns don't start at 0 |
| 132 | |
| 133 | Lemon::Graphics::DrawString(buf, 4 + WINDOW_MENUBAR_HEIGHT, window->GetSize().y - 20 + 4, 0, 0, 0, surface); |
| 134 | } |
| 135 | |
| 136 | void OnWindowCmd(unsigned short cmd, Lemon::GUI::Window* win){ |
| 137 | if(cmd == TEXTEDIT_OPEN){ |
nothing calls this directly
no test coverage detected