mirror of https://github.com/bsnes-emu/bsnes.git
27 lines
599 B
C++
27 lines
599 B
C++
@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 = nullptr;
|
|
|
|
bool checked();
|
|
Size minimumSize();
|
|
void setChecked(bool checked);
|
|
void setGeometry(Geometry geometry);
|
|
void setText(string text);
|
|
|
|
pCheckButton(CheckButton& checkButton) : pWidget(checkButton), checkButton(checkButton) {}
|
|
void constructor();
|
|
void destructor();
|
|
};
|
|
|
|
}
|