imgui_move_widget
Move a widget within a Dear ImGui window by applying horizontal and vertical pixel offsets to its cursor position before rendering, enabling precise repositioning of UI elements in real-time.
Instructions
Move a widget by applying a cursor offset before rendering
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>",
"offset_x": "<offset_x>",
"offset_y": "<offset_y>"
},
"name": "imgui_move_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Widget identifier | |
| window | Yes | Window containing the widget | |
| offset_x | Yes | Horizontal offset in pixels | |
| offset_y | Yes | Vertical offset in pixels |