diff --git a/gradle.properties b/gradle.properties index 687f35c3..26cc7fdf 100644 --- a/gradle.properties +++ b/gradle.properties @@ -40,7 +40,7 @@ SONATYPE_HOST=DEFAULT RELEASE_SIGNING_ENABLED=true GROUP=dev.chrisbanes.haze -VERSION_NAME=0.9.0-SNAPSHOT +VERSION_NAME=0.9.0-alpha01 POM_DESCRIPTION=Haze POM_URL=https://github.com/chrisbanes/haze/ diff --git a/haze-materials/api/0.9.0-alpha01.txt b/haze-materials/api/0.9.0-alpha01.txt new file mode 100644 index 00000000..3b15c6b0 --- /dev/null +++ b/haze-materials/api/0.9.0-alpha01.txt @@ -0,0 +1,17 @@ +// Signature format: 4.0 +package dev.chrisbanes.haze.materials { + + @kotlin.RequiresOptIn(message="Experimental Haze Materials API", level=kotlin.RequiresOptIn.Level.WARNING) public @interface ExperimentalHazeMaterialsApi { + } + + public final class HazeMaterials { + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle regular(optional long containerColor); + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle thick(optional long containerColor); + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle thin(optional long containerColor); + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle ultraThick(optional long containerColor); + method @androidx.compose.runtime.Composable @androidx.compose.runtime.ReadOnlyComposable @dev.chrisbanes.haze.materials.ExperimentalHazeMaterialsApi public dev.chrisbanes.haze.HazeStyle ultraThin(optional long containerColor); + field public static final dev.chrisbanes.haze.materials.HazeMaterials INSTANCE; + } + +} + diff --git a/haze/api/0.9.0-alpha01.txt b/haze/api/0.9.0-alpha01.txt new file mode 100644 index 00000000..ac339a7f --- /dev/null +++ b/haze/api/0.9.0-alpha01.txt @@ -0,0 +1,63 @@ +// Signature format: 4.0 +package dev.chrisbanes.haze { + + @androidx.compose.runtime.Stable public final class HazeArea { + ctor public HazeArea(optional long size, optional long positionOnScreen, optional androidx.compose.ui.graphics.Shape shape, optional dev.chrisbanes.haze.HazeStyle style); + method public long getPositionOnScreen(); + method public androidx.compose.ui.graphics.Shape getShape(); + method public long getSize(); + method public dev.chrisbanes.haze.HazeStyle getStyle(); + method public boolean isValid(); + property public final boolean isValid; + property public final long positionOnScreen; + property public final androidx.compose.ui.graphics.Shape shape; + property public final long size; + property public final dev.chrisbanes.haze.HazeStyle style; + } + + public final class HazeChildKt { + method public static androidx.compose.ui.Modifier hazeChild(androidx.compose.ui.Modifier, dev.chrisbanes.haze.HazeState state, optional androidx.compose.ui.graphics.Shape shape, optional dev.chrisbanes.haze.HazeStyle style); + } + + public final class HazeDefaults { + method public float getBlurRadius(); + method public dev.chrisbanes.haze.HazeStyle style(optional long backgroundColor, optional long tint, optional float blurRadius, optional float noiseFactor); + method public long tint(long color); + property public final float blurRadius; + field public static final dev.chrisbanes.haze.HazeDefaults INSTANCE; + field public static final float noiseFactor = 0.15f; + field public static final float tintAlpha = 0.7f; + } + + public final class HazeKt { + method public static androidx.compose.ui.Modifier haze(androidx.compose.ui.Modifier, dev.chrisbanes.haze.HazeState state, optional dev.chrisbanes.haze.HazeStyle style); + } + + @androidx.compose.runtime.Stable public final class HazeState { + ctor public HazeState(); + method public dev.chrisbanes.haze.HazeArea getContent(); + method public androidx.compose.ui.graphics.layer.GraphicsLayer? getContentLayer(); + property public final dev.chrisbanes.haze.HazeArea content; + property public final androidx.compose.ui.graphics.layer.GraphicsLayer? contentLayer; + } + + @androidx.compose.runtime.Immutable @dev.drewhamilton.poko.Poko public final class HazeStyle { + ctor public HazeStyle(optional long tint, optional long backgroundColor, optional float blurRadius, optional float noiseFactor); + method public long getBackgroundColor(); + method public float getBlurRadius(); + method public float getNoiseFactor(); + method public long getTint(); + property public final long backgroundColor; + property public final float blurRadius; + property public final float noiseFactor; + property public final long tint; + field public static final dev.chrisbanes.haze.HazeStyle.Companion Companion; + } + + public static final class HazeStyle.Companion { + method public dev.chrisbanes.haze.HazeStyle getUnspecified(); + property public final dev.chrisbanes.haze.HazeStyle Unspecified; + } + +} +