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

#include <UIDragPanel.h>

Inheritance diagram for UIDragPanel:
Layout UIScrollInterface UIWidget CCObject CCCopying

Public Member Functions

 UIDragPanel ()
virtual ~UIDragPanel ()
local ~UIDragPanel ()
virtual bool onTouchBegan (const CCPoint &touchPoint)
 A call back function called when widget is selected, and on touch began. More...
 
local onTouchBegan ( local touchPoint)
 A call back function called when widget is selected, and on touch began. More...
 
virtual void onTouchMoved (const CCPoint &touchPoint)
 A call back function called when widget is selected, and on touch moved. More...
 
local onTouchMoved ( local touchPoint)
 A call back function called when widget is selected, and on touch moved. More...
 
virtual void onTouchEnded (const CCPoint &touchPoint)
 A call back function called when widget is selected, and on touch ended. More...
 
local onTouchEnded ( local touchPoint)
 A call back function called when widget is selected, and on touch ended. More...
 
virtual void onTouchCancelled (const CCPoint &touchPoint)
 A call back function called when widget is selected, and on touch canceled. More...
 
var onTouchCancelled ( var touchPoint)
 A call back function called when widget is selected, and on touch canceled. More...
 
local onTouchCancelled ( local touchPoint)
 A call back function called when widget is selected, and on touch canceled. More...
 
virtual void onTouchLongClicked (const CCPoint &touchPoint)
 A call back function called when widget is selected, and on touch long clicked. More...
 
virtual void update (float dt)
virtual bool addChild (UIWidget *widget)
 add widget child override More...
 
local addChild ( local widget)
 add widget child override More...
 
virtual bool removeChild (UIWidget *child)
 remove widget child override More...
 
local removeChild ( local child)
 remove widget child override More...
 
virtual void removeAllChildren ()
 remove all widget children override More...
 
virtual CCArraygetChildren ()
 get widget children of inner container More...
 
var getChildren ()
 get widget children of inner container More...
 
const CCSizegetInnerContainerSize () const
 get and set inner container size More...
 
local getInnerContainerSize ()
 get and set inner container size More...
 
void setInnerContainerSize (const CCSize &size)
const CCPointgetInnerContainerPosition () const
 get and set inner container position More...
 
void setInnerContainerPosition (const CCPoint &point, bool animated)
void setInnerContainerOffset (const CCPoint &offset, bool animated)
 set inner container offset More...
 
void setAutoMoveDuration (float duration)
 set auto move duration More...
 
void setAutoMoveEaseRate (float rate)
 set auto move ease rate More...
 
bool isBerth ()
 get berth or not More...
 
void addEventListener (CCObject *target, SEL_DragPanelEvent selector)
 event More...
 
void addBerthToLeftBottomEvent (CCObject *target, SEL_DragPanelBerthToLeftBottomEvent selector)
 berth event by direction More...
 
var addBerthToLeftBottomEvent ( var target, var selector)
 berth event by direction More...
 
local addBerthToLeftBottomEvent ( local target, local selector)
 berth event by direction More...
 
void addBerthToLeftTopEvent (CCObject *target, SEL_DragPanelBerthToLeftTopEvent selector)
void addBerthToRightBottomEvent (CCObject *target, SEL_DragPanelBerthToRightBottomEvent selector)
void addBerthToRightTopEvent (CCObject *target, SEL_DragPanelBerthToRightTopEvent selector)
void addBerthToLeftEvent (CCObject *target, SEL_DragPanelBerthToLeftEvent selector)
var addBerthToLeftEvent ( var target, var selector)
local addBerthToLeftEvent ( local target, local selector)
void addBerthToTopEvent (CCObject *target, SEL_DragPanelBerthToTopEvent selector)
void addBerthToRightEvent (CCObject *target, SEL_DragPanelBerthToRightEvent selector)
void addBerthToBottomEvent (CCObject *target, SEL_DragPanelBerthToBottomEvent selector)
bool isBounceEnabled ()
 get and set bounce enable More...
 
void setBounceEnabled (bool bounce)
void setBounceDuratoin (float duration)
 set bounce duration More...
 
void setBounceEaseRate (float rate)
 set bounce ease rate More...
 
void addBounceToLeftBottomEvent (CCObject *target, SEL_DragPanelBounceToLeftBottomEvent selector)
 bounce event by dircetion More...
 
void addBounceToLeftTopEvent (CCObject *target, SEL_DragPanelBounceToLeftTopEvent selector)
void addBounceToRightBottomEvent (CCObject *target, SEL_DragPanelBounceToRightBottomEvent selector)
void addBounceToRightTopEvent (CCObject *target, SEL_DragPanelBounceToRightTopEvent selector)
void addBounceToLeftEvent (CCObject *target, SEL_DragPanelBounceToLeftEvent selector)
var addBounceToLeftEvent ( var target, var selector)
local addBounceToLeftEvent ( local target, local selector)
void addBounceToTopEvent (CCObject *target, SEL_DragPanelBounceToTopEvent selector)
void addBounceToRightEvent (CCObject *target, SEL_DragPanelBounceToRightEvent selector)
void addBounceToBottomEvent (CCObject *target, SEL_DragPanelBounceToBottomEvent selector)
LayoutgetInnerContainer ()
 Gets inner container of dragpanel. More...
 
virtual void setLayoutType (LayoutType type)
 Sets LayoutType. More...
 
virtual LayoutType getLayoutType () const
 Gets LayoutType. More...
 
virtual void doLayout ()
virtual const char * getDescription () const
 Returns the "class name" of widget. More...
 
- Public Member Functions inherited from Layout
 Layout ()
virtual ~Layout ()
 Default destructor. More...
 
virtual bool hitTest (const CCPoint &pt)
 Checks a point if is in widget's space. More...
 
void setBackGroundImage (const char *fileName, TextureResType texType=UI_TEX_TYPE_LOCAL)
 Sets a background image for layout. More...
 
void setBackGroundImageCapInsets (const CCRect &capInsets)
 Sets a background image capinsets for layout, if the background image is a scale9 render. More...
 
void setBackGroundColorType (LayoutBackGroundColorType type)
 Sets Color Type for layout. More...
 
void setBackGroundImageScale9Enabled (bool enabled)
 Sets background iamge use scale9 renderer. More...
 
void setBackGroundColor (const ccColor3B &color)
 Sets background color for layout, if color type is LAYOUT_COLOR_SOLID. More...
 
void setBackGroundColor (const ccColor3B &startColor, const ccColor3B &endColor)
 Sets background color for layout, if color type is LAYOUT_COLOR_GRADIENT. More...
 
void setBackGroundColorOpacity (int opacity)
 Sets background opacity layout. More...
 
void setBackGroundColorVector (const CCPoint &vector)
 Sets background color vector for layout, if color type is LAYOUT_COLOR_GRADIENT. More...
 
virtual void setColor (const ccColor3B &color)
 Sets color to widget. More...
 
virtual void setOpacity (int opacity)
 Sets opacity to widget. More...
 
void removeBackGroundImage ()
 Remove the background image of layout. More...
 
const CCSizegetBackGroundImageTextureSize () const
 Gets background image texture size. More...
 
virtual bool isClippingEnabled ()
 Gets if layout is clipping enabled. More...
 
virtual const CCSizegetContentSize () const
 Gets the content size of widget. More...
 
void setBackGroundImageScale9Enable (bool is)
 These methods will be removed. More...
 
- Public Member Functions inherited from UIWidget
 UIWidget (void)
virtual ~UIWidget ()
 Default destructor. More...
 
virtual void setEnabled (bool enabled)
 Sets whether the widget is enabled. More...
 
bool isEnabled () const
 Determines if the widget is enabled. More...
 
void setVisible (bool visible)
 Sets whether the widget is visible. More...
 
