Expand description
The primary Widget of Duat, used to display buffers.
Most extensible features of Duat have the primary purpose of
serving the Buffer, such as multiple Cursors, a
History system, RawArea::PrintInfo, etc.
The Buffer also provides a list of printed lines through the
Handle::printed_lines method. This method is notably used by
the LineNumbers widget, that shows the numbers of the
currently printed lines.
Structs§
- Buffer
- The widget that is used to print and edit buffers
- Buffer
Id - A unique identifier for a
Buffer - Buffer
Parts - This function is like
TextParts, but it includes information aboutChanges that took place since the last call toBufferTracker::parts, as well as all the ranges of theTextthat still need updating. - Buffer
Tracker - A tracker to keep up to date on changes to
Buffers - Change
- A change in a buffer, with a start, taken text, and added text
- Fetched
Changes - Changes that took place since a
BufferTrackerlast calledparts - History
- The history of edits, contains all moments
- Moment
- A moment in history, which may contain changes, or may just contain selections
- PerBuffer
- A struct to associate one
Tto eachBuffer - Ranges
ToUpdate - A list of
Range<usize>s of byte indices in aBufferthat need to be updated
Enums§
- Path
Kind - Represents the presence or absence of a path