-
public final class Fit.Layout extends Fit
Invokes the Rive layout engine to apply responsive layout to the artboard. This assumes that the artboard was designed with layouts in mind.
-
-
Field Summary
Fields Modifier and Type Field Description private final FloatscaleFactorprivate final Alignmentalignment
-
Constructor Summary
Constructors Constructor Description Fit.Layout(Float scaleFactor)
-
Method Summary
Modifier and Type Method Description FloatgetScaleFactor()AlignmentgetAlignment()Default alignment. -
-
Constructor Detail
-
Fit.Layout
Fit.Layout(Float scaleFactor)
- Parameters:
scaleFactor- A multiplier to apply to the size of the laid out contents to fine-tune their presentation.
-
-
Method Detail
-
getScaleFactor
Float getScaleFactor()
-
getAlignment
Alignment getAlignment()
Default alignment. Not relevant for all fit modes, but still passed when drawing or on pointer events.
-
-
-
-