5 #ifndef __hiviewtextedit__ 6 #define __hiviewtextedit__ 8 #include "../../iplatformtextedit.h" 12 #include <Carbon/Carbon.h> 17 class HIViewTextEdit :
public IPlatformTextEdit
20 HIViewTextEdit (HIViewRef parent, IPlatformTextEditCallback* textEdit);
21 ~HIViewTextEdit () noexcept;
23 UTF8String getText () override;
24 bool setText (const UTF8String& text) override;
25 bool updateSize () override;
27 HIViewRef getPlatformControl ()
const {
return platformControl; }
32 HIViewRef platformControl;
33 EventHandlerRef eventHandler;
34 UTF8StringBuffer text;
36 static pascal OSStatus CarbonEventsTextControlProc (EventHandlerCallRef inHandlerCallRef, EventRef inEvent,
void *inUserData);
43 #endif // __hiviewtextedit__ Definition: customcontrols.cpp:8