align_cell


Description:

public void align_cell (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:

this

the GutterRenderer

line

the line number for content

width

the width of the content to draw

height

the height of the content to draw

x

the X position to render the content

y

the Y position to render the content