imgui_set_widget_anchor
Set a widget's anchor position within its parent window to control responsive UI layout, with optional X and Y offsets for precise placement across different screen sizes.
Instructions
Set a widget's anchor position for responsive layout within its window
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>",
"widget": "<widget>",
"anchor": "<anchor>"
},
"name": "imgui_set_widget_anchor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anchor | Yes | Anchor position | |
| widget | Yes | Widget identifier | |
| window | Yes | Window containing the widget | |
| offset_x | No | X offset from anchor point (default 0) | |
| offset_y | No | Y offset from anchor point (default 0) |