(Event e)
| 41 | } |
| 42 | |
| 43 | @Override |
| 44 | public void accept(Event e) { |
| 45 | if (e instanceof EventWindowClose) { |
| 46 | if (App._windows.size() == 0) |
| 47 | App.terminate(); |
| 48 | return; |
| 49 | } else if (e instanceof EventFrameSkija ee) { |
| 50 | Surface s = ee.getSurface(); |
| 51 | paint(s.getCanvas(), s.getWidth(), s.getHeight()); |
| 52 | } else if (e instanceof EventWindowCloseRequest) { |
| 53 | window.close(); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | public static void main(String[] args) { |
| 58 | App.start(() -> { |