ASPiK SDK
uitextedit.h
1 // This file is part of VSTGUI. It is subject to the license terms
2 // in the LICENSE file found in the top-level directory of this
3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4 
5 #ifndef __uitextfield__
6 #define __uitextfield__
7 
8 #include "../../iplatformtextedit.h"
9 
10 #if TARGET_OS_IPHONE
11 
12 #ifdef __OBJC__
13 @class UIView;
14 @class UITextField;
15 @class VSTGUI_UITextFieldDelegate;
16 #else
17 struct UIView;
18 struct UITextField;
19 struct VSTGUI_UITextFieldDelegate;
20 #endif
21 
22 namespace VSTGUI {
23 
24 class UITextEdit : public IPlatformTextEdit
25 {
26 public:
27  UITextEdit (UIView* parent, IPlatformTextEditCallback* textEdit);
28  ~UITextEdit ();
29 
30  UTF8String getText () override;
31  bool setText (const UTF8String& text) override;
32  bool updateSize () override;
33 
34 protected:
35  UITextField* platformControl;
36  VSTGUI_UITextFieldDelegate* delegate;
37  UIView* parent;
38 };
39 
40 } // namespace
41 
42 #endif // TARGET_OS_IPHONE
43 
44 #endif // __uitextfield__
Definition: customcontrols.cpp:8