NS_CC_WIDGET_BEGIN ArmatureBtn::ArmatureBtn() { setThisObject(this); setCascadeOpacityEnabled(true); }
//------------------------------------------------------------------------- FKCW_UIWidget_ImageViewScale9::FKCW_UIWidget_ImageViewScale9() { setThisObject(this); setAnchorPoint(FKCW_UIWIDGET_BASIC_DEFAULT_ANCHOR_POINT); setContentSize(FKCW_UIWIDGET_BASIC_DEFAULT_CONTENT_SIZE); }
//------------------------------------------------------------------------- FKCW_UIWidget_Layout::FKCW_UIWidget_Layout() : m_pBackgroundImage(NULL) , m_pBackgroundColor(NULL) , m_pBackgroundGradient(NULL) { setThisObject(this); }
NS_CC_WIDGET_BEGIN CImageView::CImageView() { setThisObject(this); setTouchEnabled(false); }
NS_CC_WIDGET_BEGIN #define CC_CENTER_POS(__SIZE__) Point(__SIZE__.width / 2, __SIZE__.height / 2) #define CC_SAFE_SET_VISIBLE(__ITEM__, __VAR__) if( __ITEM__ ) __ITEM__->setVisible(__VAR__) #define CC_SAFE_REMOVE(__ITEM__) if(__ITEM__) removeChild(__ITEM__) #define CC_SAFE_REMOVE_9ELSE(__ITEM__) if(__ITEM__ && !(dynamic_cast<CScale9Sprite*>(__ITEM__))) removeChild(__ITEM__) #define CC_SAFE_REMOVE_9SPRITE(__ITEM__) if(__ITEM__ && dynamic_cast<CScale9Sprite*>(__ITEM__)) removeChild(__ITEM__) #define CC_IS_9SPRITE(__ITEM__) __ITEM__ && dynamic_cast<CScale9Sprite*>(__ITEM__) ? true : false CButton::CButton() : m_pNormalImage(NULL) , m_pDisabledImage(NULL) , m_pSelectedImage(NULL) , m_bScale9Enabled(false) , m_tTextOffset(Point::ZERO) , m_pLabel(NULL) , m_bCascadeTextSizeEnabled(false) { setThisObject(this); setCascadeOpacityEnabled(true); setAnchorPoint(CCWIDGET_BASIC_DEFAULT_ANCHOR_POINT); setContentSize(CCWIDGET_BASIC_DEFAULT_CONTENT_SIZE); }
NS_CC_WIDGET_BEGIN CLabelAtlas::CLabelAtlas() { setThisObject(this); m_bTouchEnabled = false; setAnchorPoint(CCPoint(0.5f, 0.5f)); }
NS_CC_WIDGET_BEGIN CSlider::CSlider() : m_pSlider(NULL) , m_bDrag(false) , m_bDragable(true) { setThisObject(this); }
NS_CC_WIDGET_BEGIN CImageView::CImageView() { setThisObject(this); setAnchorPoint(CCWIDGET_BASIC_DEFAULT_ANCHOR_POINT); setContentSize(CCWIDGET_BASIC_DEFAULT_CONTENT_SIZE); }
NS_CC_WIDGET_BEGIN CLayout::CLayout() : m_pBackgroundImage(NULL) , m_pBackgroundColor(NULL) , m_pBackgroundGradient(NULL) { setThisObject(this); }
NS_CC_WIDGET_BEGIN NumericStepper::NumericStepper() :m_value(15) ,m_step(1) { setThisObject(this); setCascadeOpacityEnabled(true); setAnchorPoint(CCWIDGET_BASIC_DEFAULT_ANCHOR_POINT); }
//------------------------------------------------------------------------- FKCW_UIWidget_ControlView::FKCW_UIWidget_ControlView() : m_pBaseBoard(NULL) , m_pJoystick(NULL) , m_fRadius(100.0f) , m_tCenterPoint(CCPointZero) , m_bRelocateWithAnimation(true) , m_bAnimationUpdate(false) , m_bExecuteEventUpdate(false) , m_tLastPoint(CCPointZero) { setThisObject(this); }
NS_CC_WIDGET_BEGIN CircleMenu::CircleMenu() :m_isMouseDown(false) , m_mouseMove(0.25f) , m_vx(0) , m_maxVx(25) , m_easing(0.95f) , m_itemScaleA(20) , m_itemScaleB(50) , m_noFocusOpacity(0.6f) { setThisObject(this); setCascadeOpacityEnabled(true); setAnchorPoint(CCWIDGET_BASIC_DEFAULT_ANCHOR_POINT); }
NS_CC_WIDGET_BEGIN CControlView::CControlView() : m_pBaseBoard(NULL) , m_pJoystick(NULL) , m_fRadius(100.0f) , m_tCenterPoint(CCPointZero) , m_bRelocateWithAnimation(true) , m_bAnimationUpdate(false) , m_bExecuteEventUpdate(false) , m_tLastPoint(CCPointZero) { setThisObject(this); setCascadeColorEnabled(true); setCascadeOpacityEnabled(true); }
NS_CC_WIDGET_BEGIN CCheckBox::CCheckBox() : m_pNormal(NULL) , m_pNormalPress(NULL) , m_pChecked(NULL) , m_pCheckedPress(NULL) , m_pDisabledNormal(NULL) , m_pDisabledChecked(NULL) { setThisObject(this); setCascadeColorEnabled(true); setCascadeOpacityEnabled(true); setAnchorPoint(CCWIDGET_BASIC_DEFAULT_ANCHOR_POINT); setContentSize(CCWIDGET_BASIC_DEFAULT_CONTENT_SIZE); }
NS_CC_WIDGET_BEGIN CLabelAtlas::CLabelAtlas() { setThisObject(this); }
NS_CC_WIDGET_BEGIN CColorView::CColorView() { setThisObject(this); }
NS_CC_WIDGET_BEGIN CLabelBMFont::CLabelBMFont() { setThisObject(this); }