Package-level declarations

Functions

Link copied to clipboard
inline fun Style.height(height: Dimen): Style

Sets a specific preferred height for this component when its parent lays it out.

Link copied to clipboard
inline fun Style.heightPercent(heightPercent: Float): Style

Sets a specific preferred percent height for this component when its parent lays it out.

Link copied to clipboard
inline fun Style.margin(all: Dimen? = null, horizontal: Dimen? = null, vertical: Dimen? = null, start: Dimen? = null, top: Dimen? = null, end: Dimen? = null, bottom: Dimen? = null, left: Dimen? = null, right: Dimen? = null): Style

Defines margin around the component on a per-edge basis.

Link copied to clipboard
inline fun Style.marginPercent(all: Float? = null, horizontal: Float? = null, vertical: Float? = null, start: Float? = null, top: Float? = null, end: Float? = null, bottom: Float? = null, left: Float? = null, right: Float? = null): Style

Defines margin around the component on a per-edge basis, with a percent value of container's size. See https://yogalayout.dev/docs/margins-paddings-borders for more information.

Link copied to clipboard
inline fun Style.maxHeight(maxHeight: Dimen): Style

Sets a preferred maximum height for this component when its parent lays it out.

Link copied to clipboard
inline fun Style.maxHeightPercent(maxHeightPercent: Float): Style

Sets a specific maximum percent height for this component when its parent lays it out.

Link copied to clipboard
inline fun Style.maxWidth(maxWidth: Dimen): Style

Sets a preferred maximum width for this component when its parent lays it out.

Link copied to clipboard
inline fun Style.maxWidthPercent(maxWidthPercent: Float): Style

Sets a specific maximum percent width for this component when its parent lays it out.

Link copied to clipboard
inline fun Style.minHeight(minHeight: Dimen): Style

Sets a preferred minimum height for this component when its parent lays it out.

Link copied to clipboard
inline fun Style.minHeightPercent(minHeightPercent: Float): Style

Sets a specific minimum percent height for this component when its parent lays it out.

Link copied to clipboard
inline fun Style.minWidth(minWidth: Dimen): Style

Sets a preferred minimum width for this component when its parent lays it out.

Link copied to clipboard
inline fun Style.minWidthPercent(minWidthPercent: Float): Style

Sets a specific minimum percent width for this component when its parent lays it out.

Link copied to clipboard
inline fun Style.padding(all: Dimen? = null, horizontal: Dimen? = null, vertical: Dimen? = null, start: Dimen? = null, top: Dimen? = null, end: Dimen? = null, bottom: Dimen? = null, left: Dimen? = null, right: Dimen? = null): Style

Defines padding on the component on a per-edge basis.

Link copied to clipboard
inline fun Style.paddingPercent(all: Float? = null, horizontal: Float? = null, vertical: Float? = null, start: Float? = null, top: Float? = null, end: Float? = null, bottom: Float? = null, left: Float? = null, right: Float? = null): Style

Defines padding on the component on a per-edge basis, with a percent value of container's size. See https://yogalayout.dev/docs/margins-paddings-borders for more information.

Link copied to clipboard
inline fun Style.width(width: Dimen): Style

Sets a specific preferred width for this component when its parent lays it out.

Link copied to clipboard
inline fun Style.widthPercent(widthPercent: Float): Style

Sets a specific preferred percent width for this component when its parent lays it out.