Canvas Utils
- Base:
- class
- Type:
- FNCanvasUtils
- Header File:
- NexusUI/Public/NCanvasUtils.h
Native helpers for drawing NEXUS Canvas Items onto an FCanvas. Friend class to every canvas-item struct, so the helpers can reach into their private layout state without exposing it on the public API.
Methods​
Draw Canvas Text Box​
/**
* Draw a multi-line text box onto Canvas with its top-left aligned to TopLeftPosition.
* Re-runs the box's measurement pass when it is dirty, then renders background, border, and each line.
* @param TextBox The canvas-item to render. Caller retains ownership.
* @param Canvas The FCanvas to draw into.
* @param TopLeftPosition Pixel position of the box's top-left corner in Canvas space.
*/
static void DrawCanvasTextBox(FNMultiLineTextBoxCanvasItem* TextBox, FCanvas* Canvas, FVector2D TopLeftPosition);
See FNMultiLineTextBoxCanvasItem for the input shape and severity-driven border styling.