GutterRenderer.alignCell

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.

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

Parameters

line uint

the line number for content

width float

the width of the content to draw

height float

the height of the content to draw

x float

the X position to render the content

y float

the Y position to render the content