bool isVisible () const
 Determines if the widget is visible. More...
 
void setBright (bool bright)
 Sets whether the widget is bright. More...
 
bool isBright () const
 Determines if the widget is bright. More...
 
virtual void setTouchEnabled (bool enabled)
 Sets whether the widget is touch enabled. More...
 
void setBrightStyle (BrightStyle style)
 To set the bright style of widget. More...
 
bool isTouchEnabled () const
 Determines if the widget is touch enabled. More...
 
bool isFocused () const
 Determines if the widget is on focused. More...
 
void setFocused (bool fucosed)
 Sets whether the widget is on focused. More...
 
void setZOrder (int z)
 Sets the Z order which stands for the drawing order, and reorder this widget in its parent's children array. More...
 
int getZOrder ()
 Gets the Z order of this widget. More...
 
float getLeftInParent ()
 Gets the left boundary position of this widget. More...
 
float getBottomInParent ()
 Gets the bottom boundary position of this widget. More...
 
float getRightInParent ()
 Gets the right boundary position of this widget. More...
 
float getTopInParent ()
 Gets the top boundary position of this widget. More...
 
virtual void removeFromParent ()
 Removes this widget itself from its parent widget. More...
 
void disableUpdate ()
 Unschedules the "update" method. More...
 
virtual void reorderChild (UIWidget *child)
 Reorders a child according to a new z value. More...
 
UIWidgetgetChildByName (const char *name)
 Gets a child from the container with its name. More...
 
UIWidgetgetChildByTag (int tag)
 Gets a child from the container with its tag. More...
 
CCNodegetRenderer ()
 Gets the renderer of widget. More...
 
void addRenderer (CCNode *renderer, int zOrder)
 Add a CCNode for rendering. More...
 
void removeRenderer (CCNode *renderer, bool cleanup)
 Remove a CCNode from widget. More...
 
void setParent (UIWidget *parent)
 Sets the parent widget. More...
 
UIWidgetgetParent ()
 Returns a pointer to the parent widget. More...
 
void addTouchEventListener (CCObject *target, SEL_TouchEvent selector)
 Sets the touch event target/selector of the menu item. More...
 
void setPosition (const CCPoint &pos)
 Changes the position (x,y) of the widget in OpenGL coordinates. More...
 
void setPositionPercent (const CCPoint &percent)
 Changes the position (x,y) of the widget in OpenGL coordinates. More...
 
const CCPointgetPosition ()
 Gets the position (x,y) of the widget in OpenGL coordinates. More...
 
const CCPointgetPositionPercent ()
 Gets the percent (x,y) of the widget in OpenGL coordinates. More...
 
void setPositionType (PositionType type)
 Changes the position type of the widget. More...
 
PositionType getPositionType () const
 Gets the position type of the widget. More...
 
virtual void setAnchorPoint (const CCPoint &pt)
 Sets the anchor point in percent. More...
 
const CCPointgetAnchorPoint ()
 Returns the anchor point in percent. More...
 
virtual void setScale (float fScale)
 Changes both X and Y scale factor of the widget. More...
 
float getScale ()
 Gets the scale factor of the widget, when X and Y have the same scale factor. More...
 
virtual void setScaleX (float fScaleX)
 Changes the scale factor on X axis of this widget. More...
 
float getScaleX ()
 Returns the scale factor on X axis of this widget. More...
 
virtual void setScaleY (float fScaleY)
 Changes the scale factor on Y axis of this widget. More...
 
float getScaleY ()
 Returns the scale factor on Y axis of this widget. More...
 
void setRotation (float rotation)
 Sets the rotation (angle) of the widget in degrees. More...
 
float getRotation ()
 Returns the rotation of the widget in degrees. More...
 
void setRotationX (float rotationX)
 Sets the X rotation (angle) of the widget in degrees which performs a horizontal rotational skew. More...
 
float getRotationX ()
 Gets the X rotation (angle) of the widget in degrees which performs a horizontal rotation skew. More...
 
void setRotationY (float rotationY)
 Sets the Y rotation (angle) of the widget in degrees which performs a vertical rotational skew. More...
 
float getRotationY ()
 Gets the Y rotation (angle) of the widget in degrees which performs a vertical rotational skew. More...
 
virtual void setFlipX (bool flipX)
 Sets whether the widget should be flipped horizontally or not. More...
 
virtual bool isFlipX ()
 Returns the flag which indicates whether the widget is flipped horizontally or not. More...
 
virtual void setFlipY (bool flipY)
 Sets whether the widget should be flipped vertically or not. More...
 
virtual bool isFlipY ()
 Return the flag which indicates whether the widget is flipped vertically or not. More...
 
virtual const ccColor3BgetColor ()
 Gets color of widget. More...
 
virtual int getOpacity ()
 Gets opacity of widget. More...
 
virtual bool isCascadeOpacityEnabled ()
virtual void setCascadeOpacityEnabled (bool cascadeOpacityEnabled)
virtual bool isCascadeColorEnabled ()
virtual void setCascadeColorEnabled (bool cascadeColorEnabled)
void setBlendFunc (ccBlendFunc blendFunc)
virtual void setActionManager (CCActionManager *actionManager)
virtual CCActionManagergetActionManager ()
CCActionrunAction (CCAction *action)
void stopAllActions (void)
void stopAction (CCAction *action)
void stopActionByTag (int tag)
CCActiongetActionByTag (int tag)
void didNotSelectSelf ()
 A call back function when widget lost of focus. More...
 
bool clippingParentAreaContainPoint (const CCPoint &pt)
const CCPointgetTouchStartPos ()
const CCPointgetTouchMovePos ()
const CCPointgetTouchEndPos ()
void setTag (int tag)
 Changes the tag that is used to identify the widget easily. More...
 
int getTag () const
 Returns a tag that is used to identify the widget easily. More...
 
void setName (const char *name)
 Changes the name that is used to identify the widget easily. More...
 
const char * getName () const
 Returns a name that is used to identify the widget easily. More...
 
WidgetType getWidgetType () const
 Returns a type that is widget's type. More...
 
virtual void setSize (const CCSize &size)
 Changes the size that is widget's size. More...
 
virtual void setSizePercent (const CCPoint &percent)
 Changes the percent that is widget's percent size. More...
 
void setSizeType (SizeType type)
 Changes the size type of widget. More...
 
SizeType getSizeType () const
 Gets the size type of widget. More...
 
const CCSizegetSize () const
 Returns size of widget. More...
 
const CCPointgetSizePercent () const
 Returns size percent of widget. More...
 
void setLayoutParameter (LayoutParameter *parameter)
 Sets a LayoutParameter to widget. More...
 
LayoutParametergetLayoutParameter ()
 Gets LayoutParameter of widget. More...
 
virtual void ignoreContentAdaptWithSize (bool ignore)
 Ignore the widget size. More...
 
bool isIgnoreContentAdaptWithSize () const
 Gets the widget if is ignore it's size. More...
 
CCPoint getWorldPosition ()
 Gets world position of widget. More...
 
CCPoint convertToWorldSpace (const CCPoint &pt)
 Converts a Point to world space coordinates. More...
 
virtual CCNodegetVirtualRenderer ()
 Gets the Virtual Renderer of widget. More...
 
void setUpdateEnabled (bool enable)
 Schedules the "update" method. More...
 
bool isUpdateEnabled ()
 is the "update" method scheduled. More...
 
virtual void onEnter ()
virtual void onExit ()
void setTouchEnable (bool enabled, bool containChildren=false)
 These methods will be removed. More...
 
