Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
annotation class PluginCupAPI
Link copied to clipboard
Link copied to clipboard
class PresentationConfig(val presentation: PresentationContent, val backgroundColor: Color, val defaultSpecs: SlideSpecs, val plugins: List<CupPlugin>)
Link copied to clipboard
typealias PresentationContent = @Composable BoxScope.(@Composable () -> Unit) -> Unit
Link copied to clipboard
interface PresentationScope : BoxScope
Link copied to clipboard
sealed interface PresentationState
Link copied to clipboard
abstract class PresentationStateWrapper(val originalState: PresentationState) : PresentationState
Link copied to clipboard
data class Slide : SlideGroup
Link copied to clipboard
typealias SlideContent = @Composable ColumnScope.(Int) -> Unit
Link copied to clipboard
interface SlideGroup
Link copied to clipboard
class Slides(content: List<SlideGroup>, user: DataMap = emptyDataMap(), specs: SlideSpecBuilder = defaultSpecsBuilder) : SlideGroup
Link copied to clipboard
Link copied to clipboard
data class SlideSpecs(val size: DpSize, val startTransitions: TransitionSet, val endTransitions: TransitionSet)
Link copied to clipboard
class TransitionSet(val enter: (Boolean) -> EnterTransition, val exit: (Boolean) -> ExitTransition, val modifier: @Composable AnimatedVisibilityScope.(TransitionSet.Type) -> Modifier = { Modifier })

Holds the transitions to be applied to a Slide when entering or exiting the screen.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
expect val CupKeyEvent.key: Key
actual val CupKeyEvent.key: Key
actual val CupKeyEvent.key: Key
Link copied to clipboard
val LocalPresentationSize: ProvidableCompositionLocal<Size>
Link copied to clipboard
val LocalPresentationState: ProvidableCompositionLocal<PresentationState>
Link copied to clipboard
val SLIDE_SIZE_16_10: DpSize
Link copied to clipboard
val SLIDE_SIZE_16_9: DpSize
Link copied to clipboard
val SLIDE_SIZE_4_3: DpSize
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
expect val CupKeyEvent.type: KeyEventType
actual val CupKeyEvent.type: KeyEventType
actual val CupKeyEvent.type: KeyEventType

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
expect fun cupApplication(title: String, content: @Composable () -> Unit)
actual fun cupApplication(title: String, content: () -> Unit)
actual fun cupApplication(title: String, content: () -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Composable
fun Overview()
Link copied to clipboard
fun PreparedSlide(stepCount: Int = 1, specs: SlideSpecBuilder = defaultSpecsBuilder, user: DataMap = emptyDataMap(), prepare: @Composable PreparedSlideScope.() -> SlideContent): EagerProperty<Slide>
Link copied to clipboard
@Composable
fun Presentation(slides: SlideGroup, configuration: CupConfiguration = {}, backgroundColor: Color = Color.LightGray, presentation: PresentationContent = { it() })
Link copied to clipboard
@Composable
fun PresentationKeyHandler(getState: () -> PresentationState?): (CupKeyEvent) -> Boolean
Link copied to clipboard
@Composable
fun PresentationMainView()
Link copied to clipboard
@Composable
fun PresentationPreview(slide: Slide, step: Int = slide.lastStep, previewSize: DpSize = SLIDE_SIZE_16_9, previewScale: Float = 1.0f, content: @Composable (SlideGroup) -> Unit)
Link copied to clipboard
fun Slide(stepCount: Int = 1, specs: SlideSpecBuilder = defaultSpecsBuilder, user: DataMap = emptyDataMap(), content: SlideContent): EagerProperty<Slide>
Link copied to clipboard
@Composable
fun SlideList(visible: Boolean)
Link copied to clipboard
Link copied to clipboard
@Composable
fun WindowKeyHandlerEffect(handler: (CupKeyEvent) -> Boolean)
Link copied to clipboard
@Composable
fun withPresentationState(initial: (List<Slide>) -> Pair<Int, Int> = { 0 to 0 }, content: @Composable () -> Unit)