MCPcopy Create free account
hub / github.com/HumbleUI/JWM / accept

Method accept

examples/empty/java/Example.java:43–55  ·  view source on GitHub ↗
(Event e)

Source from the content-addressed store, hash-verified

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(() -> {

Callers

nothing calls this directly

Calls 6

terminateMethod · 0.95
paintMethod · 0.95
sizeMethod · 0.80
getWidthMethod · 0.65
getHeightMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected