From d08591dea709917553c0d6de024820bb29b328fb Mon Sep 17 00:00:00 2001 From: Paweł Marks Date: Tue, 3 Mar 2020 23:38:23 +0100 Subject: Platform dependent hints for renderer --- core/src/main/kotlin/pages/ContentNodes.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'core/src') diff --git a/core/src/main/kotlin/pages/ContentNodes.kt b/core/src/main/kotlin/pages/ContentNodes.kt index 096afd40..797623e1 100644 --- a/core/src/main/kotlin/pages/ContentNodes.kt +++ b/core/src/main/kotlin/pages/ContentNodes.kt @@ -113,6 +113,22 @@ data class ContentGroup( override val extras: Set ) : ContentComposite +data class PlatformHintedContent( + val inner: ContentNode, + override val platforms: Set +): ContentComposite { + override val children = listOf(inner) + + override val dci: DCI + get() = inner.dci + + override val extras: Set + get() = inner.extras + + override val style: Set