void disable (bool containChildren=false)
void active (bool containChildren=false)
bool isActive ()
void setBright (bool bright, bool containChild)
CCRect getRect ()
CCNodegetValidNode ()
void setWidgetZOrder (int z)
int getWidgetZOrder ()
float getRelativeLeftPos ()
float getRelativeBottomPos ()
float getRelativeRightPos ()
float getRelativeTopPos ()
CCNodegetContainerNode ()
void setWidgetParent (UIWidget *parent)
UIWidgetgetWidgetParent ()
void setWidgetTag (int tag)
int getWidgetTag ()
void addCCNode (CCNode *node)
void removeCCNode (bool cleanup)
void addPushDownEvent (CCObject *target, SEL_PushEvent selector)
void addMoveEvent (CCObject *target, SEL_MoveEvent selector)
void addReleaseEvent (CCObject *target, SEL_ReleaseEvent selector)
void addCancelEvent (CCObject *target, SEL_CancelEvent selector)
bool removeChild (UIWidget *child, bool cleanup)
void removeFromParentAndCleanup (bool cleanup)
void removeAllChildrenAndCleanUp (bool cleanup)
void setActionTag (int tag)
int getActionTag ()
- Public Member Functions inherited from CCObject
 CCObject (void)
virtual ~CCObject (void)
void release (void)
void retain (void)
CCObjectautorelease (void)
CCObjectcopy (void)
bool isSingleReference (void) const
unsigned int retainCount (void) const
virtual bool isEqual (const CCObject *pObject)
virtual void acceptVisitor (CCDataVisitor &visitor)
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)

Static Public Member Functions

static UIDragPanelcreate ()
- Static Public Member Functions inherited from Layout
static Layoutcreate ()
 Allocates and initializes a layout. More...
 
- Static Public Member Functions inherited from UIWidget
static UIWidgetcreate ()
 Allocates and initializes a widget. More...
 

Protected Member Functions

virtual bool init ()
virtual void initRenderer ()
local initRenderer ()
virtual void releaseResoures ()
 Release texture resoures of widget. More...
 
local releaseResoures ()
 Release texture resoures of widget. More...
 
virtual void handlePressLogic (const CCPoint &touchPoint)
local handlePressLogic ( local touchPoint)
virtual void handleMoveLogic (const CCPoint &touchPoint)
virtual void handleReleaseLogic (const CCPoint &touchPoint)
var handleReleaseLogic ( var touchPoint)
local handleReleaseLogic ( local touchPoint)
virtual void interceptTouchEvent (int handleState, UIWidget *sender, const CCPoint &touchPoint)
var interceptTouchEvent ( var handleState, var sender, var touchPoint)
local interceptTouchEvent ( local handleState, local sender, local touchPoint)
virtual void checkChildInfo (int handleState, UIWidget *sender, const CCPoint &touchPoint)
void recordSlidTime (float dt)
void setInnerContainerOffset (const CCPoint &offset)
var setInnerContainerOffset ( var offset)
local setInnerContainerOffset ( local offset)
bool checkContainInnerRect ()
void moveWithDelta (const CCPoint &delta)
local moveWithDelta ( local delta)
void autoMove ()
void autoMoveOver ()
var autoMoveOver ()
local autoMoveOver ()
void startAutoMove ()
void stopAutoMove ()
bool checkToBoundaryWithDeltaPosition (const CCPoint &delta)
var checkToBoundaryWithDeltaPosition ( var delta)
local checkToBoundaryWithDeltaPosition ( local delta)
CCPoint calculateToBoundaryDeltaPosition (const CCPoint &paramDelta)
var calculateToBoundaryDeltaPosition ( var paramDelta)
local calculateToBoundaryDeltaPosition ( local paramDelta)
bool checkBerth ()
void berthEvent ()
var berthEvent ()
local berthEvent ()
void berthToLeftEvent ()
void berthToRightEvent ()
void berthToTopEvent ()
void berthToBottomEvent ()
var berthToBottomEvent ()
local berthToBottomEvent ()
void berthToLeftBottomEvent ()
void berthToLeftTopEvent ()
void berthToRightBottomEvent ()
void berthToRightTopEvent ()
bool checkNeedBounce ()
void startBounce ()
void stopBounce ()
void bounceToCorner ()
var bounceToCorner ()
local bounceToCorner ()
void bounceOver ()
void bounceToLeftBottomEvent ()
void bounceToRightBottomEvent ()
void bounceToLeftTopEvent ()
var bounceToLeftTopEvent ()
local bounceToLeftTopEvent ()
void bounceToRightTopEvent ()
void bounceToLeftEvent ()
void bounceToTopEvent ()
void bounceToRightEvent ()
void bounceToBottomEvent ()
void actionWithDuration (float duration)
bool actionIsDone ()
void actionStartWithWidget (UIWidget *widget)
var actionStartWithWidget ( var widget)
local actionStartWithWidget ( local widget)
void actionStep (float dt)
local actionStep ( local dt)
void actionUpdate (float dt)
var actionUpdate ( var dt)
local actionUpdate ( local dt)
void actionStop ()
void actionDone ()
var actionDone ()
local actionDone ()
void moveByWithDuration (float duration, const CCPoint &deltaPosition)
var moveByWithDuration ( var duration, var deltaPosition)
local moveByWithDuration ( local duration, local deltaPosition)
void moveByInit ()
void moveByUpdate (float t)
var moveByUpdate ( var t)
local moveByUpdate ( local t)
void moveToWithDuration (float duration, const CCPoint &position)
var moveToWithDuration ( var duration, var position)
local moveToWithDuration ( local duration, local position)
void moveToInit ()
void moveToUpdate (float t)
var moveToUpdate ( var t)
local moveToUpdate ( local t)
virtual void onSizeChanged ()
local onSizeChanged ()
virtual void setClippingEnable (bool is)
 These methods will be removed. More...
 
local setClippingEnable ( local is)
 These methods will be removed. More...
 
virtual void setClippingEnabled (bool able)
 Changes if layout can clip it's content and child. More...
 
- Protected Member Functions inherited from Layout
void addBackGroundImage ()
- Protected Member Functions inherited from UIWidget
virtual void onPressStateChangedToNormal ()
virtual void onPressStateChangedToPressed ()
virtual void onPressStateChangedToDisabled ()
void pushDownEvent ()
void moveEvent ()
void releaseUpEvent ()
void cancelUpEvent ()
void longClickEvent ()
void updateAnchorPoint ()
void updateSizeAndPosition ()

Protected Attributes

