Debian Codegraph @

hiro/cocoa/widget/line-edit.hpp

raw
1 #if defined(Hiro_LineEdit)
2
3 @interface CocoaLineEdit : NSTextField <NSTextFieldDelegate> {
4 @public
5 hiro::mLineEdit* lineEdit;
6 }
7 -(id) initWith:(hiro::mLineEdit&)lineEdit;
8 -(void) textDidChange:(NSNotification*)n;
9 -(IBAction) activate:(id)sender;
10 @end
11
12 namespace hiro {
13
14 struct pLineEdit : pWidget {
15 Declare(LineEdit, Widget)
16
17 auto minimumSize() const -> Size override;
18 auto setBackgroundColor(Color color) -> void;
19 auto setEditable(bool editable) -> void;
20 auto setForegroundColor(SystemColor color) -> void;
21 auto setForegroundColor(Color color) -> void;
22 auto setText(const string& text) -> void;
23
24 CocoaLineEdit* cocoaLineEdit = nullptr;
25 };
26
27 }
28
29 #endif