2023-08-22 15:36:40 +03:00

28 lines
633 B
Kotlin

package org.futo.inputmethod.latin.uix
import androidx.annotation.DrawableRes
import androidx.compose.material3.ColorScheme
import androidx.compose.runtime.Composable
interface KeyboardManagerForAction {
fun triggerSystemVoiceInput()
fun updateTheme(newTheme: ColorScheme)
}
interface ActionWindow {
@Composable
fun windowName(): String
@Composable
fun WindowContents(manager: KeyboardManagerForAction)
}
data class Action(
@DrawableRes val icon: Int,
val name: String, // TODO: @StringRes Int
val windowImpl: ActionWindow?,
val simplePressImpl: ((KeyboardManagerForAction) -> Unit)?
)