cachedBoundingRectangle property

Pointer<RECT> get cachedBoundingRectangle

Retrieves the cached coordinates of the rectangle that completely encloses the element.

To learn more, see learn.microsoft.com/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement-get_cachedboundingrectangle.

Implementation

Pointer<RECT> get cachedBoundingRectangle {
  final retVal = adaptiveCalloc<RECT>();
  final hr$ = HRESULT(_get_CachedBoundingRectangleFn(ptr, retVal));
  if (hr$.isError) {
    free(retVal);
    throw WindowsException(hr$);
  }
  return retVal;
}