Skip to content

Commit

Permalink
Privatize modelEntry
Browse files Browse the repository at this point in the history
Refer to issue: msink#8

Co-authored-by: Mervyn McCreight <[email protected]>
  • Loading branch information
andreas-mausch and mervyn-mccreight committed Nov 12, 2018
1 parent 34e3921 commit 05d1506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libui/src/nativeMain/kotlin/widgets.kt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ inline fun Container.searchfield(
.apply(init))

/** Wrapper class for [uiEntry] - a simple single line text entry widget */
open class TextField internal constructor(alloc: CPointer<uiEntry>?, val modelEntry: ModelEntry<String>) : Control<uiEntry>(alloc) {
open class TextField internal constructor(alloc: CPointer<uiEntry>?, private val modelEntry: ModelEntry<String>) : Control<uiEntry>(alloc) {

constructor(modelEntry: ModelEntry<String>) : this(uiNewEntry(), modelEntry)

Expand Down Expand Up @@ -135,7 +135,7 @@ inline fun Container.textarea(
.apply(init))

/** Wrapper class for [uiMultilineEntry] - a multiline plain text editing widget */
class TextArea(val modelEntry: ModelEntry<String>, wrap: Boolean = true) : Control<uiMultilineEntry>(
class TextArea(private val modelEntry: ModelEntry<String>, wrap: Boolean = true) : Control<uiMultilineEntry>(
if (wrap) uiNewMultilineEntry() else uiNewNonWrappingMultilineEntry()) {

/** The current text in the area. */
Expand Down

0 comments on commit 05d1506

Please sign in to comment.