This commit is contained in:
Speiger 2024-04-28 19:31:39 +02:00
parent 9d4732ea18
commit 99951a1642
4 changed files with 16 additions and 5 deletions

View File

@ -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.layout.IConstraint.Target;
import speiger.src.coreengine.rendering.newGui.layout.constraints.IConstraint.Target;
public class ConstraintContainer {
private static final int CONSTRAINT_LENGTH = 4;

View File

@ -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.newGui.layout.IConstraint.ISimpleConstraint;
import speiger.src.coreengine.rendering.newGui.layout.constraints.IConstraint.ISimpleConstraint;
public class Constraints {
public static record Pixels(float value, boolean inverted) implements ISimpleConstraint {

View File

@ -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.newGui.components.base.GuiComponent;

View File

@ -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();
}