mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
28 lines
633 B
Kotlin
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)?
|
|
)
|