mirror of https://github.com/bsnes-emu/bsnes.git
24 lines
399 B
C++
24 lines
399 B
C++
@interface CocoaItem : NSMenuItem {
|
|
@public
|
|
phoenix::Item* item;
|
|
}
|
|
-(id) initWith:(phoenix::Item&)item;
|
|
-(void) activate;
|
|
@end
|
|
|
|
namespace phoenix {
|
|
|
|
struct pItem : public pAction {
|
|
Item& item;
|
|
CocoaItem* cocoaItem = nullptr;
|
|
|
|
void setImage(const image& image);
|
|
void setText(string text);
|
|
|
|
pItem(Item& item) : pAction(item), item(item) {}
|
|
void constructor();
|
|
void destructor();
|
|
};
|
|
|
|
}
|