API ReferenceGE Extensionsflowgraphnodesuiimguielemental
ImGui Text
- **Node Name:** `im Text`
Overview
- Node Name:
im Text - Category:
repeat_instant - File:
extensions/flowgraph/nodes/ui/imgui/elemental/imText.lua
Displays wrapped text in an ImGui window.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
text | any | Text to display (converted to string) |
Internals
Key Methods
| Method | Description |
|---|---|
work() | Gets available width, sets text wrap position, draws wrapped text |
_executionStarted() | Resets output pins |
How It Works
- Each frame, gets the available content width via
im.GetContentRegionAvail(). - Sets the text wrap position to that width with
im.PushTextWrapPos(). - Draws the text with
im.TextWrapped(tostring(text)). - Pops the wrap position.
The text automatically wraps at the window boundary rather than extending beyond it.
Usage Example
-- Flowgraph:
-- [im Begin] → [im Text (text="This is a long description that will wrap...")] → [im End]
-- Under the hood:
local avail = im.GetContentRegionAvail()
im.PushTextWrapPos(avail.x)
im.TextWrapped("This is a long description that will wrap...")
im.PopTextWrapPos()Key Dependencies
ui_imgui- ImGui bindings (TextWrapped,PushTextWrapPos,PopTextWrapPos)
See Also
- im Begin (Flowgraph Node) - Related reference
- im Button (Flowgraph Node) - Related reference
- im Checkbox (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide