class IconSizes


A set of named icon sizes.

Sizes can be provided using LocalIconSize to set the size for Icons within a component, or they can be set explicitly using androidx.compose.foundation.layout.size.

See also
Icon
LocalIconSize

Summary

Public constructors

IconSizes(small: Dp, medium: Dp, large: Dp)

Public functions

IconSizes
copy(small: Dp, medium: Dp, large: Dp)

Returns a copy of this IconSizes, optionally overriding some of the values.

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Dp

the size of a large icon.

Dp

the size of a medium icon.

Dp

the size of a small icon.

Public constructors

IconSizes

Added in 1.0.0-alpha01
IconSizes(small: Dp = 32.dp, medium: Dp = 40.dp, large: Dp = 56.dp)

Public functions

copy

Added in 1.0.0-alpha01
fun copy(small: Dp = this.small, medium: Dp = this.medium, large: Dp = this.large): IconSizes

Returns a copy of this IconSizes, optionally overriding some of the values.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

large

val largeDp

the size of a large icon.

medium

val mediumDp

the size of a medium icon. This is the default icon size.

small

val smallDp

the size of a small icon.