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

Method setVisible

core/src/processing/awt/PSurfaceAWT.java:592–618  ·  view source on GitHub ↗
(boolean visible)

Source from the content-addressed store, hash-verified

590
591
592 @Override
593 public void setVisible(boolean visible) {
594 frame.setVisible(visible);
595
596 // Generally useful whenever setting the frame visible
597 if (canvas != null) {
598 //canvas.requestFocusInWindow();
599 canvas.requestFocus();
600 }
601
602 // removing per https://github.com/processing/processing/pull/3162
603 // can remove the code below once 3.0a6 is tested and behaving
604/*
605 if (visible && PApplet.platform == PConstants.LINUX) {
606 // Linux doesn't deal with insets the same way. We get fake insets
607 // earlier, and then the window manager will slap its own insets
608 // onto things once the frame is realized on the screen. Awzm.
609 if (PApplet.platform == PConstants.LINUX) {
610 Insets insets = frame.getInsets();
611 frame.setSize(Math.max(sketchWidth, MIN_WINDOW_WIDTH) +
612 insets.left + insets.right,
613 Math.max(sketchHeight, MIN_WINDOW_HEIGHT) +
614 insets.top + insets.bottom);
615 }
616 }
617*/
618 }
619
620
621 //public void placeFullScreen(boolean hideStop) {

Callers

nothing calls this directly

Calls 2

setVisibleMethod · 0.65
requestFocusMethod · 0.45

Tested by

no test coverage detected