MCPcopy Index your code
hub / github.com/processing/processing / setVisible

Method setVisible

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

Source from the content-addressed store, hash-verified

683
684
685 @Override
686 public void setVisible(boolean visible) {
687 frame.setVisible(visible);
688
689 // Generally useful whenever setting the frame visible
690 if (canvas != null) {
691 //canvas.requestFocusInWindow();
692 canvas.requestFocus();
693 }
694
695 // removing per https://github.com/processing/processing/pull/3162
696 // can remove the code below once 3.0a6 is tested and behaving
697/*
698 if (visible && PApplet.platform == PConstants.LINUX) {
699 // Linux doesn't deal with insets the same way. We get fake insets
700 // earlier, and then the window manager will slap its own insets
701 // onto things once the frame is realized on the screen. Awzm.
702 if (PApplet.platform == PConstants.LINUX) {
703 Insets insets = frame.getInsets();
704 frame.setSize(Math.max(sketchWidth, MIN_WINDOW_WIDTH) +
705 insets.left + insets.right,
706 Math.max(sketchHeight, MIN_WINDOW_HEIGHT) +
707 insets.top + insets.bottom);
708 }
709 }
710*/
711 }
712
713
714 //public void placeFullScreen(boolean hideStop) {

Callers

nothing calls this directly

Calls 2

setVisibleMethod · 0.65
requestFocusMethod · 0.45

Tested by

no test coverage detected