Interface SyLayoutContextType
- All Superinterfaces:
SyThemeContextType
The context of a layout operation.
-
Method Summary
Modifier and TypeMethodDescriptiondefault SyConstraintsderiveThemeConstraints(SyConstraints constraints, SyComponentReadableType component) Derive size constraints based on the current theme, if any exist.Methods inherited from interface SyThemeContextType
fonts, services, textSelection
-
Method Details
-
themeCurrent
SyThemeType themeCurrent()- Returns:
- A reference to the current theme
-
deriveThemeConstraints
default SyConstraints deriveThemeConstraints(SyConstraints constraints, SyComponentReadableType component) Derive size constraints based on the current theme, if any exist.- Parameters:
constraints- The initial constraintscomponent- The component- Returns:
- The possibly-limited constraints
-