Struct LineIcons

text editor line icon list

struct LineIcons;

Properties

NameTypeDescription
hasBookmarks[get] bool
length[get] intreturns count of items

Methods

NameDescription
add (icon) add icon mark
addAll (list) add all icons from list
findByLineAndType (line, type) get array of icons of specified type
findByType (type) get array of icons of specified type
findNext (type, line, direction)
opIndex (index) returns item by index, or null if index out of bounds
remove (index) remove icon mark by index
remove (icon) remove icon mark
removeByType (type) remove all icon marks of specified type, return true if any of items removed
toggleBookmark (line)
updateLinePositions (rangeBefore, rangeAfter, moved, removed) update mark position lines after text change, returns true if any of marks were moved or removed