2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaButton : NSButton {
|
|
|
|
@public
|
|
|
|
phoenix::Button *button;
|
|
|
|
}
|
2013-03-21 12:59:01 +00:00
|
|
|
-(id) initWith:(phoenix::Button&)button;
|
|
|
|
-(IBAction) activate:(id)sender;
|
2013-03-15 13:11:33 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
namespace phoenix {
|
|
|
|
|
|
|
|
struct pButton : public pWidget {
|
|
|
|
Button &button;
|
2013-03-21 12:59:01 +00:00
|
|
|
CocoaButton *cocoaButton = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
Size minimumSize();
|
2013-04-09 13:31:46 +00:00
|
|
|
void setGeometry(const Geometry &geometry);
|
2013-03-15 13:11:33 +00:00
|
|
|
void setImage(const image &image, Orientation orientation);
|
|
|
|
void setText(const string &text);
|
|
|
|
|
|
|
|
pButton(Button &button) : pWidget(button), button(button) {}
|
|
|
|
void constructor();
|
|
|
|
void destructor();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|