diff options
author | Paweł Marks <pmarks@virtuslab.com> | 2020-03-03 23:38:23 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-03-04 14:28:14 +0100 |
commit | d08591dea709917553c0d6de024820bb29b328fb (patch) | |
tree | 5844f98629d654ffb4fbaa0471484b149b487361 /core | |
parent | 156396f7520b3ac45e37068d6b72087008322cbe (diff) | |
download | dokka-d08591dea709917553c0d6de024820bb29b328fb.tar.gz dokka-d08591dea709917553c0d6de024820bb29b328fb.tar.bz2 dokka-d08591dea709917553c0d6de024820bb29b328fb.zip |
Platform dependent hints for renderer
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/kotlin/pages/ContentNodes.kt | 16 |
1 files changed, 16 insertions, 0 deletions
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<Extra> ) : ContentComposite +data class PlatformHintedContent( + val inner: ContentNode, + override val platforms: Set<PlatformData> +): ContentComposite { + override val children = listOf(inner) + + override val dci: DCI + get() = inner.dci + + override val extras: Set<Extra> + get() = inner.extras + + override val style: Set<Style> + get() = inner.style +} + /** All extras */ interface Extra interface Style |