

Sets the position (X, Y, and Z) in its parent's coordinate system. Gets the y coordinate of the node in its parent's coordinate system. Sets the y coordinate of the node in its parent's coordinate system. Gets the x coordinate of the node in its parent's coordinate system. Gets/Sets x or y coordinate individually for position. Gets position in a more efficient way, returns two number instead of a Vec2 object. Gets the position (x,y) of the node in its parent's coordinate system. SetNormalizedPosition (const Vec2 &position) Sets the position (x,y) using values between 0 and 1. SetPositionNormalized (const Vec2 &position) Sets the position (x,y) of the node in its parent's coordinate system. Gets the scale factor of the node, when X and Y have the same scale factor.

Returns the scale factor on Z axis of this node. More.Ĭhanges the scale factor on Z axis of this node. Returns the scale factor on Y axis of this node. Returns the scale factor on X axis of this node. More.ĭefines the order in which the nodes are renderer. !!! ONLY FOR INTERNAL USE Sets the arrival order when this node has a same ZOrder with other children. LocalZOrder is the 'key' used to sort the node relative to its siblings. SetLocalZOrder (std::int32_t localZOrder) SetProgramState (backend::ProgramState *programState, bool needsRetain=true) Should addChild() make the child follow it's parent's mask? If appl圜hildren is true, then it will modify the camera mask of its children recursively when a child is added. SetCameraMask (unsigned short mask, bool appl圜hildren=true) Get & set camera mask, the node is visible by the camera whose camera flag & node's camera mask is true Get the callback of event ExitTransitionDidStart. GetOnExitTransitionDidStartCallback () const Set the callback of event ExitTransitionDidStart. SetOnExitTransitionDidStartCallback (const std::function &callback) Get the callback of event EnterTransitionDidFinish. GetOnEnterTransitionDidFinishCallback () const Set the callback of event EnterTransitionDidFinish. SetOnEnterTransitionDidFinishCallback (const std::function &callback) SetOnExitCallback (const std::function &callback) SetOnEnterCallback (const std::function &callback) If you want node's color affect the children node's color, then set it to true. SetCascadeColorEnabled (bool cascadeColorEnabled) Query whether cascadeColor is enabled or not.
Ccmenu alignitemsverticallywithpadding update#
Update node's displayed color with its parent color. UpdateDisplayedColor (const Color3B &parentColor) SetCascadeOpacityEnabled (bool cascadeOpacityEnabled)Ĭhange node's cascadeOpacity property. Whether cascadeOpacity is enabled or not. Update the displayed opacity of node with it's parent opacity. UpdateDisplayedOpacity (uint8_t parentOpacity) SetEventDispatcher ( EventDispatcher *dispatcher) Returns an AABB (axis-aligned bounding-box) in its parent's coordinate system. Returns the Scene that contains the Node. Visits this node's children and draw them recursively. Visit (Renderer *renderer, const Mat4 &parentTransform, uint32_t parentFlags) Override this method to draw your own node. Stops all running actions and schedulers.ĭraw (Renderer *renderer, const Mat4 &transform, uint32_t flags) ScheduleUpdateWithPriorityLua (int handler, int priority) Returns whether or not the node is "running". Public Member Functions inherited from Node Initializes a Menu with a NSArray of MenuItem objects InitWithArray (const Vector &arrayOfItems) If node opacity will modify the RGB color value, then you should override this method and return true.

If you want the opacity affect the color property, then set to true. SetOpacityModifyRGB (bool value) override More.Įvent callback that is invoked every time the Node leaves the 'stage'. More.ĪddChild ( Node *child, int zOrder, std::string_view name) overrideĮvent callback that is invoked every time when Node enters the 'stage'. More.ĪddChild ( Node *child, int zOrder, int tag) overrideĪdds a child to the container with z order and tag. More.ĪddChild ( Node *child, int zOrder) overrideĪdds a child to the container with a local z-order. More.Īdds a child to the container with z-order as 0. RemoveChild ( Node *child, bool cleanup) override More.ĪlignItemsInColumns (int columns.) AX_REQUIRES_NULL_TERMINATIONĪlignItemsInColumns (int columns, va_list args)ĪlignItemsInColumnsWithArray (const ValueVector &rows)ĪlignItemsInRows (int rows.) AX_REQUIRES_NULL_TERMINATIONĪlignItemsInRows (int rows, va_list args)ĪlignItemsInRowsWithArray (const ValueVector &columns)ĭetermines if the menu is enabled. More.ĪlignItemsHorizontallyWithPadding (float padding)Īlign items horizontally with padding. AlignItemsVerticallyWithPadding (float padding)Īlign items vertically with padding.
