cocos2d-x  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
UIZoomButton Class Reference

#include <CompatibleClasses.h>

Inheritance diagram for UIZoomButton:
UIButton UIWidget CCObject CCCopying

Static Public Member Functions

static UIZoomButtoncreate ()
- Static Public Member Functions inherited from UIButton
static UIButtoncreate ()
 Allocates and initializes. More...
 
var create ()
 Allocates and initializes. More...
 
- Static Public Member Functions inherited from UIWidget
static UIWidgetcreate ()
 Allocates and initializes a widget. More...
 

Protected Member Functions

virtual bool init ()
- Protected Member Functions inherited from UIButton
virtual void initRenderer ()
virtual void onPressStateChangedToNormal ()
virtual void onPressStateChangedToPressed ()
virtual void onPressStateChangedToDisabled ()
virtual void onSizeChanged ()
void normalTextureScaleChangedWithSize ()
void pressedTextureScaleChangedWithSize ()
void disabledTextureScaleChangedWithSize ()
virtual UIWidgetcreateCloneInstance ()
virtual void copySpecialProperties (UIWidget *model)
var copySpecialProperties ( var model)
- Protected Member Functions inherited from UIWidget
void pushDownEvent ()
void moveEvent ()
void releaseUpEvent ()
void cancelUpEvent ()
void longClickEvent ()
void updateAnchorPoint ()
var updateAnchorPoint ()
void copyProperties (UIWidget *model)
virtual void copyClonedWidgetChildren (UIWidget *model)

Additional Inherited Members

- Public Member Functions inherited from UIButton
 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 CCSizegetContentSize () const
 Gets the content size of widget. More...
 
virtual CCNodegetVirtualRenderer ()
 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 ccColor3BgetTitleColor () 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)
- Public Attributes inherited from CCObject
unsigned int m_uID
int m_nLuaID
- Protected Attributes inherited from UIButton
CCNodem_pButtonNormalRenderer
CCNodem_pButtonClickedRenderer
CCNodem_pButtonDisableRenderer
var m_pButtonDisableRenderer
CCLabelTTFm_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

Member Function Documentation

static UIZoomButton* create ( void  )
inlinestatic
virtual bool init ( void  )
inlineprotectedvirtual

Reimplemented from UIButton.


The documentation for this class was generated from the following file: