Code example for Layout

Methods: getLineForOffset, getPrimaryHorizontal