Class SpacerNodeChild

#include <Geode/cocos/base_nodes/SpacerNode.hpp>
classSpacerNodeChild:publiccocos2d::SpacerNode{ ... }

A spacer node that updates the content size of its child to match its own

ℹ This is useful for making a spacer node that takes up the remaining space in a layout

Examples0
Public static methods1
staticcocos2d::SpacerNodeChild*create(,
size_tgrow
)

Create a new spacer node. When the layout is applied, if there is space left over the remaining space is distributed among all spacer nodes in proportion to the sum of all the spacers’ grow factors (akin to CSS flew grow)

Parameters

grow

The grow factor for this node. Default is 1
Public member functions1
virtualvoidsetContentSize()
No description provided
Fields0
Protected member functions1
boolinit(,
size_tgrow
)
No description provided
Protected fields1
;
No description provided