Package icyllis.modernui.text.style

# Interface LineBackgroundSpan

All Superinterfaces:
  `ParagraphStyle`

All Known Implementing Classes:
  `LineBackgroundSpan.Standard`

public interface LineBackgroundSpan extends ParagraphStyle
Used to change the background of lines where the span is attached to.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Interface
  Description
  `static class`
  `LineBackgroundSpan.Standard`
  Default implementation of the `LineBackgroundSpan`, which changes the background color of the lines to which the span is attached.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `drawBackground(Canvas canvas, Paint paint, int left, int right, int top, int baseline, int bottom, CharSequence text, int start, int end, int lineNumber)`
  Draw the background on the canvas.

- ## Method Details

  - ### drawBackground

    void drawBackground(@NonNull Canvas canvas, @NonNull Paint paint, int left, int right, int top, int baseline, int bottom, @NonNull CharSequence text, int start, int end, int lineNumber)
    Draw the background on the canvas.
    Parameters:
      `canvas` - canvas on which the span should be rendered
      `paint` - paint used to draw text, which should be left unchanged on exit
      `left` - left position of the line relative to input canvas, in pixels
      `right` - right position of the line relative to input canvas, in pixels
      `top` - top position of the line relative to input canvas, in pixels
      `baseline` - baseline of the text relative to input canvas, in pixels
      `bottom` - bottom position of the line relative to input canvas, in pixels
      `text` - current text
      `start` - start character index of the line
      `end` - end character index of the line
      `lineNumber` - line number in the current text layout