A spacer node that updates the content size of its child to match its own
Class SpacerNodeChild
#include <Geode/ui/SpacerNode.hpp>
classSpacerNodeChild:publicgeode::SpacerNode{ ... }
ℹ This is useful for making a spacer node that takes up the remaining space in a layout
Examples0
Public static methods1
staticgeode::SpacerNodeChild*create(cocos2d::CCNode*child,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)
grow
The grow factor for this node. Default is 1
Public member functions1
virtualvoidsetContentSize()
No description provided
Fields0
Protected member functions1
boolinit(cocos2d::CCNode*child,size_tgrow)
No description provided
Protected fields1
cocos2d::CCNode*m_child;
No description provided