# GetTextHitTest

## Description

Returns 1 if the given point in world coordinates is inside the bounding box of the text. If you are testing a mouse or touch coordinate, remember to convert it to world coordinates using ScreenToWorldX and ScreenToWorldY.
This does not take into account individual character positions, for example if you have positioned a character using SetTextCharX or similar. Only the bounding box created by drawing the characters in their default positions is checked.

## Definition

integer GetTextHitTest( iTextIndex, x, y )

int agk::GetTextHitTest( UINT iTextIndex, float x, float y )

## Parameters

- iTextIndex - The ID of the text object to check.
- x - The x coordinate of the point to check in world coordinates.
- y - The y coordinate of the point to check in world coordinates.