mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-30 00:56:56 +13:00
Add min size comp methods
This commit is contained in:
parent
7521f08512
commit
4ee5c18960
1 changed files with 8 additions and 0 deletions
|
@ -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) {
|
public Comp<S> maxWidth(int width) {
|
||||||
return apply(struc -> struc.get().setMaxWidth(width));
|
return apply(struc -> struc.get().setMaxWidth(width));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue