Function Style.forState

find substyle based on widget state (e.g. focused, pressed, ...)

Style forState(
  uint state
);

const(Style) forState(
  uint state
) const;