| 171 | } |
| 172 | |
| 173 | WindowRef create_window() |
| 174 | { |
| 175 | WindowSpec spec; |
| 176 | spec.contentRect(gfx::Rect(32, 32, 400, 300)); |
| 177 | spec.titled(false); |
| 178 | spec.borderless(true); |
| 179 | |
| 180 | WindowRef window = System::instance()->makeWindow(spec); |
| 181 | window->setTitle("Custom Window"); |
| 182 | window->handleHitTest = hit_test; |
| 183 | |
| 184 | return window; |
| 185 | } |
| 186 | |
| 187 | void handle_mouse_move(Window* window, const Hit hit) |
| 188 | { |
no test coverage detected