Interface LayoutContext
public interface LayoutContext
-
Method Summary
Modifier and TypeMethodDescriptionaddConstraint
(@Nullable String comment, Constraint constraint) Adds a new untracked constraint to the system.default void
addConstraints
(@Nullable String comment, Constraint... constraints) default boolean
@Nullable ExprRect
The space made available to the element by the parent.context()
default Variable
default VarRect
void
-
Method Details
-
context
Context context() -
ffiLayoutContext
FFILayoutContext ffiLayoutContext() -
newVariable
-
newVarRect
-
addConstraint
ConstraintId addConstraint(@Nullable @Nullable String comment, Constraint constraint) throws LayoutException Adds a new untracked constraint to the system.- Throws:
LayoutException
-
removeConstraint
- Throws:
LayoutException
-
addConstraints
default void addConstraints(@Nullable @Nullable String comment, Constraint... constraints) throws LayoutException - Throws:
LayoutException
-
available
The space made available to the element by the parent. -
assertions
default boolean assertions()
-