struct ScrollSnapshot
source · line 34public
public struct ScrollSnapshot(val offset: Point, val viewport: Size, val content: Size, val padding: ScrollPadding = ScrollPadding())
field viewport
source · line 36public
val viewport: Size
field padding
source · line 38public
val padding: ScrollPadding = ScrollPadding()
property visibleSize
source · line 47public
public val visibleSize: Size
get: public read-only
Unobscured extent used by reveal and page navigation.
getter get
source · line 47public
get(): Size
function revealedOffset
source · line 54public
public fun revealedOffset(rect: Rect, horizontal: ScrollAlignment = ScrollAlignment.Nearest, vertical: ScrollAlignment = ScrollAlignment.Nearest): Point
parameter rect
source · line 55public
rect: Rect
parameter vertical
source · line 57public
vertical: ScrollAlignment = ScrollAlignment.Nearest
parameter horizontal
source · line 56public
horizontal: ScrollAlignment = ScrollAlignment.Nearest
field content
source · line 37public
val content: Size
property maximum
source · line 52public
public val maximum: Point
get: public read-only
getter get
source · line 52public
get(): Point
property bodySize
source · line 41public
public val bodySize: Size
get: public read-only
Content extent before the reveal margins were added.
getter get
source · line 41public
get(): Size
field offset
source · line 35public
val offset: Point
constructor constructor
source · line 34public
constructor(val offset: Point, val viewport: Size, val content: Size, val padding: ScrollPadding = ScrollPadding())
parameter viewport
source · line 36public
val viewport: Size
parameter offset
source · line 35public
val offset: Point
parameter padding
source · line 38public
val padding: ScrollPadding = ScrollPadding()
parameter content
source · line 37public
val content: Size
function equals
source · line 34publiccompiler-derived
operator fun equals(other: ScrollSnapshot): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: Point, Size, ScrollPadding.