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

commonMain.com.bselzer.ktx.compose.ui.layout.project.Presentable.kt Maven / Gradle / Ivy

There is a newer version: 7.0.0
Show newest version
package com.bselzer.ktx.compose.ui.layout.project

import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.bselzer.ktx.compose.ui.layout.modifier.presentable.PresentableModifier

/**
 * Represents a model for creating a composable.
 */
interface Presentable : Mergeable where Model : Presentable {
    /**
     * The [Modifier]s.
     */
    val modifier: PresentableModifier // TODO should modifiers be segregated between presentable and interactable rather than just using Modifier directly?

    /**
     * Creates a localized version of this presentation.
     */
    @Composable
    fun localized(): Model // TODO add composition local usage?
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy