import de.unixwork.ui.ContainerUI
import de.unixwork.ui.EventHandler
import de.unixwork.ui.EventWrapper.eventHandler
+import de.unixwork.ui.ListValueConverter
+import de.unixwork.ui.ListView
import de.unixwork.ui.ToggleBuilder
import de.unixwork.ui.UiInteger
+import de.unixwork.ui.UiList
import de.unixwork.ui.UiObject
import de.unixwork.ui.UiWidget
import java.lang.foreign.MemorySegment
onChange = onChange
)
}
+
+ fun <T>listview(
+ varname: String? = null,
+ value: UiList<T>? = null,
+ fill: Boolean = false,
+ hexpand: Boolean = false,
+ vexpand: Boolean = false,
+ hfill: Boolean = false,
+ vfill: Boolean = false,
+ overrideDefaults: Boolean = false,
+ colspan: Int = -1,
+ rowspan: Int = -1,
+ name: String? = null,
+ styleClass: String? = null,
+ getvalue: ListValueConverter<T>? = null
+ ): UiWidget {
+ val list = ListView.list<T>(obj)
+ varname?.let {
+ list.varname(varname)
+ }
+ value?.let {
+ // TODO
+ }
+ if(fill) {
+ list.fill(true)
+ }
+ if(hexpand) {
+ list.hexpand(true)
+ }
+ if(vexpand) {
+ list.vexpand(true)
+ }
+ if(hfill) {
+ list.hfill(true)
+ }
+ if(vfill) {
+ list.vfill(true)
+ }
+ if(overrideDefaults) {
+ list.overrideDefaults(true)
+ }
+ if(colspan > 0) {
+ list.colspan(colspan)
+ }
+ if(rowspan > 0) {
+ list.rowspan(rowspan)
+ }
+ name?.let {
+ list.name(it)
+ }
+ styleClass?.let {
+ list.styleClass(it)
+ }
+ getvalue?.let {
+ list.getvalue(it)
+ }
+ return list.create()
+ }
}
\ No newline at end of file