2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaCheckButton : NSButton {
|
|
|
|
@public
|
|
|
|
phoenix::CheckButton *checkButton;
|
|
|
|
}
|
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 {
|
|
|
|
CheckButton &checkButton;
|
2013-03-21 12:59:01 +00:00
|
|
|
CocoaCheckButton *cocoaCheckButton = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
bool checked();
|
|
|
|
Size minimumSize();
|
|
|
|
void setChecked(bool checked);
|
2013-04-09 13:31:46 +00:00
|
|
|
void setGeometry(const Geometry &geometry);
|
2013-03-15 13:11:33 +00:00
|
|
|
void setText(const string &text);
|
|
|
|
|
|
|
|
pCheckButton(CheckButton &checkButton) : pWidget(checkButton), checkButton(checkButton) {}
|
|
|
|
void constructor();
|
|
|
|
void destructor();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|