mirror of https://github.com/bsnes-emu/bsnes.git
28 lines
651 B
C++
28 lines
651 B
C++
@interface CocoaRadioButton : NSButton {
|
|
@public
|
|
phoenix::RadioButton* radioButton;
|
|
}
|
|
-(id) initWith:(phoenix::RadioButton&)radioButton;
|
|
-(IBAction) activate:(id)sender;
|
|
@end
|
|
|
|
namespace phoenix {
|
|
|
|
struct pRadioButton : public pWidget {
|
|
RadioButton& radioButton;
|
|
CocoaRadioButton* cocoaRadioButton = nullptr;
|
|
|
|
bool checked();
|
|
Size minimumSize();
|
|
void setChecked();
|
|
void setGeometry(const Geometry& geometry);
|
|
void setGroup(const group<RadioButton>& group);
|
|
void setText(const string& text);
|
|
|
|
pRadioButton(RadioButton& radioButton) : pWidget(radioButton), radioButton(radioButton) {}
|
|
void constructor();
|
|
void destructor();
|
|
};
|
|
|
|
}
|