Layoutm_pInnerContainer
bool m_bTouchPressed
bool m_bTouchMoved
var m_bTouchMoved
local m_bTouchMoved
bool m_bTouchReleased
var m_bTouchReleased
local m_bTouchReleased
bool m_bTouchCanceld
CCPoint m_touchStartNodeSpace
var m_touchStartNodeSpace
local m_touchStartNodeSpace
CCPoint m_touchStartWorldSpace
var m_touchStartWorldSpace
local m_touchStartWorldSpace
CCPoint m_touchEndWorldSpace
var m_touchEndWorldSpace
local m_touchEndWorldSpace
float m_fSlidTime
DRAGPANEL_MOVE_TYPE m_eMoveType
var m_eMoveType
local m_eMoveType
float m_fAutoMoveDuration
var m_fAutoMoveDuration
local m_fAutoMoveDuration
float m_fAutoMoveEaseRate
var m_fAutoMoveEaseRate
local m_fAutoMoveEaseRate
DRAGPANEL_BERTH_DIR m_eBerthDirection
var m_eBerthDirection
local m_eBerthDirection
bool m_bBounceEnable
DRAGPANEL_BOUNCE_DIR m_eBounceDirection
var m_eBounceDirection
local m_eBounceDirection
float m_fBounceDuration
float m_fBounceEaseRate
var m_fBounceEaseRate
local m_fBounceEaseRate
CCObjectm_pEventLister
SEL_DragPanelEvent m_pfnEventSelector
var m_pfnEventSelector
local m_pfnEventSelector
float m_bRunningAction
int m_nActionType
UIWidgetm_pActionWidget
var m_pActionWidget
local m_pActionWidget
float m_fDuration
var m_fDuration
local m_fDuration
float m_elapsed
var m_elapsed
local m_elapsed
bool m_bFirstTick
var m_bFirstTick
local m_bFirstTick
CCPoint m_positionDelta
var m_positionDelta
local m_positionDelta
CCPoint m_startPosition
var m_startPosition
local m_startPosition
CCPoint m_previousPosition
var m_previousPosition
local m_previousPosition
CCPoint m_endPosition
var m_endPosition
local m_endPosition
CCObjectm_pBerthToLeftListener
var m_pBerthToLeftListener
local m_pBerthToLeftListener
SEL_DragPanelBerthToLeftEvent m_pfnBerthToLeftSelector
CCObjectm_pBerthToRightListener
var m_pBerthToRightListener
local m_pBerthToRightListener
SEL_DragPanelBerthToRightEvent m_pfnBerthToRightSelector
CCObjectm_pBerthToTopListener
SEL_DragPanelBerthToTopEvent m_pfnBerthToTopSelector
CCObjectm_pBerthToBottomListener
var m_pBerthToBottomListener
local m_pBerthToBottomListener
SEL_DragPanelBerthToBottomEvent m_pfnBerthToBottomSelector
CCObjectm_pBerthToLeftBottomListener
var m_pBerthToLeftBottomListener
local m_pBerthToLeftBottomListener
SEL_DragPanelBerthToLeftBottomEvent m_pfnBerthToLeftBottomSelector
CCObjectm_pBerthToLeftTopListener
SEL_DragPanelBerthToLeftTopEvent m_pfnBerthToLeftTopSelector
CCObjectm_pBerthToRightBottomListener
SEL_DragPanelBerthToRightBottomEvent m_pfnBerthToRightBottomSelector
CCObjectm_pBerthToRightTopListener
var m_pBerthToRightTopListener
local m_pBerthToRightTopListener
SEL_DragPanelBerthToRightTopEvent m_pfnBerthToRightTopSelector
CCObjectm_pBounceOverListener
SEL_DragPanelBounceOverEvent m_pfnBounceOverSelector
CCObjectm_pBounceToLeftBottomListener
var m_pBounceToLeftBottomListener
local m_pBounceToLeftBottomListener
SEL_DragPanelBounceToLeftBottomEvent m_pfnBounceToLeftBottomSelector
CCObjectm_pBounceToLeftTopListener
SEL_DragPanelBounceToLeftTopEvent m_pfnBounceToLeftTopSelector
CCObjectm_pBounceToRightBottomListener
SEL_DragPanelBounceToRightBottomEvent m_pfnBounceToRightBottomSelector
CCObjectm_pBounceToRightTopListener
SEL_DragPanelBounceToRightTopEvent m_pfnBounceToRightTopSelector
CCObjectm_pBounceToLeftListener
SEL_DragPanelBounceToLeftEvent m_pfnBounceToLeftSelector
CCObjectm_pBounceToTopListener
var m_pBounceToTopListener
local m_pBounceToTopListener
SEL_DragPanelBounceToTopEvent m_pfnBounceToTopSelector
CCObjectm_pBounceToRightListener
var m_pBounceToRightListener
local m_pBounceToRightListener
SEL_DragPanelBounceToRightEvent m_pfnBounceToRightSelector
CCObjectm_pBounceToBottomListener
SEL_DragPanelBounceToBottomEvent m_pfnBounceToBottomSelector
- Protected Attributes inherited from Layout
bool m_bClippingEnabled
bool m_bBackGroundScale9Enable
CCNodem_pBackGroundImage
std::string m_strBackGroundImageFileName
CCRect m_backGroundImageCapInsets
LayoutBackGroundColorType m_colorType
TextureResType m_eBGImageTexType
CCLayerColorm_pColorRender
CCLayerGradientm_pGradientRender
ccColor3B m_cColor
ccColor3B m_gStartColor
ccColor3B m_gEndColor
CCPoint m_AlongVector
int m_nCOpacity
CCSize m_backGroundImageTextureSize
LayoutType m_eLayoutType
- Protected Attributes inherited from UIWidget
bool m_bEnabled
 Highest control of widget. More...
 
bool m_bVisible
 is this widget visible More...
 
bool m_bBright
 is this widget bright More...
 
bool m_bTouchEnabled
 is this widget touch endabled More...
 
bool m_bTouchPassedEnabled
 is the touch event should be passed More...
 
bool m_bFocus
 is the widget on focus More...
 
int m_nWidgetZOrder
 z-order value that affects the draw order and touch order More...
 
CCPoint m_anchorPoint
 anchor point normalized More...
 
UIWidgetm_pWidgetParent
 parent of widget More...
 
BrightStyle m_eBrightStyle
 bright style More...
 
bool m_bUpdateEnabled
 is "update" method scheduled More...
 
CCNodem_pRenderer
 base renderer More...
 
CCPoint m_touchStartPos
 touch began point More...
 
CCPoint m_touchMovePos
 touch moved point More...
 
CCPoint m_touchEndPos
 touch ended point More...
 
CCObjectm_pTouchEventListener
SEL_TouchEvent m_pfnTouchEventSelector
int m_nWidgetTag
std::string m_strName
WidgetType m_WidgetType
int m_nActionTag
CCSize m_size
CCSize m_customSize
LayoutParameterm_pLayoutParameter
bool m_bIgnoreSize
CCArraym_children
bool m_bAffectByClipping
CCSchedulerm_pScheduler
SizeType m_eSizeType
CCPoint m_sizePercent
PositionType m_ePositionType
CCPoint m_positionPercent
bool m_bIsRunning
CCObjectm_pPushListener
SEL_PushEvent m_pfnPushSelector
CCObjectm_pMoveListener
SEL_MoveEvent m_pfnMoveSelector
CCObjectm_pReleaseListener
SEL_ReleaseEvent m_pfnReleaseSelector
CCObjectm_pCancelListener
SEL_ReleaseEvent m_pfnCancelSelector
- Protected Attributes inherited from CCObject
unsigned int m_uReference
unsigned int m_uAutoReleaseCount

Additional Inherited Members

- Public Attributes inherited from CCObject
unsigned int m_uID
int m_nLuaID

Constructor & Destructor Documentation

var UIDragPanel ( )
local UIDragPanel ( )
virtual ~UIDragPanel ( )
virtual
var ~UIDragPanel ( )
virtual
local ~UIDragPanel ( )
virtual

Member Function Documentation

void actionDone ( )
protected
var actionDone ( )
protected
local actionDone ( )
protected
bool actionIsDone ( )
protected
var actionIsDone ( )
protected
local actionIsDone ( )
protected
void actionStartWithWidget ( UIWidget widget)
protected
var actionStartWithWidget ( var  widget)
protected
local actionStartWithWidget ( local  widget)
protected
void actionStep ( float  dt)
protected
var actionStep ( var  dt)
protected
local actionStep ( local  dt)
protected
void actionStop ( )
protected
var actionStop ( )
protected
local actionStop ( )
protected
void actionUpdate ( float  dt)
protected
var actionUpdate ( var  dt)
protected
local actionUpdate ( local  dt)
protected
void actionWithDuration ( float  duration)
protected
var actionWithDuration ( var  duration)
protected
local actionWithDuration ( local  duration)
protected
void addBerthToBottomEvent ( CCObject target,
SEL_DragPanelBerthToBottomEvent  selector 
)
var addBerthToBottomEvent ( var  target,
var  selector 
)
local addBerthToBottomEvent ( local  target,
local  selector 
)
void addBerthToLeftBottomEvent ( CCObject target,
SEL_DragPanelBerthToLeftBottomEvent  selector 
)

berth event by direction

