# Interface SyLayoutContextType

All Superinterfaces:
  `SyThemeContextType`

public interface SyLayoutContextType extends SyThemeContextType
The context of a layout operation.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `default SyConstraints`
  `deriveThemeConstraints(SyConstraints constraints, SyComponentReadableType component)`
  Derive size constraints based on the current theme, if any exist.
  `SyThemeType`
  `themeCurrent()`

  ### 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 constraints
      `component` - The component
    Returns:
      The possibly-limited constraints