MCPcopy
hub / github.com/libgdx/libgdx / layout

Method layout

gdx/src/com/badlogic/gdx/scenes/scene2d/ui/Stack.java:100–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98 }
99
100 public void layout () {
101 if (sizeInvalid) computeSize();
102 float width = getWidth(), height = getHeight();
103 Array<Actor> children = getChildren();
104 for (int i = 0, n = children.size; i < n; i++) {
105 Actor child = children.get(i);
106 child.setBounds(0, 0, width, height);
107 if (child instanceof Layout) ((Layout)child).validate();
108 }
109 }
110
111 public float getPrefWidth () {
112 if (sizeInvalid) computeSize();

Callers

nothing calls this directly

Calls 7

computeSizeMethod · 0.95
setBoundsMethod · 0.95
getWidthMethod · 0.65
getHeightMethod · 0.65
getMethod · 0.65
validateMethod · 0.65
getChildrenMethod · 0.45

Tested by

no test coverage detected