Fixes?
This commit is contained in:
parent
9d4732ea18
commit
99951a1642
|
@ -1,7 +1,7 @@
|
||||||
package speiger.src.coreengine.rendering.newGui.layout;
|
package speiger.src.coreengine.rendering.newGui.layout.constraints;
|
||||||
|
|
||||||
import speiger.src.coreengine.rendering.newGui.components.base.GuiComponent;
|
import speiger.src.coreengine.rendering.newGui.components.base.GuiComponent;
|
||||||
import speiger.src.coreengine.rendering.newGui.layout.IConstraint.Target;
|
import speiger.src.coreengine.rendering.newGui.layout.constraints.IConstraint.Target;
|
||||||
|
|
||||||
public class ConstraintContainer {
|
public class ConstraintContainer {
|
||||||
private static final int CONSTRAINT_LENGTH = 4;
|
private static final int CONSTRAINT_LENGTH = 4;
|
|
@ -1,7 +1,7 @@
|
||||||
package speiger.src.coreengine.rendering.newGui.layout;
|
package speiger.src.coreengine.rendering.newGui.layout.constraints;
|
||||||
|
|
||||||
import speiger.src.coreengine.rendering.gui.helper.box.IGuiBox;
|
import speiger.src.coreengine.rendering.gui.helper.box.IGuiBox;
|
||||||
import speiger.src.coreengine.rendering.newGui.layout.IConstraint.ISimpleConstraint;
|
import speiger.src.coreengine.rendering.newGui.layout.constraints.IConstraint.ISimpleConstraint;
|
||||||
|
|
||||||
public class Constraints {
|
public class Constraints {
|
||||||
public static record Pixels(float value, boolean inverted) implements ISimpleConstraint {
|
public static record Pixels(float value, boolean inverted) implements ISimpleConstraint {
|
|
@ -1,4 +1,4 @@
|
||||||
package speiger.src.coreengine.rendering.newGui.layout;
|
package speiger.src.coreengine.rendering.newGui.layout.constraints;
|
||||||
|
|
||||||
import speiger.src.coreengine.rendering.gui.helper.box.IGuiBox;
|
import speiger.src.coreengine.rendering.gui.helper.box.IGuiBox;
|
||||||
import speiger.src.coreengine.rendering.newGui.components.base.GuiComponent;
|
import speiger.src.coreengine.rendering.newGui.components.base.GuiComponent;
|
|
@ -0,0 +1,11 @@
|
||||||
|
package speiger.src.coreengine.rendering.newGui.layout.layouts;
|
||||||
|
|
||||||
|
import speiger.src.coreengine.rendering.newGui.components.base.GuiComponent;
|
||||||
|
|
||||||
|
public interface ILayout {
|
||||||
|
public default ILayout add(GuiComponent comp) { return add(comp, null); }
|
||||||
|
public ILayout add(GuiComponent comp, Object value);
|
||||||
|
public ILayout remove(GuiComponent comp);
|
||||||
|
|
||||||
|
public void apply();
|
||||||
|
}
|
Loading…
Reference in New Issue