2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaButton : NSButton {
|
|
|
|
@public
|
2013-05-02 11:25:45 +00:00
|
|
|
phoenix::Button* button;
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
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 {
|
2013-05-02 11:25:45 +00:00
|
|
|
Button& button;
|
|
|
|
CocoaButton* cocoaButton = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
Size minimumSize();
|
2013-07-29 09:42:45 +00:00
|
|
|
void setGeometry(Geometry geometry);
|
2013-05-02 11:25:45 +00:00
|
|
|
void setImage(const image& image, Orientation orientation);
|
2013-07-29 09:42:45 +00:00
|
|
|
void setText(string text);
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2013-05-02 11:25:45 +00:00
|
|
|
pButton(Button& button) : pWidget(button), button(button) {}
|
2013-03-15 13:11:33 +00:00
|
|
|
void constructor();
|
|
|
|
void destructor();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|