Class SimpleAxisLayout

#include <Geode/ui/SimpleAxisLayout.hpp>
classSimpleAxisLayout:publicgeode::Layout{ ... }
No description provided
Examples0
Public static methods1
staticgeode::SimpleAxisLayout*create()
No description provided
Public member functions24
virtualvoidapply()
No description provided
virtualcocos2d::CCSizegetSizeHint()const
No description provided
geode::SimpleAxisLayout*setAxis()

Sets the axis of the layout

geode::SimpleAxisLayout*setMainAxisScaling()

Sets the scaling behaviour of the main axis The default is set to AxisScaling::None

geode::SimpleAxisLayout*setCrossAxisScaling()

Sets the scaling behaviour of the cross axis The default is set to AxisScaling::None

geode::SimpleAxisLayout*setMainAxisAlignment()

Sets how the items are aligned on the main axis The default is set to MainAxisAlignment::Start

geode::SimpleAxisLayout*setCrossAxisAlignment()

Sets how the items are aligned on the cross axis The default is set to CrossAxisAlignment::Center

geode::SimpleAxisLayout*setMainAxisDirection()

Sets the direction of the main axis The default is set to AxisDirection::TopToBottom for SimpleRow and AxisDirection::LeftToRight for SimpleColumn

geode::SimpleAxisLayout*setCrossAxisDirection()

Sets the direction of the cross axis The default is set to AxisDirection::TopToBottom for SimpleRow and AxisDirection::LeftToRight for SimpleColumn

geode::SimpleAxisLayout*setGap()

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

boolisIgnoreInvisibleChildren()const
No description provided
geode::AxisgetAxis()const
No description provided
geode::AxisScalinggetMainAxisScaling()const
No description provided
geode::AxisScalinggetCrossAxisScaling()const
No description provided
geode::MainAxisAlignmentgetMainAxisAlignment()const
No description provided
geode::CrossAxisAlignmentgetCrossAxisAlignment()const
No description provided
geode::AxisDirectiongetMainAxisDirection()const
No description provided
geode::AxisDirectiongetCrossAxisDirection()const
No description provided
floatgetGap()const
No description provided
std::optional<float>getMinRelativeScale()const
No description provided
std::optional<float>getMaxRelativeScale()const
No description provided
Fields0
Protected member functions0
Protected fields1
;
No description provided
Derived classes2