addToHitGrid method

void addToHitGrid(
  1. int x,
  2. int y,
  3. int width,
  4. int height,
  5. int id,
)

Registers a low-level native/debug hit-grid region.

Built-in widgets use render-tree hit testing for pointer routing.

Implementation

void addToHitGrid(int x, int y, int width, int height, int id) {
  _checkNotDisposed();
  _bindings.addToHitGrid(_handle, x, y, width, height, id);
}