ScrollPanelBehavior

Configures how a ScrollPanel behaves.

Types

Link copied to clipboard

Indicates whether a ScrollPanel's scroll bar is vertical or horizontal

Properties

Link copied to clipboard

Children within a ScrollPanel

Link copied to clipboard

A ScrollPanel's insets

Link copied to clipboard

Whether a ScrollPanel is a focus-cycle-root

Link copied to clipboard

A ScrollPanel's layout

Link copied to clipboard
abstract var onScroll: (Point) -> Unit?

Listener registered by ScrollPanel to listen for scroll events from the behavior. Behaviors should be used this instead of ScrollPanel.scrollTo since it bi-passes validation to support things like bouncing.

Link copied to clipboard

Listener registered by ScrollPanel to listen for scroll bar visibility events from the behavior.

Functions

Link copied to clipboard
abstract fun scrollTo(panel: ScrollPanel, point: Point)

Called by the ScrollPanel that this behavior is installed in whenever the panel scrolls.

Inherited functions

Link copied to clipboard

Allows the Behavior to override the View's View.childrenClipPath property.

Link copied to clipboard

Allows the Behavior to override the View's View.clipCanvasToBounds property.

Link copied to clipboard
open fun contains(view: ScrollPanel, point: Point): Boolean

Returns true if the point is within the View's bounds. This can be used to handle cases when the Behavior wants to control hit detection.

Link copied to clipboard
open fun install(view: ScrollPanel)

Called when the Behavior is applied to a View.

Link copied to clipboard

Allows the Behavior to override the View's View.mirrorWhenRightLeft property.

Link copied to clipboard
open fun render(view: ScrollPanel, canvas: Canvas)

Invoked to render the given View.

Link copied to clipboard
open fun uninstall(view: ScrollPanel)

Called when the Behavior is removed from a View.