Convenience method, should only be called by PSurface subclasses.
()
| 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 | /** |
no test coverage detected