mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-20 23:37:41 +00:00
Deprecate the following obsolete functions and properties: * `keyman.helpURL` * `keyman.util.rgba` * `keyman.util.toFloat` * `keyman.util.toNumber` * `keyman.util.toNzString` Use correct language for code blocks in Keyman Engine for Web documentation. Test-bot: skip
42 lines
598 B
Markdown
42 lines
598 B
Markdown
---
|
|
title: getRect
|
|
---
|
|
|
|
## Summary
|
|
|
|
Get absolute position and size of OSK window.
|
|
|
|
## Syntax
|
|
|
|
```js
|
|
keyman.osk.getRect()
|
|
```
|
|
|
|
### Parameters
|
|
|
|
None.
|
|
|
|
### Return Value
|
|
|
|
`Object`
|
|
: The position and size of the OSK's container element.
|
|
|
|
## Description
|
|
|
|
The returned `getRect` object contains the following members:
|
|
|
|
`left`
|
|
: `number`
|
|
: The x-coordinate corresponding to the left side of the OSK.
|
|
|
|
`top`
|
|
: `number`
|
|
: The y-coordinate corresponding to the top of the OSK.
|
|
|
|
`width`
|
|
: `number`
|
|
: The width (in pixels) of the OSK.
|
|
|
|
`height`
|
|
: `number`
|
|
: The height (in pixels) of the OSK.
|