TextBuffer.createWriter

Creates a new TextBufferWriter bound to this TextBuffer.

Description: The only way to read and write to certain sections of a TextBuffer is via the TextBufferWriter.

Writers are constrained to the given bounds, allowing careful control of where certain parts of your code are allowed to modify.

  1. TextBufferWriter createWriter(TextBufferBounds bounds)
    class TextBuffer
    @nogc nothrow pure
    createWriter
  2. TextBufferWriter createWriter(size_t left, size_t top, size_t width, size_t height)

Parameters

bounds TextBufferBounds

The bounds to constrain the writer to. You can use TextBuffer.USE_REMAINING_SPACE as the width and height to specify that the writer's width/height will use all the space that they have available.

Return Value

A TextBufferWriter, constrained to the given bounds, which is also bounded to this specific TextBuffer.

Meta