Debian Codegraph @

phoenix/cocoa/widget/text-edit.hpp

raw
1 @interface CocoaTextEdit : NSScrollView <NSTextViewDelegate> {
2 @public
3 phoenix::TextEdit* textEdit;
4 NSTextView* content;
5 }
6 -(id) initWith:(phoenix::TextEdit&)textEdit;
7 -(NSTextView*) content;
8 -(void) configure;
9 -(void) textDidChange:(NSNotification*)notification;
10 @end
11
12 namespace phoenix {
13
14 struct pTextEdit : public pWidget {
15 TextEdit& textEdit;
16 CocoaTextEdit* cocoaTextEdit = nullptr;
17
18 void setCursorPosition(unsigned position);
19 void setEditable(bool editable);
20 void setFont(string font);
21 void setText(string text);
22 void setWordWrap(bool wordWrap);
23 string text();
24
25 pTextEdit(TextEdit& textEdit) : pWidget(textEdit), textEdit(textEdit) {}
26 void constructor();
27 void destructor();
28 };
29
30 }