elect
07/10/2018, 9:49 AMref(value)
instead ref.set(value)
gildor
07/10/2018, 9:57 AMlouiscad
07/10/2018, 10:29 AMvar myProperty by ref; myProperty = value
, works on local val
tooelect
07/10/2018, 11:29 AMget()
or invoke()
elect
07/10/2018, 11:29 AMgildor
07/10/2018, 11:33 AMref()
and ref(value)
look to cryptic and not clear for me, not like getter and setter, I would try to use local delegate instead, or just get and set methodselect
07/10/2018, 9:31 PMval a = ref()
ref(b)
elect
07/10/2018, 9:52 PMgetValue()
and setValue()
louiscad
07/10/2018, 10:42 PMoperator fun
gildor
07/11/2018, 12:30 AMelect
07/11/2018, 8:29 AMclass
instantiation, am I right?elect
07/11/2018, 8:29 AMgildor
07/11/2018, 8:32 AMlouiscad
07/11/2018, 8:36 AMgildor
07/11/2018, 8:39 AMgildor
07/11/2018, 8:40 AMgildor
07/11/2018, 8:50 AMelect
07/11/2018, 9:35 AMelect
07/11/2018, 9:37 AMInt
, Float
, Double
and Long
. I also have to figure it out how to deal with that..gildor
07/11/2018, 9:46 AMelect
07/11/2018, 10:25 AMinputScalar
can be called by inputInt/Float
, https://github.com/kotlin-graphics/imgui/blob/master/src/main/kotlin/imgui/imgui/widgets%20inputKeyboard.kt#L145elect
07/11/2018, 10:26 AMdataTypeApplyOpFromText
, https://github.com/kotlin-graphics/imgui/blob/master/src/main/kotlin/imgui/static%20funcs.kt#L595elect
07/11/2018, 10:27 AMdataType
will cast the value accordingly, perform the operation and return the resultelect
07/11/2018, 10:27 AMinline operator fun <R> KMutableProperty0<R>.setValue(host: Any?, property: KProperty<*>, value: R) = set(value)
inline operator fun <R> KMutableProperty0<R>.getValue(host: Any?, property: KProperty<*>): R = get()
elect
07/11/2018, 10:27 AMelect
07/11/2018, 10:28 AMKMutableProperty0<Char>
and var c by ref
and then c += 'a'
this is not working, incremental operation is not supportedelect
07/11/2018, 10:28 AMgildor
07/11/2018, 10:29 AMAny
instead of particular classelect
07/11/2018, 10:32 AMgildor
07/11/2018, 10:33 AMdataPtr: KMutableProperty0<*>
gildor
07/11/2018, 10:33 AMgildor
07/11/2018, 10:33 AMgildor
07/11/2018, 10:38 AMAugmented assignment and increment are not supported for local delegated properties and inline properties
gildor
07/11/2018, 10:38 AMelect
07/11/2018, 10:38 AMelect
07/11/2018, 10:38 AMgildor
07/11/2018, 10:38 AMgildor
07/11/2018, 10:39 AMelect
07/11/2018, 10:39 AMgildor
07/11/2018, 10:43 AMelect
07/11/2018, 10:48 AMelect
07/11/2018, 11:05 AMfun collapsingHeader(label: String, openPtr: KMutableProperty0<Boolean>?, flags_: TreeNodeFlags = 0): Boolean {
var open by openPtr
In this case I would like to by?
elect
07/11/2018, 11:05 AMBoolean
gildor
07/11/2018, 1:18 PM