imgui_get_widget_rect
Get a Dear ImGui widget's exact rendered bounding box in pixel coordinates to precisely position UI elements or handle interactions.
Instructions
Get the actual rendered bounding box of a widget in pixel coordinates
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"window": "<window>",
"id": "<id>"
},
"name": "imgui_get_widget_rect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Widget identifier | |
| window | Yes | Window containing the widget |