GlimmerPagerLayoutInfo

sealed interface GlimmerPagerLayoutInfo


Contains useful information about the currently displayed layout state of a GlimmerHorizontalPager. This information is available after the first measure pass.

Use GlimmerPagerState.layoutInfo to retrieve this.

Summary

Public properties

Int

The content padding in pixels applied after the last page in the direction of scrolling.

Int

The content padding in pixels applied before the first page in the direction of scrolling.

Int

The main axis size of the Pages in pixels for GlimmerHorizontalPager.

Int

The page spacing in pixels for GlimmerHorizontalPager.

Boolean

True if the direction of scrolling and layout is reversed.

Int

The end offset of the layout's viewport in pixels.

IntSize

The size of the viewport in pixels.

Int

The start offset of the layout's viewport in pixels.

Public properties

afterContentPadding

Added in 1.0.0-alpha13
val afterContentPaddingInt

The content padding in pixels applied after the last page in the direction of scrolling. For example it is a end content padding for GlimmerHorizontalPager with reverseLayout set to false.

beforeContentPadding

Added in 1.0.0-alpha13
val beforeContentPaddingInt

The content padding in pixels applied before the first page in the direction of scrolling. For example it is a start content padding for GlimmerHorizontalPager with reverseLayout set to false.

pageSize

Added in 1.0.0-alpha13
val pageSizeInt

The main axis size of the Pages in pixels for GlimmerHorizontalPager.

pageSpacing

Added in 1.0.0-alpha13
val pageSpacingInt

The page spacing in pixels for GlimmerHorizontalPager.

reverseLayout

Added in 1.0.0-alpha13
val reverseLayoutBoolean

True if the direction of scrolling and layout is reversed.

viewportEndOffset

Added in 1.0.0-alpha13
val viewportEndOffsetInt

The end offset of the layout's viewport in pixels. You can think of it as a maximum offset which would be visible. It is the size of the pager layout minus beforeContentPadding.

viewportSize

val viewportSizeIntSize

The size of the viewport in pixels. It is the GlimmerHorizontalPager layout size including all the content paddings.

viewportStartOffset

Added in 1.0.0-alpha13
val viewportStartOffsetInt

The start offset of the layout's viewport in pixels. You can think of it as a minimum offset which would be visible. Usually it is 0, but it can be negative if non-zero beforeContentPadding was applied as the content displayed in the content padding area is still visible.