mirror of https://github.com/bsnes-emu/bsnes.git
27 lines
580 B
C++
27 lines
580 B
C++
@interface CocoaLineEdit : NSTextField <NSTextFieldDelegate> {
|
|
@public
|
|
phoenix::LineEdit* lineEdit;
|
|
}
|
|
-(id) initWith:(phoenix::LineEdit&)lineEdit;
|
|
-(void) textDidChange:(NSNotification*)n;
|
|
-(IBAction) activate:(id)sender;
|
|
@end
|
|
|
|
namespace phoenix {
|
|
|
|
struct pLineEdit : public pWidget {
|
|
LineEdit& lineEdit;
|
|
CocoaLineEdit* cocoaLineEdit = nullptr;
|
|
|
|
Size minimumSize();
|
|
void setEditable(bool editable);
|
|
void setText(string text);
|
|
string text();
|
|
|
|
pLineEdit(LineEdit& lineEdit) : pWidget(lineEdit), lineEdit(lineEdit) {}
|
|
void constructor();
|
|
void destructor();
|
|
};
|
|
|
|
}
|