Skip to content

Instantly share code, notes, and snippets.

@andreymusth
Created July 19, 2021 05:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreymusth/72d854c010938bac16b52f974b8f20ba to your computer and use it in GitHub Desktop.
Save andreymusth/72d854c010938bac16b52f974b8f20ba to your computer and use it in GitHub Desktop.
hit test
/**
* Executes a hit test on any appropriate type associated with this [LayoutNodeWrapper].
*
* Override appropriately to either add a [PointerInputFilter] to [hitPointerInputFilters] or
* to pass the execution on.
*
* @param pointerPosition The tested pointer position, which is relative to
* the [LayoutNodeWrapper].
* @param hitPointerInputFilters The collection that the hit [PointerInputFilter]s will be
* added to if hit.
*/
abstract fun hitTest(
pointerPosition: Offset,
hitPointerInputFilters: MutableList<PointerInputFilter>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment