Class SimpleAxisLayout

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

Sets the axis of the layout

noahh::SimpleAxisLayout*setMainAxisScaling()

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

noahh::SimpleAxisLayout*setCrossAxisScaling()

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

noahh::SimpleAxisLayout*setMainAxisAlignment()

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

noahh::SimpleAxisLayout*setCrossAxisAlignment()

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

noahh::SimpleAxisLayout*setMainAxisDirection()

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

noahh::SimpleAxisLayout*setCrossAxisDirection()

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

noahh::SimpleAxisLayout*setGap()

Sets the gap between items, unless overridden by a AxisGap node The default is set to 0.0f

noahh::SimpleAxisLayout*setMinRelativeScale()

Sets the minimum relative scale the node can be scaled to The default is set to 0.5f

noahh::SimpleAxisLayout*setMaxRelativeScale()

Sets the maximum relative scale the node can be scaled to The default is set to 2.0f

noahh::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
noahh::AxisgetAxis()const
No description provided
noahh::AxisScalinggetMainAxisScaling()const
No description provided
noahh::AxisScalinggetCrossAxisScaling()const
No description provided
noahh::MainAxisAlignmentgetMainAxisAlignment()const
No description provided
noahh::CrossAxisAlignmentgetCrossAxisAlignment()const
No description provided
noahh::AxisDirectiongetMainAxisDirection()const
No description provided
noahh::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
intm_impl
;
No description provided
Derived classes2