bsnes/higan/phoenix/cocoa/widget/check-button.hpp

26 lines
559 B
C++
Raw Normal View History

@interface CocoaCheckButton : NSButton {
@public
phoenix::CheckButton *checkButton;
}
-(id) initWith :(phoenix::CheckButton&)checkButton;
-(IBAction) activate :(id)sender;
@end
namespace phoenix {
struct pCheckButton : public pWidget {
CheckButton &checkButton;
CocoaCheckButton *cocoaCheckButton;
bool checked();
Size minimumSize();
void setChecked(bool checked);
void setText(const string &text);
pCheckButton(CheckButton &checkButton) : pWidget(checkButton), checkButton(checkButton) {}
void constructor();
void destructor();
};
}