GetMetrics returns view rectangle of currently focused text field and cursor rectangle, both in stage (root) coordinate space.
Parameters |
Description |
RectF* pviewRect |
Pointer to the view rectangle. |
RectF* pcursorRect |
Pointer to the cursor rectangle. |
int cursorOffset = 0 |
Offset value from the actual cursor position; may be negative. |