Module dlangui.core.editable

This module contains implementation of editable text content.

Synopsis

import dlangui.core.editable;

Functions

Name Description
concatDStrings concat strings from array using delimiter
replaceEolsWithSpaces replace end of lines with spaces
splitDString split dstring by delimiters
tokenCategory extracts token category, clearing subcategory

Interfaces

Name Description
EditableContentListener Editable Content change listener
EditableContentMarksChangeListener
SyntaxSupport interface for custom syntax highlight, comments toggling, smart indents, and other language dependent features for source code editors

Classes

Name Description
EditableContent editable plain text (singleline/multiline)
EditOperation edit operation details for EditableContent
LineIcon text editor line icon
UndoBuffer Undo/Redo buffer

Structs

Name Description
LineIcons text editor line icon list
LineSpan
TextLineMeasure measure line text (tabs, spaces, and nonspace positions)
TextPosition text content position
TextRange text content range

Enums

Name Description
EditAction action performed with editable contents
EditStateMark values for editable line state
LineIconType types of text editor line icon marks (bookmark / breakpoint / error / ...)
TokenCategory token category for syntax highlight

Global variables

Name Type Description
EOL immutable(dchar)
SYSTEM_DEFAULT_EOL immutable(dchar[])
TOKEN_CATEGORY_MASK const(ubyte)
TOKEN_CATEGORY_SHIFT const(ubyte)
TOKEN_SUBCATEGORY_MASK const(ubyte)
TOKEN_UNKNOWN const(ubyte)

Aliases

Name Type Description
TokenProp ubyte TokenCategory holder
TokenPropString ubyte[] TokenCategory string

Authors

Vadim Lopatin, coolreader.org@gmail.com

Copyright

Vadim Lopatin, 2014

License

Boost License 1.0