dlangui.core.editable

This module contains implementation of editable text content.

More...

Members

Aliases

TokenProp
alias TokenProp = ubyte

TokenCategory holder

TokenPropString
alias TokenPropString = TokenProp[]

TokenCategory string

Classes

EditOperation
class EditOperation

edit operation details for EditableContent

EditableContent
class EditableContent

editable plain text (singleline/multiline)

LineIcon
class LineIcon

text editor line icon

UndoBuffer
class UndoBuffer

Undo/Redo buffer

Enums

EditAction
enum EditAction

action performed with editable contents

EditStateMark
enum EditStateMark

values for editable line state

LineIconType
enum LineIconType

types of text editor line icon marks (bookmark / breakpoint / error / ...)

TokenCategory
enum TokenCategory

token category for syntax highlight

Functions

concatDStrings
dstring concatDStrings(dstring[] lines, dstring delimiter)

concat strings from array using delimiter

replaceEolsWithSpaces
dstring replaceEolsWithSpaces(dstring source)

replace end of lines with spaces

splitDString
dstring[] splitDString(dstring source, dchar delimiter)

split dstring by delimiters

tokenCategory
ubyte tokenCategory(ubyte t)

extracts token category, clearing subcategory

Interfaces

EditableContentListener
interface EditableContentListener

Editable Content change listener

EditableContentMarksChangeListener
interface EditableContentMarksChangeListener
Undocumented in source.
SyntaxSupport
interface SyntaxSupport

interface for custom syntax highlight, comments toggling, smart indents, and other language dependent features for source code editors

Structs

LineIcons
struct LineIcons

text editor line icon list

LineSpan
struct LineSpan
Undocumented in source.
TextLineMeasure
struct TextLineMeasure

measure line text (tabs, spaces, and nonspace positions)

TextPosition
struct TextPosition

text content position

TextRange
struct TextRange

text content range

Variables

EOL
dchar EOL;
Undocumented in source.
SYSTEM_DEFAULT_EOL
dstring SYSTEM_DEFAULT_EOL;
Undocumented in source.
SYSTEM_DEFAULT_EOL
dstring SYSTEM_DEFAULT_EOL;
Undocumented in source.
TOKEN_CATEGORY_MASK
ubyte TOKEN_CATEGORY_MASK;
Undocumented in source.
TOKEN_CATEGORY_SHIFT
ubyte TOKEN_CATEGORY_SHIFT;
Undocumented in source.
TOKEN_SUBCATEGORY_MASK
ubyte TOKEN_SUBCATEGORY_MASK;
Undocumented in source.
TOKEN_UNKNOWN
ubyte TOKEN_UNKNOWN;
Undocumented in source.

Detailed Description

Synopsis:

import dlangui.core.editable;

Meta

License

Boost License 1.0

Authors

Vadim Lopatin, coolreader.org@gmail.com