MCPcopy Index your code
hub / github.com/benfry/processing4 / hideMenuBar

Method hideMenuBar

core/src/processing/core/PApplet.java:10227–10239  ·  view source on GitHub ↗

Convenience method, should only be called by PSurface subclasses.

()

Source from the content-addressed store, hash-verified

10225
10226 /** Convenience method, should only be called by PSurface subclasses. */
10227 static public void hideMenuBar() {
10228 if (platform == MACOS) {
10229 // Call some native code to remove the menu bar on macOS. Not necessary
10230 // on Linux and Windows, who are happy to make full screen windows.
10231 try {
10232 final String td = "processing.core.ThinkDifferent";
10233 final Class<?> thinkDifferent = PApplet.class.getClassLoader().loadClass(td);
10234 thinkDifferent.getMethod("hideMenuBar").invoke(null);
10235 } catch (Exception e) {
10236 e.printStackTrace();
10237 }
10238 }
10239 }
10240
10241
10242 /**

Callers 3

initWindowMethod · 0.95
placePresentMethod · 0.95
setFullFrameMethod · 0.95

Calls 4

loadClassMethod · 0.80
getClassLoaderMethod · 0.80
getMethodMethod · 0.80
printStackTraceMethod · 0.45

Tested by

no test coverage detected