ui/cocoa/text.h

changeset 1164
3c037b84e6eb
parent 1102
c4883a63929b
--- a/ui/cocoa/text.h	Wed Jun 03 19:58:39 2026 +0200
+++ b/ui/cocoa/text.h	Wed Jun 03 20:19:27 2026 +0200
@@ -48,6 +48,22 @@
 char* ui_textfield_get(UiString *s);
 void ui_textfield_set(UiString *s, const char *value);
 
+
+@interface TextAreaDelegate: NSObject<NSTextViewDelegate, NSTextDelegate>
+
+@property UiObject *obj;
+@property UiVar *var;
+@property ui_callback onchange;
+@property void *onchangedata;
+@property NSString *onchange_action;
+@property ui_callback ontextchanged;
+@property void *ontextchangeddata;
+@property NSString *ontextchanged_action;
+
+- (id)init:(UiObject*)obj var:(UiVar*)var args:(UiTextAreaArgs*)args;
+
+@end
+
 @interface TextFieldDelegate : NSObject<NSTextFieldDelegate>
 
 @property UiObject *obj;

mercurial