|
| | UIButton () |
| virtual | ~UIButton () |
| | Default destructor. More...
|
| |
| void | loadTextures (const char *normal, const char *selected, const char *disabled, TextureResType texType=UI_TEX_TYPE_LOCAL) |
| | Load textures for button. More...
|
| |
| void | loadTextureNormal (const char *normal, TextureResType texType=UI_TEX_TYPE_LOCAL) |
| | Load normal state texture for button. More...
|
| |
| void | loadTexturePressed (const char *selected, TextureResType texType=UI_TEX_TYPE_LOCAL) |
| | Load selected state texture for button. More...
|
| |
| void | loadTextureDisabled (const char *disabled, TextureResType texType=UI_TEX_TYPE_LOCAL) |
| | Load dark state texture for button. More...
|
| |
| void | setCapInsets (const CCRect &capInsets) |
| | Sets capinsets for button, if button is using scale9 renderer. More...
|
| |
| void | setCapInsetsNormalRenderer (const CCRect &capInsets) |
| | Sets capinsets for button, if button is using scale9 renderer. More...
|
| |
| void | setCapInsetsPressedRenderer (const CCRect &capInsets) |
| | Sets capinsets for button, if button is using scale9 renderer. More...
|
| |
| void | setCapInsetsDisabledRenderer (const CCRect &capInsets) |
| | Sets capinsets for button, if button is using scale9 renderer. More...
|
| |
| virtual void | setAnchorPoint (const CCPoint &pt) |
| | Sets the anchor point in percent. More...
|
| |
| virtual void | setScale9Enabled (bool able) |
| | Sets if button is using scale9 renderer. More...
|
| |
| virtual void | setFlipX (bool flipX) |
| | Sets whether the widget should be flipped horizontally or not. More...
|
| |
| virtual void | setFlipY (bool flipY) |
| | Sets whether the widget should be flipped vertically or not. More...
|
| |
| virtual bool | isFlipX () |
| | Returns the flag which indicates whether the widget is flipped horizontally or not. More...
|
| |
| virtual bool | isFlipY () |
| | Return the flag which indicates whether the widget is flipped vertically or not. More...
|
| |
| void | setPressedActionEnabled (bool enabled) |
| | Changes if button can be clicked zoom effect. More...
|
| |
| var | setPressedActionEnabled ( var enabled) |
| | Changes if button can be clicked zoom effect. More...
|
| |
| virtual void | ignoreContentAdaptWithSize (bool ignore) |
| | Ignore the widget size. More...
|
| |
| virtual const CCSize & | getContentSize () const |
| | Gets the content size of widget. More...
|
| |
| virtual CCNode * | getVirtualRenderer () |
| | Gets the Virtual Renderer of widget. More...
|
| |
| virtual void | setColor (const ccColor3B &color) |
| | Sets color to widget. More...
|
| |
| virtual const char * | getDescription () const |
| | Returns the "class name" of widget. More...
|
| |
| void | setTitleText (const char *text) |
| const char * | getTitleText () const |
| void | setTitleColor (const ccColor3B &color) |
| const ccColor3B & | getTitleColor () const |
| void | setTitleFontSize (float size) |
| var | setTitleFontSize ( var size) |
| float | getTitleFontSize () const |
| void | setTitleFontName (const char *fontName) |
| const char * | getTitleFontName () const |
| void | setText (const char *text) |
| | These methods will be removed. More...
|
| |
| void | setTextColor (int r, int g, int b) |
| var | setTextColor ( var r, var g, var b) |
| void | setFontSize (int size) |
| void | setFontName (const char *fontName) |
| void | setTextures (const char *normal, const char *selected, const char *disabled, TextureResType texType=UI_TEX_TYPE_LOCAL) |
| void | setNormalTexture (const char *normal, TextureResType texType=UI_TEX_TYPE_LOCAL) |
| void | setPressedTexture (const char *selected, TextureResType texType=UI_TEX_TYPE_LOCAL) |
| void | setDisabledTexture (const char *disabled, TextureResType texType=UI_TEX_TYPE_LOCAL) |
| void | setScale9Enable (bool able) |
| void | setScale9Size (const CCSize &size) |
| unsigned int | m_uID |
| int | m_nLuaID |
| CCNode * | m_pButtonNormalRenderer |
| CCNode * | m_pButtonClickedRenderer |
| CCNode * | m_pButtonDisableRenderer |
| var | m_pButtonDisableRenderer |
| CCLabelTTF * | m_pTitleRenderer |
| std::string | m_strNormalFileName |
| std::string | m_strClickedFileName |
| std::string | m_strDisabledFileName |
| var | m_strDisabledFileName |
| bool | m_bPrevIgnoreSize |
| bool | m_bScale9Enabled |
| CCRect | m_capInsetsNormal |
| CCRect | m_capInsetsPressed |
| CCRect | m_capInsetsDisabled |
| TextureResType | m_eNormalTexType |
| TextureResType | m_ePressedTexType |
| TextureResType | m_eDisabledTexType |
| var | m_eDisabledTexType |
| CCSize | m_normalTextureSize |
| CCSize | m_pressedTextureSize |
| CCSize | m_disabledTextureSize |
| bool | m_bPressedActionEnabled |
| ccColor3B | m_titleColor |