2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaCheckButton : NSButton {
|
|
|
|
@public
|
2013-05-02 11:25:45 +00:00
|
|
|
phoenix::CheckButton* checkButton;
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
2013-03-21 12:59:01 +00:00
|
|
|
-(id) initWith:(phoenix::CheckButton&)checkButton;
|
|
|
|
-(IBAction) activate:(id)sender;
|
2013-03-15 13:11:33 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
namespace phoenix {
|
|
|
|
|
|
|
|
struct pCheckButton : public pWidget {
|
2013-05-02 11:25:45 +00:00
|
|
|
CheckButton& checkButton;
|
|
|
|
CocoaCheckButton* cocoaCheckButton = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
bool checked();
|
|
|
|
Size minimumSize();
|
|
|
|
void setChecked(bool checked);
|
2013-07-29 09:42:45 +00:00
|
|
|
void setGeometry(Geometry geometry);
|
|
|
|
void setText(string text);
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2013-05-02 11:25:45 +00:00
|
|
|
pCheckButton(CheckButton& checkButton) : pWidget(checkButton), checkButton(checkButton) {}
|
2013-03-15 13:11:33 +00:00
|
|
|
void constructor();
|
|
|
|
void destructor();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|