Add min size comp methods

This commit is contained in:
crschnick 2024-01-05 08:01:46 +00:00
parent 7521f08512
commit 4ee5c18960

View file

@ -92,6 +92,14 @@ public abstract class Comp<S extends CompStructure<?>> {
}));
}
public Comp<S> minWidth(double width) {
return apply(struc -> struc.get().setMinWidth(width));
}
public Comp<S> minHeight(double width) {
return apply(struc -> struc.get().setMinHeight(width));
}
public Comp<S> maxWidth(int width) {
return apply(struc -> struc.get().setMaxWidth(width));
}