commonMain.com.soywiz.korui.UiScrollPanel.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of korgw Show documentation
Show all versions of korgw Show documentation
Portable UI with accelerated graphics support for Kotlin
package com.soywiz.korui
import com.soywiz.korui.native.NativeUiFactory
open class UiScrollPanel(app: UiApplication, val panel: NativeUiFactory.NativeScrollPanel = app.factory.createScrollPanel()) : UiContainer(app, panel) {
var xbar by panel::xbar
var ybar by panel::ybar
}
inline fun UiContainer.scrollPanel(xbar: Boolean? = null, ybar: Boolean? = null, block: UiScrollPanel.() -> Unit = {}): UiScrollPanel {
return UiScrollPanel(app)
.also { it.parent = this }
.also { it.xbar = xbar }
.also { it.ybar = ybar }
.also(block)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy