All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.soywiz.korui.UiScrollPanel.kt Maven / Gradle / Ivy

There is a newer version: 4.0.10
Show newest version
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