MCPcopy Create free account
hub / github.com/Card-Forge/forge / doLayout

Method doLayout

forge-gui-mobile/src/forge/screens/FScreen.java:88–98  ·  view source on GitHub ↗
(float width, float height)

Source from the content-addressed store, hash-verified

86 }
87
88 @Override
89 protected final void doLayout(float width, float height) {
90 if ((GuiBase.isAndroid() && Forge.isLandscapeMode())||(width > height)) {
91 doLandscapeLayout(width, height); //handle landscape layout special
92 } else if (header != null) {
93 header.setBounds(0, 0, width, header.getPreferredHeight());
94 doLayout(header.getHeight(), width, height);
95 } else {
96 doLayout(0, width, height);
97 }
98 }
99
100 protected abstract void doLayout(float startY, float width, float height);
101

Callers 2

doLandscapeLayoutMethod · 0.95
doLayoutMethod · 0.45

Calls 6

isAndroidMethod · 0.95
isLandscapeModeMethod · 0.95
doLandscapeLayoutMethod · 0.95
getHeightMethod · 0.65
setBoundsMethod · 0.45
getPreferredHeightMethod · 0.45

Tested by

no test coverage detected