A layout for automatically copying the content size of a node to other nodes. Basically main use case is for FLAlertLayers (setting the size of the background and m_buttonMenu
based on m_mainLayer
)
Class CopySizeLayout
#include <Geode/ui/Layout.hpp>
classCopySizeLayout:publicgeode::AnchorLayout{ ... }
Examples0
Public static methods1
staticgeode::CopySizeLayout*create()
No description provided
Public member functions4
geode::CopySizeLayout*add(cocos2d::CCNode*target)
Add a target to be automatically resized. Any targets’ layouts will also be updated when this layout is updated
geode::CopySizeLayout*remove(cocos2d::CCNode*target)
Remove a target from being automatically resized
virtualvoidapply()
No description provided
virtualcocos2d::CCSizegetSizeHint()const
No description provided
Fields0
Protected member functions0
Protected fields1
cocos2d::CCArray*m_targets;
No description provided