[android-components](../index.md) / [mozilla.components.support.ktx.android.view](index.md) / [getRectWithViewLocation](./get-rect-with-view-location.md)

# getRectWithViewLocation

`fun <ERROR CLASS>.getRectWithViewLocation(): <ERROR CLASS>` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/ktx/src/main/java/mozilla/components/support/ktx/android/view/View.kt#L61)

Fills the given [Rect](#) with data about location view in the window.

**See Also**

[View.getLocationInWindow](#)

