mirror of https://github.com/bsnes-emu/bsnes.git
28 lines
637 B
C++
28 lines
637 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(Geometry geometry);
|
|
void setGroup(const group<RadioButton>& group);
|
|
void setText(string text);
|
|
|
|
pRadioButton(RadioButton& radioButton) : pWidget(radioButton), radioButton(radioButton) {}
|
|
void constructor();
|
|
void destructor();
|
|
};
|
|
|
|
}
|