WrappedKList

class WrappedKList<T>(kList: KList, wrapPointer: VoidPointer.() -> T, getPointer: T.() -> VoidPointer) : FreeMe

kotlinx-gtk

10 / 07 / 2021

Directly wraps a kList, providing direct access to functions in kList while adhering to the type of T

Constructors

WrappedKList
Link copied to clipboard
fun <T> WrappedKList(kList: KList, wrapPointer: VoidPointer.() -> T, getPointer: T.() -> VoidPointer)

Types

Companion
Link copied to clipboard
object Companion

Functions

append
Link copied to clipboard
fun append(data: T): WrappedKList<T>
concat
Link copied to clipboard
fun concat(list: WrappedKList<T>): WrappedKList<T>
copy
Link copied to clipboard
fun copy(): WrappedKList<T>
copyDeep
Link copied to clipboard
fun copyDeep(func: (T) -> T): WrappedKList<T>
deleteLink
Link copied to clipboard
fun deleteLink(link: WrappedKList<T>): WrappedKList<T>
find
Link copied to clipboard
fun find(data: T): WrappedKList<T>?
first
Link copied to clipboard
fun first(): WrappedKList<T>?
forEach
Link copied to clipboard
fun forEach(action: (T) -> Unit)
free
Link copied to clipboard
open override fun free()
free1
Link copied to clipboard
fun free1()
get
Link copied to clipboard
fun get(index: UInt): WrappedKList<T>?
getData
Link copied to clipboard
fun getData(index: UInt): T?
getIndex
Link copied to clipboard
fun getIndex(data: T): Int
getPosition
Link copied to clipboard
fun getPosition(link: WrappedKList<T>): Int
getPrev
Link copied to clipboard
fun getPrev(index: UInt): WrappedKList<T>?
insert
Link copied to clipboard
fun insert(position: Int, data: T): WrappedKList<T>
insertBefore
Link copied to clipboard
fun insertBefore(sibling: WrappedKList<T>, data: T): WrappedKList<T>
insertBeforeLink
Link copied to clipboard
fun insertBeforeLink(sibling: WrappedKList<T>, link: WrappedKList<T>): WrappedKList<T>
insertSorted
Link copied to clipboard
fun insertSorted(data: T, compare: (T?, T?) -> Int): WrappedKList<T>
last
Link copied to clipboard
fun last(): WrappedKList<T>?
prepend
Link copied to clipboard
fun prepend(data: T): WrappedKList<T>
remove
Link copied to clipboard
fun remove(data: T): WrappedKList<T>
removeAll
Link copied to clipboard
fun removeAll(data: T): WrappedKList<T>
removeLink
Link copied to clipboard
fun removeLink(link: WrappedKList<T>): WrappedKList<T>
reverse
Link copied to clipboard
fun reverse(): WrappedKList<T>
sort
Link copied to clipboard
fun sort(compare: (T?, T?) -> Int): KList

Properties

kList
Link copied to clipboard
val kList: KList
length
Link copied to clipboard
val length: UInt