natiny.view.set_pickable

Lua
natiny.view.set_pickable(view, pickable)

Sets whether the pointer can land on a view, or passes through it to what is below.

Parameters

Name Type Description
view number View handle
pickable boolean false to let the pointer through

Example

Lua
-- a tooltip that must not steal the hover from the button under it
natiny.view.set_pickable(tooltip, false)

Notes

  • It does not change drawing. natiny.view.HOOK_DRAW is called as usual.