Group
Functions summary
Unit |
@ComposableDefines a group of |
Cmn
|
Functions
Group
@Composable
@VectorComposable
fun Group(
name: String = DefaultGroupName,
rotation: Float = DefaultRotation,
pivotX: Float = DefaultPivotX,
pivotY: Float = DefaultPivotY,
scaleX: Float = DefaultScaleX,
scaleY: Float = DefaultScaleY,
translationX: Float = DefaultTranslationX,
translationY: Float = DefaultTranslationY,
clipPathData: List<PathNode> = EmptyPath,
content: @Composable @VectorComposable () -> Unit
): Unit
Defines a group of Paths and other Groups inside a VectorPainter. This is not a regular UI composable, it can only be called inside composables called from the content parameter to rememberVectorPainter.
| Parameters | |
|---|---|
name: String = DefaultGroupName |
Optional name of the group used when describing the vector as a string. |
rotation: Float = DefaultRotation |
The rotation of the group around the Z axis, in degrees. |
pivotX: Float = DefaultPivotX |
The horizontal pivot point used for rotation, in pixels. |
pivotY: Float = DefaultPivotY |
The vertical pivot point used for rotation, in pixels. |
scaleX: Float = DefaultScaleX |
Factor to scale the group by horizontally. |
scaleY: Float = DefaultScaleY |
Factor to scale the group by vertically. |
translationX: Float = DefaultTranslationX |
Horizontal offset of the group, in pixels. |
translationY: Float = DefaultTranslationY |
Vertical offset of the group, in pixels. |
clipPathData: List<PathNode> = EmptyPath |
A list of |
content: @Composable @VectorComposable () -> Unit |
A composable that defines the contents of the group. |