core / org.pinelang.core / PineObject
PineObject¶
abstract class PineObject
Constructors¶
Name | Summary |
---|---|
<init> | PineObject(id: Int = -1, name: String ? = null) |
Properties¶
Name | Summary |
---|---|
callables | val callables: MutableList < PineCallable <*>> |
children | val children: ChildrenListPineProp |
id | val id: Int |
name | var name: String ? |
props | val props: MutableList < PineProp <*>> |
signals | val signals: MutableList < PineSignal > |
slots | val slots: MutableList < PineConnection > |
Functions¶
Name | Summary |
---|---|
connect | fun connect(signal: String , slot: () -> Unit ): Boolean |
disconnect | fun disconnect(signal: String , slot: () -> Unit ): Boolean |
dispose | fun dispose(): Unit |
emit | fun emit(signal: String ): Unit |
emitMount | fun emitMount(): Unit |
emitUnmount | fun emitUnmount(): Unit |
getMeta | abstract fun getMeta(): PineMetaObject |
getProp | fun getProp(name: String ): PineProp <*> |
makeCallable | fun makeCallable(name: String , lambda: () -> Unit ): PineExpr < Unit > fun <T> makeCallable(returnType: PineType , name: String , lambda: () -> T): PineExpr <T> |
makeSignal | fun makeSignal(name: String ): PineSignal |
toString | open fun toString(): String |
Companion Object Properties¶
Name | Summary |
---|---|
INVALID_ID | const val INVALID_ID: Int |
SIG_MOUNT | const val SIG_MOUNT: String |
SIG_UNMOUNT | const val SIG_UNMOUNT: String |
Extension Functions¶
Name | Summary |
---|---|
boolProp | fun PineObject .boolProp(kProp: KProperty < Boolean >, initialValue: Boolean = false): PineProp < Boolean > |
doubleProp | fun PineObject .doubleProp(kProp: KProperty < Double >, initialValue: Double = 0.0): PineProp < Double > |
intProp | fun PineObject .intProp(kProp: KProperty < Int >, initialValue: Int = 0): PineProp < Int > |
registerProp | fun <T> PineObject .registerProp(prop: PineProp <T>): PineProp <T> |
stringProp | fun PineObject .stringProp(kProp: KProperty < String >, initialValue: String = ""): PineProp < String > |
Inheritors¶
Name | Summary |
---|---|
Item | class Item : PineObject |