IconFileContents

@Serializable
data class IconFileContents(val pkg: String = "", val iconName: String = "", val theme: String = "", val width: Float, val height: Float, val viewportWidth: Float = width, val viewportHeight: Float = height, val nodes: List<ImageVectorNode>, val receiverType: String? = null, val addToMaterial: Boolean = false, val noPreview: Boolean = false, val makeInternal: Boolean = false, val imports: Set<String> = defaultImports)(source)

Represents the contents of an icon file, including its package, icon name, theme, dimensions, nodes, and other attributes.

Constructors

Link copied to clipboard
constructor(pkg: String = "", iconName: String = "", theme: String = "", width: Float, height: Float, viewportWidth: Float = width, viewportHeight: Float = height, nodes: List<ImageVectorNode>, receiverType: String? = null, addToMaterial: Boolean = false, noPreview: Boolean = false, makeInternal: Boolean = false, imports: Set<String> = defaultImports)

Properties

Link copied to clipboard
@Transient
val addToMaterial: Boolean

Whether to add the icon to the Icons.Filled object.

Link copied to clipboard

The height of the icon in density-independent pixels.

Link copied to clipboard
@Transient
val iconName: String

The name of the icon.

Link copied to clipboard
@Transient
val imports: Set<String>

The set of imports to include in the generated code.

Link copied to clipboard
@Transient
val makeInternal: Boolean

Whether to make the icon internal.

Link copied to clipboard

The list of nodes that make up the icon.

Link copied to clipboard
@Transient
val noPreview: Boolean

Whether to disable the preview for the icon.

Link copied to clipboard
@Transient
val pkg: String

The package name of the icon.

Link copied to clipboard
@Transient
val receiverType: String?

The type of the receiver object for the icon, if any.

Link copied to clipboard
@Transient
val theme: String

The theme of the Compose application.

Link copied to clipboard

The height of the viewport in floating-point units.

Link copied to clipboard

The width of the viewport in floating-point units.

Link copied to clipboard

The width of the icon in density-independent pixels.

Functions

Link copied to clipboard

Generates the Kotlin code for the icon.