summaryrefslogtreecommitdiff
path: root/control.go
diff options
context:
space:
mode:
Diffstat (limited to 'control.go')
-rw-r--r--control.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/control.go b/control.go
index ad91e9b..73c9953 100644
--- a/control.go
+++ b/control.go
@@ -94,3 +94,9 @@ func LibuiControlEnable(c uintptr) {
func LibuiControlDisable(c uintptr) {
C.uiControlDisable(touiControl(c))
}
+
+// LibuiFreeText allows implementations of Control
+// to call the libui function uiFreeText.
+func LibuiFreeText(c uintptr) {
+ C.uiFreeText((*C.char)(unsafe.Pointer(c)))
+}