Package org.jetbrains.jewel.foundation
Class DisabledAppearanceValues
-
- All Implemented Interfaces:
public final class DisabledAppearanceValuesAn immutable value holder for the parameters required to create a "gray filter" effect, typically used to render UI elements in a disabled state.
This class encapsulates the
brightness,contrast, andalphavalues needed by the Modifier.disabledAppearance composable. By marking it as@Immutable, we signal to the Compose compiler that it can safely skip recompositions of components that consume this class if its instance has not changed.The parameter ranges are validated upon instantiation to prevent invalid values.
-
-
Constructor Summary
Constructors Constructor Description DisabledAppearanceValues(Integer brightness, Integer contrast, Integer alpha)
-
Method Summary
Modifier and Type Method Description final IntegergetBrightness()The brightness adjustment, must be in the range -100, 100. final IntegergetContrast()The contrast adjustment, must be in the range -100, 100. final IntegergetAlpha()The alpha multiplier, must be in the range 0, 100. Booleanequals(Object other)IntegerhashCode()StringtoString()-
-
Method Detail
-
getBrightness
final Integer getBrightness()
The brightness adjustment, must be in the range -100, 100.
-
getContrast
final Integer getContrast()
The contrast adjustment, must be in the range -100, 100.
-
-
-
-