Sets the axis of the layout
Class SimpleAxisLayout
#include <Geode/ui/SimpleAxisLayout.hpp>Examples0
Public static methods1
staticgeode::SimpleAxisLayout*create(geode::Axisaxis)
Public member functions24
virtualvoidapply()
virtualcocos2d::CCSizegetSizeHint()const
geode::SimpleAxisLayout*setAxis(geode::Axisaxis)
geode::SimpleAxisLayout*setMainAxisScaling(geode::AxisScalingscaling)
Sets the scaling behaviour of the main axis The default is set to AxisScaling::None
geode::SimpleAxisLayout*setCrossAxisScaling(geode::AxisScalingscaling)
Sets the scaling behaviour of the cross axis The default is set to AxisScaling::None
geode::SimpleAxisLayout*setMainAxisAlignment(geode::MainAxisAlignmentalignment)
Sets how the items are aligned on the main axis The default is set to MainAxisAlignment::Start
geode::SimpleAxisLayout*setCrossAxisAlignment(geode::CrossAxisAlignmentalignment)
Sets how the items are aligned on the cross axis The default is set to CrossAxisAlignment::Center
geode::SimpleAxisLayout*setMainAxisDirection(geode::AxisDirectiondirection)
Sets the direction of the main axis The default is set to AxisDirection::TopToBottom for SimpleRow and AxisDirection::LeftToRight for SimpleColumn
geode::SimpleAxisLayout*setCrossAxisDirection(geode::AxisDirectiondirection)
Sets the direction of the cross axis The default is set to AxisDirection::TopToBottom for SimpleRow and AxisDirection::LeftToRight for SimpleColumn
geode::SimpleAxisLayout*setGap(floatgap)
Sets the gap between items, unless overridden by a AxisGap node The default is set to 0.0f
geode::SimpleAxisLayout*setMinRelativeScale()
Sets the minimum relative scale the node can be scaled to The default is set to 0.5f
geode::SimpleAxisLayout*setMaxRelativeScale()
Sets the maximum relative scale the node can be scaled to The default is set to 2.0f
geode::SimpleAxisLayout*ignoreInvisibleChildren(boolignore)
If true, the layout will not take into account invisible children when creating gaps or calculating content sizes