GutterRenderer.alignCell

void alignCell(uint line, float width, float height, out float x, out float y)

Locates where to render content that is width x height based on the renderers alignment and padding.

The location will be placed into x and y and is relative to the renderer's coordinates.

It is encouraged that renderers use this function when snappshotting to ensure consistent placement of their contents.

Parameters

linethe line number for content
widththe width of the content to draw
heightthe height of the content to draw
xthe X position to render the content
ythe Y position to render the content