var addBerthToLeftBottomEvent ( var  target,
var  selector 
)

berth event by direction

local addBerthToLeftBottomEvent ( local  target,
local  selector 
)

berth event by direction

void addBerthToLeftEvent ( CCObject target,
SEL_DragPanelBerthToLeftEvent  selector 
)
var addBerthToLeftEvent ( var  target,
var  selector 
)
local addBerthToLeftEvent ( local  target,
local  selector 
)
void addBerthToLeftTopEvent ( CCObject target,
SEL_DragPanelBerthToLeftTopEvent  selector 
)
var addBerthToLeftTopEvent ( var  target,
var  selector 
)
local addBerthToLeftTopEvent ( local  target,
local  selector 
)
void addBerthToRightBottomEvent ( CCObject target,
SEL_DragPanelBerthToRightBottomEvent  selector 
)
var addBerthToRightBottomEvent ( var  target,
var  selector 
)
local addBerthToRightBottomEvent ( local  target,
local  selector 
)
void addBerthToRightEvent ( CCObject target,
SEL_DragPanelBerthToRightEvent  selector 
)
var addBerthToRightEvent ( var  target,
var  selector 
)
local addBerthToRightEvent ( local  target,
local  selector 
)
void addBerthToRightTopEvent ( CCObject target,
SEL_DragPanelBerthToRightTopEvent  selector 
)
var addBerthToRightTopEvent ( var  target,
var  selector 
)
local addBerthToRightTopEvent ( local  target,
local  selector 
)
void addBerthToTopEvent ( CCObject target,
SEL_DragPanelBerthToTopEvent  selector 
)
var addBerthToTopEvent ( var  target,
var  selector 
)
local addBerthToTopEvent ( local  target,
local  selector 
)
void addBounceToBottomEvent ( CCObject target,
SEL_DragPanelBounceToBottomEvent  selector 
)
var addBounceToBottomEvent ( var  target,
var  selector 
)
local addBounceToBottomEvent ( local  target,
local  selector 
)
void addBounceToLeftBottomEvent ( CCObject target,
SEL_DragPanelBounceToLeftBottomEvent  selector 
)

bounce event by dircetion

var addBounceToLeftBottomEvent ( var  target,
var  selector 
)

bounce event by dircetion

local addBounceToLeftBottomEvent ( local  target,
local  selector 
)

bounce event by dircetion

void addBounceToLeftEvent ( CCObject target,
SEL_DragPanelBounceToLeftEvent  selector 
)
var addBounceToLeftEvent ( var  target,
var  selector 
)
local addBounceToLeftEvent ( local  target,
local  selector 
)
void addBounceToLeftTopEvent ( CCObject target,
SEL_DragPanelBounceToLeftTopEvent  selector 
)
var addBounceToLeftTopEvent ( var  target,
var  selector 
)
local addBounceToLeftTopEvent ( local  target,
local  selector 
)
void addBounceToRightBottomEvent ( CCObject target,
SEL_DragPanelBounceToRightBottomEvent  selector 
)
var addBounceToRightBottomEvent ( var  target,
var  selector 
)
local addBounceToRightBottomEvent ( local  target,
local  selector 
)
void addBounceToRightEvent ( CCObject target,
SEL_DragPanelBounceToRightEvent  selector 
)
var addBounceToRightEvent ( var  target,
var  selector 
)
local addBounceToRightEvent ( local  target,
local  selector 
)
void addBounceToRightTopEvent ( CCObject target,
SEL_DragPanelBounceToRightTopEvent  selector 
)
var addBounceToRightTopEvent ( var  target,
var  selector 
)
local addBounceToRightTopEvent ( local  target,
local  selector 
)
void addBounceToTopEvent ( CCObject target,
SEL_DragPanelBounceToTopEvent  selector 
)
var addBounceToTopEvent ( var  target,
var  selector 
)
local addBounceToTopEvent ( local  target,
local  selector 
)
virtual bool addChild ( UIWidget widget)
virtual

add widget child override

Reimplemented from UIWidget.

var addChild ( var  widget)
virtual

add widget child override

Reimplemented from UIWidget.

local addChild ( local  widget)
virtual

add widget child override

Reimplemented from UIWidget.

void addEventListener ( CCObject target,
SEL_DragPanelEvent  selector 
)

event

var addEventListener ( var  target,
var  selector 
)

event

local addEventListener ( local  target,
local  selector 
)

event

void autoMove ( )
protected
var autoMove ( )
protected
local autoMove ( )
protected
void autoMoveOver ( )
protected
var autoMoveOver ( )
protected
local autoMoveOver ( )
protected
void berthEvent ( )
protected
var berthEvent ( )
protected
local berthEvent ( )
protected
void berthToBottomEvent ( )
protected
var berthToBottomEvent ( )
protected
local berthToBottomEvent ( )
protected
void berthToLeftBottomEvent ( )
protected
var berthToLeftBottomEvent ( )
protected
local berthToLeftBottomEvent ( )
protected
void berthToLeftEvent ( )
protected
var berthToLeftEvent ( )
protected
local berthToLeftEvent ( )
protected
void berthToLeftTopEvent ( )
protected
var berthToLeftTopEvent ( )
protected
local berthToLeftTopEvent ( )
protected
void berthToRightBottomEvent ( )
protected
var berthToRightBottomEvent ( )
protected
local berthToRightBottomEvent ( )
protected
void berthToRightEvent ( )
protected
var berthToRightEvent ( )
protected
local berthToRightEvent ( )
protected
void berthToRightTopEvent ( )
protected
var berthToRightTopEvent ( )
protected
local berthToRightTopEvent ( )
protected
void berthToTopEvent ( )
protected
var berthToTopEvent ( )
protected
local berthToTopEvent ( )
protected
void bounceOver ( )
protected
var bounceOver ( )
protected
local bounceOver ( )
protected
void bounceToBottomEvent ( )
protected
var bounceToBottomEvent ( )
protected
local bounceToBottomEvent ( )
protected
void bounceToCorner ( )
protected
var bounceToCorner ( )
protected
local bounceToCorner ( )
protected
void bounceToLeftBottomEvent ( )
protected
var bounceToLeftBottomEvent ( )
protected
local bounceToLeftBottomEvent ( )
protected
void bounceToLeftEvent ( )
protected
var bounceToLeftEvent ( )
protected
local bounceToLeftEvent ( )
protected
void bounceToLeftTopEvent ( )
protected
var bounceToLeftTopEvent ( )
protected
local bounceToLeftTopEvent ( )
protected
void bounceToRightBottomEvent ( )
protected
var bounceToRightBottomEvent ( )
protected
local bounceToRightBottomEvent ( )
protected
void bounceToRightEvent ( )
protected
var bounceToRightEvent ( )
protected
local bounceToRightEvent ( )
protected
void bounceToRightTopEvent ( )
protected
var bounceToRightTopEvent ( )
protected
local bounceToRightTopEvent ( )
protected
void bounceToTopEvent ( )
protected
var bounceToTopEvent ( )
protected
local bounceToTopEvent ( )
protected
CCPoint
calculateToBoundaryDeltaPosition
( const CCPoint paramDelta)
protected
var
calculateToBoundaryDeltaPosition
( var  paramDelta)
protected
local
calculateToBoundaryDeltaPosition
( local  paramDelta)
protected
bool checkBerth ( )
protected
var checkBerth ( )
protected
local checkBerth ( )
protected
virtual void checkChildInfo ( int  handleState,
UIWidget sender,
const CCPoint touchPoint 
)
protectedvirtual

Reimplemented from UIWidget.

var checkChildInfo ( var  handleState,
var  sender,
var  touchPoint 
)
protectedvirtual

Reimplemented from UIWidget.

local checkChildInfo ( local  handleState,
local  sender,
local  touchPoint 
)
protectedvirtual

Reimplemented from UIWidget.

bool checkContainInnerRect ( )
protected
var checkContainInnerRect ( )
protected
local checkContainInnerRect ( )
protected
bool checkNeedBounce ( )
protected
var checkNeedBounce ( )
protected
local checkNeedBounce ( )
protected
bool
checkToBoundaryWithDeltaPosition
( const CCPoint delta)
protected
var
checkToBoundaryWithDeltaPosition
( var  delta)
protected
local
checkToBoundaryWithDeltaPosition
( local  delta)
protected
static UIDragPanel* create ( )
static
var create ( )
static
local create ( )
static
virtual void doLayout ( )
virtual

Reimplemented from Layout.

var doLayout ( )
virtual

Reimplemented from Layout.

local doLayout ( )
virtual

Reimplemented from Layout.

virtual CCArray* getChildren ( )
virtual

get widget children of inner container

Reimplemented from UIWidget.

var getChildren ( )
virtual

get widget children of inner container

Reimplemented from UIWidget.

local getChildren ( )
virtual

get widget children of inner container

Reimplemented from UIWidget.

virtual const char* getDescription ( ) const
virtual

Returns the "class name" of widget.

Reimplemented from Layout.

var getDescription ( )
virtual

Returns the "class name" of widget.

Reimplemented from Layout.

local getDescription ( )
virtual

Returns the "class name" of widget.

Reimplemented from Layout.

Layout* getInnerContainer ( )

Gets inner container of dragpanel.

Inner container is the container of dragpanel's children.

Returns
inner container.
var getInnerContainer ( )

Gets inner container of dragpanel.

Inner container is the container of dragpanel's children.

Returns
inner container.
local getInnerContainer ( )

Gets inner container of dragpanel.

Inner container is the container of dragpanel's children.

Returns
inner container.
const CCPoint&
getInnerContainerPosition
( ) const

get and set inner container position

var getInnerContainerPosition ( )

get and set inner container position

local getInnerContainerPosition ( )

get and set inner container position

const CCSize& getInnerContainerSize ( ) const

get and set inner container size

var getInnerContainerSize ( )

get and set inner container size

local getInnerContainerSize ( )

get and set inner container size

virtual LayoutType getLayoutType ( ) const
virtual

Gets LayoutType.

See Also
LayoutType
Returns
LayoutType

Reimplemented from Layout.

var getLayoutType ( )
virtual

Gets LayoutType.

See Also
LayoutType
Returns
LayoutType

Reimplemented from Layout.

local getLayoutType ( )
virtual

Gets LayoutType.

See Also
LayoutType
Returns
LayoutType

Reimplemented from Layout.

virtual void handleMoveLogic ( const CCPoint touchPoint)
protectedvirtual

Implements UIScrollInterface.

var handleMoveLogic ( var  touchPoint)
protectedvirtual

Implements UIScrollInterface.

local handleMoveLogic ( local  touchPoint)
protectedvirtual

Implements UIScrollInterface.

virtual void handlePressLogic ( const CCPoint touchPoint)
protectedvirtual

Implements UIScrollInterface.

var handlePressLogic ( var  touchPoint)
protectedvirtual

Implements UIScrollInterface.

local handlePressLogic ( local  touchPoint)
protectedvirtual

Implements UIScrollInterface.

virtual void handleReleaseLogic ( const CCPoint touchPoint)
protectedvirtual

Implements UIScrollInterface.

var handleReleaseLogic ( var  touchPoint)
protectedvirtual

Implements UIScrollInterface.

local handleReleaseLogic ( local  touchPoint)
protectedvirtual

Implements UIScrollInterface.

virtual bool init ( )
protectedvirtual

Reimplemented from Layout.

var init ( )
protectedvirtual

Reimplemented from Layout.

local init ( )
protectedvirtual

Reimplemented from Layout.

virtual void initRenderer ( )
protectedvirtual

Reimplemented from Layout.

var initRenderer ( )
protectedvirtual

Reimplemented from Layout.

local initRenderer ( )
protectedvirtual

Reimplemented from Layout.

virtual void interceptTouchEvent ( int  handleState,
UIWidget sender,
const CCPoint touchPoint 
)
protectedvirtual

Implements UIScrollInterface.

var interceptTouchEvent ( var  handleState,
var  sender,
var  touchPoint 
)
protectedvirtual

Implements UIScrollInterface.

local interceptTouchEvent ( local  handleState,
local  sender,
local  touchPoint 
)
protectedvirtual

Implements UIScrollInterface.

bool isBerth ( )

get berth or not

var isBerth ( )

get berth or not

local isBerth ( )

get berth or not

bool isBounceEnabled ( )

get and set bounce enable

var isBounceEnabled ( )

get and set bounce enable

local isBounceEnabled ( )

get and set bounce enable

void moveByInit ( )
protected
var moveByInit ( )
protected
local moveByInit ( )
protected
void moveByUpdate ( float  t)
protected
var moveByUpdate ( var  t)
protected
local moveByUpdate ( local  t)
protected
void moveByWithDuration ( float  duration,
const CCPoint deltaPosition 
)
protected
var moveByWithDuration ( var  duration,
var  deltaPosition 
)
protected
local moveByWithDuration ( local  duration,
local  deltaPosition 
)
protected
void moveToInit ( )
protected
var moveToInit ( )
protected
local moveToInit ( )
protected
void moveToUpdate ( float  t)
protected
var moveToUpdate ( var  t)
protected
local moveToUpdate ( local  t)
protected
void moveToWithDuration ( float  duration,
const CCPoint position 
)
protected
var moveToWithDuration ( var  duration,
var  position 
)
protected
local moveToWithDuration ( local  duration,
local  position 
)
protected
void moveWithDelta ( const CCPoint delta)
protected
var moveWithDelta ( var  delta)
protected
local moveWithDelta ( local  delta)
protected
virtual void onSizeChanged ( )
protectedvirtual

Reimplemented from Layout.

var onSizeChanged ( )
protectedvirtual

Reimplemented from Layout.

local onSizeChanged ( )
protectedvirtual

Reimplemented from Layout.

virtual bool onTouchBegan ( const CCPoint touchPoint)
virtual

A call back function called when widget is selected, and on touch began.

Parameters
touchpoint
Returns
true if the event should be pass to parent, flase otherwise.

Reimplemented from UIWidget.

var onTouchBegan ( var  touchPoint)
virtual

A call back function called when widget is selected, and on touch began.

Parameters
touchpoint
Returns
true if the event should be pass to parent, flase otherwise.

Reimplemented from UIWidget.

local onTouchBegan ( local  touchPoint)
virtual

A call back function called when widget is selected, and on touch began.

Parameters
touchpoint
Returns
true if the event should be pass to parent, flase otherwise.

Reimplemented from UIWidget.

virtual void onTouchCancelled ( const CCPoint touchPoint)
virtual

A call back function called when widget is selected, and on touch canceled.

Parameters
touchpoint

Reimplemented from UIWidget.

var onTouchCancelled ( var  touchPoint)
virtual

A call back function called when widget is selected, and on touch canceled.

Parameters
touchpoint

Reimplemented from UIWidget.

local onTouchCancelled ( local  touchPoint)
virtual

A call back function called when widget is selected, and on touch canceled.

Parameters
touchpoint

Reimplemented from UIWidget.

virtual void onTouchEnded ( const CCPoint touchPoint)
virtual

A call back function called when widget is selected, and on touch ended.

Parameters
touchpoint

Reimplemented from UIWidget.

var onTouchEnded ( var  touchPoint)
virtual

A call back function called when widget is selected, and on touch ended.

Parameters
touchpoint

Reimplemented from UIWidget.

local onTouchEnded ( local  touchPoint)
virtual

A call back function called when widget is selected, and on touch ended.

Parameters
touchpoint

Reimplemented from UIWidget.

virtual void onTouchLongClicked ( const CCPoint touchPoint)
virtual

A call back function called when widget is selected, and on touch long clicked.

Parameters
touchpoint

Reimplemented from UIWidget.

var onTouchLongClicked ( var  touchPoint)
virtual

A call back function called when widget is selected, and on touch long clicked.

Parameters
touchpoint

Reimplemented from UIWidget.

local onTouchLongClicked ( local  touchPoint)
virtual

A call back function called when widget is selected, and on touch long clicked.

Parameters
touchpoint

Reimplemented from UIWidget.

virtual void onTouchMoved ( const CCPoint touchPoint)
virtual

A call back function called when widget is selected, and on touch moved.

Parameters
touchpoint

Reimplemented from UIWidget.

var onTouchMoved ( var  touchPoint)
virtual

A call back function called when widget is selected, and on touch moved.

Parameters
touchpoint

Reimplemented from UIWidget.

local onTouchMoved ( local  touchPoint)
virtual

A call back function called when widget is selected, and on touch moved.

Parameters
touchpoint

Reimplemented from UIWidget.

void recordSlidTime ( float  dt)
protected
var recordSlidTime ( var  dt)
protected
local recordSlidTime ( local  dt)
protected
virtual void releaseResoures ( )
protectedvirtual

Release texture resoures of widget.

Release renderer. If you override releaseResoures, you shall call its parent's one, e.g. UIWidget::releaseResoures().

Reimplemented from UIWidget.

var releaseResoures ( )
protectedvirtual

Release texture resoures of widget.

Release renderer. If you override releaseResoures, you shall call its parent's one, e.g. UIWidget::releaseResoures().

Reimplemented from UIWidget.

local releaseResoures ( )
protectedvirtual

Release texture resoures of widget.

Release renderer. If you override releaseResoures, you shall call its parent's one, e.g. UIWidget::releaseResoures().

Reimplemented from UIWidget.

virtual void removeAllChildren ( )
virtual

remove all widget children override

Reimplemented from UIWidget.

var removeAllChildren ( )
virtual

remove all widget children override

Reimplemented from UIWidget.

local removeAllChildren ( )
virtual

remove all widget children override

Reimplemented from UIWidget.

virtual bool removeChild ( UIWidget child)
virtual

remove widget child override

Reimplemented from UIWidget.

var removeChild ( var  child)
virtual

remove widget child override

Reimplemented from UIWidget.

local removeChild ( local  child)
virtual

remove widget child override

Reimplemented from UIWidget.

void setAutoMoveDuration ( float  duration)

set auto move duration

var setAutoMoveDuration ( var  duration)

set auto move duration

local setAutoMoveDuration ( local  duration)

set auto move duration

void setAutoMoveEaseRate ( float  rate)

set auto move ease rate

var setAutoMoveEaseRate ( var  rate)

set auto move ease rate

local setAutoMoveEaseRate ( local  rate)

set auto move ease rate

void setBounceDuratoin ( float  duration)

set bounce duration

var setBounceDuratoin ( var  duration)

set bounce duration

local setBounceDuratoin ( local  duration)

set bounce duration

void setBounceEaseRate ( float  rate)

set bounce ease rate

var setBounceEaseRate ( var  rate)

set bounce ease rate

local setBounceEaseRate ( local  rate)

set bounce ease rate

void setBounceEnabled ( bool  bounce)
var setBounceEnabled ( var  bounce)
local setBounceEnabled ( local  bounce)
virtual void setClippingEnable ( bool  is)
inlineprotectedvirtual

These methods will be removed.

Reimplemented from Layout.

var setClippingEnable ( var  is)
inlineprotectedvirtual

These methods will be removed.

Reimplemented from Layout.

local setClippingEnable ( local  is)
inlineprotectedvirtual

These methods will be removed.

Reimplemented from Layout.

virtual void setClippingEnabled ( bool  able)
inlineprotectedvirtual

Changes if layout can clip it's content and child.

If you really need this, please enable it. But it would reduce the rendering efficiency.

Parameters
clippingenabled.

Reimplemented from Layout.

var setClippingEnabled ( var  able)
inlineprotectedvirtual

Changes if layout can clip it's content and child.

If you really need this, please enable it. But it would reduce the rendering efficiency.

Parameters
clippingenabled.

Reimplemented from Layout.

local setClippingEnabled ( local  able)
inlineprotectedvirtual

Changes if layout can clip it's content and child.

If you really need this, please enable it. But it would reduce the rendering efficiency.

Parameters
clippingenabled.

Reimplemented from Layout.

void setInnerContainerOffset ( const CCPoint offset,
bool  animated 
)

set inner container offset

var setInnerContainerOffset ( var  offset,
var  animated 
)

set inner container offset

local setInnerContainerOffset ( local  offset,
local  animated 
)

set inner container offset

void setInnerContainerOffset ( const CCPoint offset)
protected
var setInnerContainerOffset ( var  offset)
protected
local setInnerContainerOffset ( local  offset)
protected
void setInnerContainerPosition ( const CCPoint point,
bool  animated 
)
var setInnerContainerPosition ( var  point,
var  animated 
)
local setInnerContainerPosition ( local  point,
local  animated 
)
void setInnerContainerSize ( const CCSize size)
var setInnerContainerSize ( var  size)
local setInnerContainerSize ( local  size)
virtual void setLayoutType ( LayoutType  type)
virtual

Sets LayoutType.

See Also
LayoutType
Parameters
LayoutType

Reimplemented from Layout.

var setLayoutType ( var  type)
virtual

Sets LayoutType.

See Also
LayoutType
Parameters
LayoutType

Reimplemented from Layout.

local setLayoutType ( local  type)
virtual

Sets LayoutType.

See Also
LayoutType
Parameters
LayoutType

Reimplemented from Layout.

void startAutoMove ( )
protected
var startAutoMove ( )
protected
local startAutoMove ( )
protected
void startBounce ( )
protected
var startBounce ( )
protected
local startBounce ( )
protected
void stopAutoMove ( )
protected
var stopAutoMove ( )
protected
local stopAutoMove ( )
protected
void stopBounce ( )
protected
var stopBounce ( )
protected
local stopBounce ( )
protected
virtual void update ( float  dt)
virtual

Reimplemented from CCObject.

var update ( var  dt)
virtual

Reimplemented from CCObject.

local update ( local  dt)
virtual

Reimplemented from CCObject.

Member Data Documentation

bool m_bBounceEnable
protected
var m_bBounceEnable
protected
local m_bBounceEnable
protected
bool m_bFirstTick
protected
var m_bFirstTick
protected
local m_bFirstTick
protected
float m_bRunningAction
protected
var m_bRunningAction
protected
local m_bRunningAction
protected
bool m_bTouchCanceld
protected
var m_bTouchCanceld
protected
local m_bTouchCanceld
protected
bool m_bTouchMoved
protected
var m_bTouchMoved
protected
local m_bTouchMoved
protected
bool m_bTouchPressed
protected
var m_bTouchPressed
protected
local m_bTouchPressed
protected
bool m_bTouchReleased
protected
var m_bTouchReleased
protected
local m_bTouchReleased
protected
DRAGPANEL_BERTH_DIR
m_eBerthDirection
protected
var m_eBerthDirection
protected
local m_eBerthDirection
protected
DRAGPANEL_BOUNCE_DIR
m_eBounceDirection
protected
var m_eBounceDirection
protected
local m_eBounceDirection
protected
float m_elapsed
protected
var m_elapsed
protected
local m_elapsed
protected
DRAGPANEL_MOVE_TYPE m_eMoveType
protected
var m_eMoveType
protected
local m_eMoveType
protected
CCPoint m_endPosition
protected
var m_endPosition
protected
local m_endPosition
protected
float m_fAutoMoveDuration
protected
var m_fAutoMoveDuration
protected
local m_fAutoMoveDuration
protected
float m_fAutoMoveEaseRate
protected
var m_fAutoMoveEaseRate
protected
local m_fAutoMoveEaseRate
protected
float m_fBounceDuration
protected
var m_fBounceDuration
protected
local m_fBounceDuration
protected
float m_fBounceEaseRate
protected
var m_fBounceEaseRate
protected
local m_fBounceEaseRate
protected
float m_fDuration
protected
var m_fDuration
protected
local m_fDuration
protected
float m_fSlidTime
protected
var m_fSlidTime
protected
local m_fSlidTime
protected
int m_nActionType
protected
var m_nActionType
protected
local m_nActionType
protected
UIWidget* m_pActionWidget
protected
var m_pActionWidget
protected
local m_pActionWidget
protected
CCObject* m_pBerthToBottomListener
protected
var m_pBerthToBottomListener
protected
local m_pBerthToBottomListener
protected
CCObject*
m_pBerthToLeftBottomListener
protected
var m_pBerthToLeftBottomListener
protected
local m_pBerthToLeftBottomListener
protected
CCObject* m_pBerthToLeftListener
protected
var m_pBerthToLeftListener
protected
local m_pBerthToLeftListener
protected
CCObject* m_pBerthToLeftTopListener
protected
var m_pBerthToLeftTopListener
protected
local m_pBerthToLeftTopListener
protected
CCObject*
m_pBerthToRightBottomListener
protected
var m_pBerthToRightBottomListener
protected
local m_pBerthToRightBottomListener
protected
CCObject* m_pBerthToRightListener
protected
var m_pBerthToRightListener
protected
local m_pBerthToRightListener
protected
CCObject*
m_pBerthToRightTopListener
protected
var m_pBerthToRightTopListener
protected
local m_pBerthToRightTopListener
protected
CCObject* m_pBerthToTopListener
protected
var m_pBerthToTopListener
protected
local m_pBerthToTopListener
protected
CCObject* m_pBounceOverListener
protected
var m_pBounceOverListener
protected
local m_pBounceOverListener
protected
CCObject* m_pBounceToBottomListener
protected
var m_pBounceToBottomListener
protected
local m_pBounceToBottomListener
protected
CCObject*
m_pBounceToLeftBottomListener
protected
var m_pBounceToLeftBottomListener
protected
local m_pBounceToLeftBottomListener
protected
CCObject* m_pBounceToLeftListener
protected
var m_pBounceToLeftListener
protected
local m_pBounceToLeftListener
protected
CCObject*
m_pBounceToLeftTopListener
protected
var m_pBounceToLeftTopListener
protected
local m_pBounceToLeftTopListener
protected
CCObject*
m_pBounceToRightBottomListener
protected
var m_pBounceToRightBottomListener
protected
local
m_pBounceToRightBottomListener
protected
CCObject* m_pBounceToRightListener
protected
var m_pBounceToRightListener
protected
local m_pBounceToRightListener
protected
CCObject*
m_pBounceToRightTopListener
protected
var m_pBounceToRightTopListener
protected
local m_pBounceToRightTopListener
protected
CCObject* m_pBounceToTopListener
protected
var m_pBounceToTopListener
protected
local m_pBounceToTopListener
protected
CCObject* m_pEventLister
protected
var m_pEventLister
protected
local m_pEventLister
protected
SEL_DragPanelBerthToBottomEvent
m_pfnBerthToBottomSelector
protected
var m_pfnBerthToBottomSelector
protected
local m_pfnBerthToBottomSelector
protected
SEL_DragPanelBerthToLeftBottomEvent
m_pfnBerthToLeftBottomSelector
protected
var m_pfnBerthToLeftBottomSelector
protected
local
m_pfnBerthToLeftBottomSelector
protected
SEL_DragPanelBerthToLeftEvent
m_pfnBerthToLeftSelector
protected
var m_pfnBerthToLeftSelector
protected
local m_pfnBerthToLeftSelector
protected
SEL_DragPanelBerthToLeftTopEvent
m_pfnBerthToLeftTopSelector
protected
var m_pfnBerthToLeftTopSelector
protected
local m_pfnBerthToLeftTopSelector
protected
SEL_DragPanelBerthToRightBottomEvent
m_pfnBerthToRightBottomSelector
protected
var m_pfnBerthToRightBottomSelector
protected
local
m_pfnBerthToRightBottomSelector
protected
SEL_DragPanelBerthToRightEvent
m_pfnBerthToRightSelector
protected
var m_pfnBerthToRightSelector
protected
local m_pfnBerthToRightSelector
protected
SEL_DragPanelBerthToRightTopEvent
m_pfnBerthToRightTopSelector
protected
var m_pfnBerthToRightTopSelector
protected
local m_pfnBerthToRightTopSelector
protected
SEL_DragPanelBerthToTopEvent
m_pfnBerthToTopSelector
protected
var m_pfnBerthToTopSelector
protected
local m_pfnBerthToTopSelector
protected
SEL_DragPanelBounceOverEvent
m_pfnBounceOverSelector
protected
var m_pfnBounceOverSelector
protected
local m_pfnBounceOverSelector
protected
SEL_DragPanelBounceToBottomEvent
m_pfnBounceToBottomSelector
protected
var m_pfnBounceToBottomSelector
protected
local m_pfnBounceToBottomSelector
protected
SEL_DragPanelBounceToLeftBottomEvent
m_pfnBounceToLeftBottomSelector
protected
var m_pfnBounceToLeftBottomSelector
protected
local
m_pfnBounceToLeftBottomSelector
protected
SEL_DragPanelBounceToLeftEvent
m_pfnBounceToLeftSelector
protected
var m_pfnBounceToLeftSelector
protected
local m_pfnBounceToLeftSelector
protected
SEL_DragPanelBounceToLeftTopEvent
m_pfnBounceToLeftTopSelector
protected
var m_pfnBounceToLeftTopSelector
protected
local m_pfnBounceToLeftTopSelector
protected
SEL_DragPanelBounceToRightBottomEvent
m_pfnBounceToRightBottomSelector
protected
var
m_pfnBounceToRightBottomSelector
protected
local
m_pfnBounceToRightBottomSelector
protected
SEL_DragPanelBounceToRightEvent
m_pfnBounceToRightSelector
protected
var m_pfnBounceToRightSelector
protected
local m_pfnBounceToRightSelector
protected
SEL_DragPanelBounceToRightTopEvent
m_pfnBounceToRightTopSelector
protected
var m_pfnBounceToRightTopSelector
protected
local m_pfnBounceToRightTopSelector
protected
SEL_DragPanelBounceToTopEvent
m_pfnBounceToTopSelector
protected
var m_pfnBounceToTopSelector
protected
local m_pfnBounceToTopSelector
protected
SEL_DragPanelEvent
m_pfnEventSelector
protected
var m_pfnEventSelector
protected
local m_pfnEventSelector
protected
Layout* m_pInnerContainer
protected
var m_pInnerContainer
protected
local m_pInnerContainer
protected
CCPoint m_positionDelta
protected
var m_positionDelta
protected
local m_positionDelta
protected
CCPoint m_previousPosition
protected
var m_previousPosition
protected
local m_previousPosition
protected
CCPoint m_startPosition
protected
var m_startPosition
protected
local m_startPosition
protected
CCPoint m_touchEndWorldSpace
protected
var m_touchEndWorldSpace
protected
local m_touchEndWorldSpace
protected
CCPoint m_touchStartNodeSpace
protected
var m_touchStartNodeSpace
protected
local m_touchStartNodeSpace
protected
CCPoint m_touchStartWorldSpace
protected
var m_touchStartWorldSpace
protected
local m_touchStartWorldSpace
protected

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