axmol/tools/tolua++/CCMenu.pkg

39 lines
981 B
Plaintext
Raw Normal View History

enum
{
kCCMenuStateWaiting,
kCCMenuStateTrackingTouch
};
2012-02-02 14:26:38 +08:00
enum {
kCCMenuHandlerPriority = -128
2012-02-02 14:26:38 +08:00
};
class CCMenu : public CCLayerRGBA
2012-02-02 14:26:38 +08:00
{
void alignItemsVertically();
void alignItemsVerticallyWithPadding(float padding);
void alignItemsHorizontally();
void alignItemsHorizontallyWithPadding(float padding);
2012-12-10 14:28:26 +08:00
// void alignItemsInColumns(unsigned int columns, va_list args);
// void alignItemsInRows(unsigned int rows, va_list args);
2012-02-02 14:26:38 +08:00
setHandlerPriority(int newPriority);
2012-02-02 14:26:38 +08:00
void addChild(CCMenuItem* child, int zOrder = 0, int tag = -1);
void setOpacity(GLubyte opacity);
GLubyte getOpacity(void);
void setColor(ccColor3B color);
ccColor3B getColor(void);
void setOpacityModifyRGB(bool bValue);
bool isOpacityModifyRGB(void);
bool isEnabled();
void setEnabled(bool value);
static CCMenu* create();
static CCMenu* createWithItem(CCMenuItem* item);
static CCMenu* createWithArray(CCArray* pArrayOfItems);
2012-02-02 14:26:38 +08:00
};