Cocos2d-x  v3.12
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
Button Member List

This is the complete list of members for Button, including all inherited members.

_IDRef
_luaIDRef
_rootedRef
_scriptObjectRef
_scriptOwnedRef
addCCSEventListener(const ccWidgetEventCallback &callback)Widgetvirtual
addChild(Node *child)Nodevirtual
addChild(Node *child, int localZOrder)Nodevirtual
addChild(Node *child, int localZOrder, int tag)Nodevirtual
addChild(Node *child, int localZOrder, const std::string &name)Nodevirtual
addClickEventListener(const ccWidgetClickCallback &callback)Widget
addComponent(Component *component)Nodevirtual
addProtectedChild(Node *child)ProtectedNodevirtual
addProtectedChild(Node *child, int localZOrder)ProtectedNodevirtual
addProtectedChild(Node *child, int localZOrder, int tag)ProtectedNodevirtual
addTouchEventListener(Ref *target, SEL_TouchEvent selector)Widget
addTouchEventListener(const ccWidgetTouchCallback &callback)Widget
autorelease()Ref
boundingBox() const Nodeinlinevirtual
BrightStyle enum nameWidget
Button()Button
ccWidgetClickCallback typedefWidget
ccWidgetEventCallback typedefWidget
ccWidgetTouchCallback typedefWidget
cleanup() overrideProtectedNodevirtual
clippingParentAreaContainPoint(const Vec2 &pt)Widgetinline
clone()Widget
convertToNodeSpace(const Vec2 &worldPoint) const Node
convertToNodeSpaceAR(const Vec2 &worldPoint) const Node
convertTouchToNodeSpace(Touch *touch) const Node
convertTouchToNodeSpaceAR(Touch *touch) const Node
convertToWorldSpace(const Vec2 &nodePoint) const Node
convertToWorldSpaceAR(const Vec2 &nodePoint) const Node
create()Buttonstatic
create(const std::string &normalImage, const std::string &selectedImage="", const std::string &disableImage="", TextureResType texType=TextureResType::LOCAL)Buttonstatic
dispatchFocusEvent(Widget *widgetLoseFocus, Widget *widgetGetFocus)Widgetprotected
draw(Renderer *renderer, const Mat4 &transform, uint32_t flags)Nodevirtual
enumerateChildren(const std::string &name, std::function< bool(Node *node)> callback) const Nodevirtual
findNextFocusedWidget(FocusDirection direction, Widget *current)Widgetvirtual
FocusDirection enum nameWidget
getActionByTag(int tag)Node
getActionManager()Nodeinlinevirtual
getActionTag() const Widget
getAnchorPoint() const Nodevirtual
getAnchorPointInPoints() const Nodevirtual
getBottomBoundary() const Widget
getBottomInParent()Widgetinline
getBoundingBox() const Nodevirtual
getCallbackName() const Widgetinline
getCallbackType() const Widgetinline
getCameraMask() const Nodeinline
getCapInsetsDisabledRenderer() const Button
getCapInsetsNormalRenderer() const Button
getCapInsetsPressedRenderer() const Button
getChildByName(const std::string &name) const Nodevirtual
getChildByName(const std::string &name) const Nodeinline
getChildByTag(int tag) const Nodevirtual
getChildByTag(int tag) const Nodeinline
getChildren()Nodeinlinevirtual
getChildrenCount() const Nodevirtual
getColor() const Nodevirtual
getComponent(const std::string &name)Node
getContentSize() const Nodevirtual
getCurrentFocusedWidget(bool isWidget)Widgetinline
getCurrentFocusedWidget()Widgetstatic
getCustomSize() const Widget
getDescription() const overrideButtonvirtual
getDisabledFile()Button
getDisplayedColor() const Nodevirtual
getDisplayedOpacity() const Nodevirtual
getEventDispatcher() const Nodeinlinevirtual
getGlobalZOrder() const Nodeinlinevirtual
getGLProgram() const Node
getGLProgramState() const Node
getGLServerState() const Nodeinline
getLayoutParameter() const overrideWidgetvirtual
getLayoutParameter(LayoutParameter::Type type)Widget
getLayoutSize()Widgetinlinevirtual
getLeftBoundary() const Widget
getLeftInParent()Widgetinline
getLocalZOrder() const Nodeinlinevirtual
getName() const Nodevirtual
getNodeToParentAffineTransform(Node *ancestor) const Nodevirtual
getNodeToParentTransform() const Nodevirtual
getNodeToParentTransform(Node *ancestor) const Nodevirtual
getNodeToWorldTransform() const Nodevirtual
getNormalFile()Button
getNormalizedPosition() const Nodevirtual
getNumberOfRunningActions() const Node
getOnEnterCallback() const Nodeinline
getonEnterTransitionDidFinishCallback() const Nodeinline
getOnExitCallback() const Nodeinline
getonExitTransitionDidStartCallback() const Nodeinline
getOpacity() const Nodevirtual
getOrderOfArrival() const Node
getParent()Nodeinlinevirtual
getParentToNodeTransform() const Nodevirtual
getPhysicsBody() const Nodeinline
getPosition() const Nodevirtual
getPosition(float *x, float *y) const Nodevirtual
getPosition3D() const Nodevirtual
getPositionPercent()Widget
getPositionType() const Widget
getPositionX(void) const Nodevirtual
getPositionY(void) const Nodevirtual
getPositionZ() const Nodevirtual
getPressedFile()Button
getProtectedChildByTag(int tag)ProtectedNodevirtual
getReferenceCount() const Ref
getRendererClicked() const Buttoninline
getRendererDisabled() const Buttoninline
getRendererNormal() const Buttoninline
getRightBoundary() const Widget
getRightInParent()Widgetinline
getRotation() const Nodevirtual
getRotation3D() const Nodevirtual
getRotationQuat() const Nodevirtual
getRotationSkewX() const Nodevirtual
getRotationSkewY() const Nodevirtual
getScale() const overrideWidgetvirtual
getScaleX() const overrideWidgetvirtual
getScaleY() const overrideWidgetvirtual
getScaleZ() const Nodevirtual
getScene() const Nodevirtual
getScheduler()Nodeinlinevirtual
getSize() const Widget
getSizePercent()Widget
getSizeType() const Widget
getSkewX() const Nodevirtual
getSkewY() const Nodevirtual
getTag() const Nodevirtual
getTitleColor() const Button
getTitleFontName() const Button
getTitleFontSize() const Button
getTitleRenderer() const Button
getTitleText() const Button
getTopBoundary() const Widget
getTopInParent()Widgetinline
getTouchBeganPosition() const Widget
getTouchStartPos() const Widgetinline
getUserData()Nodeinlinevirtual
getUserObject()Nodeinlinevirtual
getVirtualRenderer() overrideButtonvirtual
getVirtualRendererSize() const overrideButtonvirtual
getWorldPosition() const Widget
getWorldToNodeTransform() const Nodevirtual
getZoomScale() const Button
hitTest(const Vec2 &pt, const Camera *camera, Vec3 *p) const Widgetvirtual
ignoreContentAdaptWithSize(bool ignore) overrideButtonvirtual
INVALID_TAGNodestatic
isBright() const Widget
isCascadeColorEnabled() const Nodevirtual
isCascadeOpacityEnabled() const Nodevirtual
isClippingParentContainsPoint(const Vec2 &pt)Widget
isEnabled() const Widget
isFlippedX() const Widgetinlinevirtual
isFlippedY() const Widgetinlinevirtual
isFlipX()Widgetinline
isFlipY()Widgetinline
isFocused() const Widget
isFocusEnabled() const Widget
isHighlighted() const Widget
isIgnoreAnchorPointForPosition() const Nodevirtual
isIgnoreContentAdaptWithSize() const Widget
isLayoutComponentEnabled() const Widget
isOpacityModifyRGB() const Nodeinlinevirtual
isPropagateTouchEvents() const Widget
isRunning() const Nodevirtual
isScale9Enabled() const Button
isScheduled(SEL_SCHEDULE selector)Node
isScheduled(const std::string &key)Node
isSwallowTouches() const Widget
isTouchEnabled() const Widget
isUnifySizeEnabled() const Widget
isVisible() const Nodevirtual
loadTextureDisabled(const std::string &disabled, TextureResType texType=TextureResType::LOCAL)Button
loadTextureNormal(const std::string &normal, TextureResType texType=TextureResType::LOCAL)Button
loadTexturePressed(const std::string &selected, TextureResType texType=TextureResType::LOCAL)Button
loadTextures(const std::string &normal, const std::string &selected, const std::string &disabled="", TextureResType texType=TextureResType::LOCAL)Button
nodeToParentTransform() const Nodeinlinevirtual
nodeToWorldTransform() const Nodeinlinevirtual
numberOfRunningActions() const Nodeinline
onEnter() overrideWidgetvirtual
onEnterTransitionDidFinish() overrideProtectedNodevirtual
onExit() overrideWidgetvirtual
onExitTransitionDidStart() overrideProtectedNodevirtual
onFocusChange(Widget *widgetLostFocus, Widget *widgetGetFocus)Widgetprotected
onFocusChangedWidget
onNextFocusedWidgetWidget
onTouchBegan(Touch *touch, Event *unusedEvent)Widgetvirtual
onTouchCancelled(Touch *touch, Event *unusedEvent)Widgetvirtual
onTouchEnded(Touch *touch, Event *unusedEvent)Widgetvirtual
onTouchMoved(Touch *touch, Event *unusedEvent)Widgetvirtual
parentToNodeTransform() const Nodeinlinevirtual
pause(void)Nodevirtual
pauseSchedulerAndActions()Node
PositionType enum nameWidget
propagateTouchEvent(TouchEventType event, Widget *sender, Touch *touch)Widgetprotected
release()Ref
removeAllChildren()Nodevirtual
removeAllChildrenWithCleanup(bool cleanup)Nodevirtual
removeAllComponents()Nodevirtual
removeAllProtectedChildren()ProtectedNodevirtual
removeAllProtectedChildrenWithCleanup(bool cleanup)ProtectedNodevirtual
removeChild(Node *child, bool cleanup=true)Nodevirtual
removeChildByName(const std::string &name, bool cleanup=true)Nodevirtual
removeChildByTag(int tag, bool cleanup=true)Nodevirtual
removeComponent(const std::string &name)Nodevirtual
removeComponent(Component *component)Nodevirtual
removeFromParent()Nodevirtual
removeFromParentAndCleanup(bool cleanup)Nodevirtual
removeFromPhysicsWorld()Node
removeProtectedChild(Node *child, bool cleanup=true)ProtectedNodevirtual
removeProtectedChildByTag(int tag, bool cleanup=true)ProtectedNodevirtual
reorderChild(Node *child, int localZOrder)Nodevirtual
reorderProtectedChild(Node *child, int localZOrder)ProtectedNodevirtual
requestFocus()Widget
resetDisabledRender()Button
resetNormalRender()Button
resetPressedRender()Button
resume(void)Nodevirtual
resumeSchedulerAndActions()Node
retain()Ref
runAction(Action *action)Nodevirtual
schedule(SEL_SCHEDULE selector, float interval, unsigned int repeat, float delay)Node
schedule(SEL_SCHEDULE selector, float interval)Node
schedule(SEL_SCHEDULE selector)Node
schedule(const std::function< void(float)> &callback, const std::string &key)Node
schedule(const std::function< void(float)> &callback, float interval, const std::string &key)Node
schedule(const std::function< void(float)> &callback, float interval, unsigned int repeat, float delay, const std::string &key)Node
scheduleOnce(SEL_SCHEDULE selector, float delay)Node
scheduleOnce(const std::function< void(float)> &callback, float delay, const std::string &key)Node
scheduleUpdate(void)Node
scheduleUpdateWithPriority(int priority)Node
scheduleUpdateWithPriorityLua(int handler, int priority)Node
setActionManager(ActionManager *actionManager)Nodevirtual
setActionTag(int tag)Widget
setAdditionalTransform(Mat4 *additionalTransform)Node
setAnchorPoint(const Vec2 &anchorPoint)Nodevirtual
setBright(bool bright)Widget
setBrightStyle(BrightStyle style)Widget
setCallbackName(const std::string &callbackName)Widgetinline
setCallbackType(const std::string &callbackType)Widgetinline
setCameraMask(unsigned short mask, bool applyChildren=true) overrideProtectedNodevirtual
setCapInsets(const Rect &capInsets)Button
setCapInsetsDisabledRenderer(const Rect &capInsets)Button
setCapInsetsNormalRenderer(const Rect &capInsets)Button
setCapInsetsPressedRenderer(const Rect &capInsets)Button
setCascadeColorEnabled(bool cascadeColorEnabled)Nodevirtual
setCascadeOpacityEnabled(bool cascadeOpacityEnabled)Nodevirtual
setColor(const Color3B &color)Nodevirtual
setContentSize(const Size &contentSize) overrideWidgetvirtual
setEnabled(bool enabled)Widgetvirtual
setEventDispatcher(EventDispatcher *dispatcher)Nodevirtual
setFlippedX(bool flippedX)Widgetvirtual
setFlippedY(bool flippedY)Widgetvirtual
setFlipX(bool flipX)Widgetinline
setFlipY(bool flipY)Widgetinline
setFocused(bool focus)Widget
setFocusEnabled(bool enable)Widget
setGlobalZOrder(float globalZOrder)Nodevirtual
setGLProgram(GLProgram *glprogram)Nodevirtual
setGLProgramState(GLProgramState *glProgramState)Nodevirtual
setGLServerState(int serverState)Nodeinline
setHighlighted(bool highlight)Widget
setIgnoreAnchorPointForPosition(bool ignore)Nodevirtual
setLayoutComponentEnabled(bool enable)Widget
setLayoutParameter(LayoutParameter *parameter)Widget
setLocalZOrder(int localZOrder)Nodevirtual
setName(const std::string &name)Nodevirtual
setNodeToParentTransform(const Mat4 &transform)Nodevirtual
setNormalizedPosition(const Vec2 &position)Nodevirtual
setOnEnterCallback(const std::function< void()> &callback)Nodeinline
setonEnterTransitionDidFinishCallback(const std::function< void()> &callback)Nodeinline
setOnExitCallback(const std::function< void()> &callback)Nodeinline
setonExitTransitionDidStartCallback(const std::function< void()> &callback)Nodeinline
setOpacity(GLubyte opacity)Nodevirtual
setOpacityModifyRGB(bool value)Nodeinlinevirtual
setOrderOfArrival(int orderOfArrival)Node
setParent(Node *parent)Nodevirtual
setPhysicsBody(PhysicsBody *body)Node
setPosition(const Vec2 &pos) overrideWidgetvirtual
cocos2d::ProtectedNode::setPosition(float x, float y)Nodevirtual
setPosition3D(const Vec3 &position)Nodevirtual
setPositionPercent(const Vec2 &percent)Widget
setPositionType(PositionType type)Widget
setPositionX(float x)Nodevirtual
setPositionY(float y)Nodevirtual
setPositionZ(float positionZ)Nodevirtual
setPressedActionEnabled(bool enabled)Button
setPropagateTouchEvents(bool isPropagate)Widget
setRotation(float rotation)Nodevirtual
setRotation3D(const Vec3 &rotation)Nodevirtual
setRotationQuat(const Quaternion &quat)Nodevirtual
setRotationSkewX(float rotationX)Nodevirtual
setRotationSkewY(float rotationY)Nodevirtual
setScale(float scale) overrideWidgetvirtual
setScale(float scalex, float scaley) overrideWidgetvirtual
setScale9Enabled(bool enable)Buttonvirtual
setScaleX(float scaleX) overrideWidgetvirtual
setScaleY(float scaleY) overrideWidgetvirtual
setScaleZ(float scaleZ)Nodevirtual
setScheduler(Scheduler *scheduler)Nodevirtual
setSize(const Size &size)Widgetvirtual
setSizePercent(const Vec2 &percent)Widgetvirtual
setSizeType(SizeType type)Widget
setSkewX(float skewX)Nodevirtual
setSkewY(float skewY)Nodevirtual
setSwallowTouches(bool swallow)Widget
setTag(int tag)Nodevirtual
setTitleAlignment(TextHAlignment hAlignment)Button
setTitleAlignment(TextHAlignment hAlignment, TextVAlignment vAlignment)Button
setTitleColor(const Color3B &color)Button
setTitleFontName(const std::string &fontName)Button
setTitleFontSize(float size)Button
setTitleText(const std::string &text)Button
setTouchEnabled(bool enabled)Widgetvirtual
setUnifySizeEnabled(bool enable)Widget
setUserData(void *userData)Nodevirtual
setUserObject(Ref *userObject)Nodevirtual
setVisible(bool visible)Nodevirtual
setZoomScale(float scale)Button
SizeType enum nameWidget
sortAllChildren()Nodevirtual
sortAllProtectedChildren()ProtectedNodevirtual
stopAction(Action *action)Node
stopActionByTag(int tag)Node
stopActionsByFlags(unsigned int flags)Node
stopAllActions()Node
stopAllActionsByTag(int tag)Node
TextureResType enum nameWidget
TouchEventType enum nameWidget
unschedule(SEL_SCHEDULE selector)Node
unschedule(const std::string &key)Node
unscheduleAllCallbacks()Node
update(float delta)Nodevirtual
updateDisplayedColor(const Color3B &parentColor) overrideProtectedNodevirtual
updateDisplayedOpacity(GLubyte parentOpacity) overrideProtectedNodevirtual
updatePhysicsBodyTransform(const Mat4 &parentTransform, uint32_t parentFlags, float parentScaleX, float parentScaleY)Nodevirtual
updateSizeAndPosition()Widget
updateSizeAndPosition(const Size &parentSize)Widget
updateTransform()Nodevirtual
updateTransformFromPhysics(const Mat4 &parentTransform, uint32_t parentFlags)Node
visit(cocos2d::Renderer *renderer, const Mat4 &parentTransform, uint32_t parentFlags) overrideWidgetvirtual
Widget(void)Widget
worldToNodeTransform() const Nodeinlinevirtual
~Button()Buttonvirtual
~LayoutParameterProtocol()LayoutParameterProtocolinlinevirtual
~Ref()Refvirtual
~Widget()Widgetvirtual