All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.svenjacobs.reveal.RevealCanvasState.kt Maven / Gradle / Ivy

package com.svenjacobs.reveal

import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.unit.DpOffset

/**
 * @see rememberRevealCanvasState
 */
@Stable
public class RevealCanvasState internal constructor() {

	internal var overlayContent: (@Composable () -> Unit)? by mutableStateOf(null)
	internal var revealableOffset: DpOffset by mutableStateOf(DpOffset.Zero)
}

@Composable
public fun rememberRevealCanvasState(): RevealCanvasState = remember { RevealCanvasState() }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy