Class ElemParagraph
Constructors
Name | Description |
---|---|
this
(content)
|
Fields
11 inherited fields
Properties
Type | Name | Description |
---|---|---|
inout(TextContent) |
content [get, set]
|
|
dstring |
text [get]
|
Get the whole text to show. May be costly in big multiline paragraphs |
dstring |
text [set]
|
Replace the whole paragraph text. Does not preserve markup |
35 inherited properties
Methods
Name | Description |
---|---|
handleStyleChange
(ptype)
|
Handle changes of style properties (e.g. invalidate) |
heightForWidth
(width)
|
Returns natural height for the given width |
localToTextual
(pt)
|
Find the closest char position by a point in local 2D coordinates. |
resetAllMarkup
()
|
Remove markup for all lines |
resetMarkup
(lineIndex)
|
Remove line markup by index. The index must be in range |
setMarkup
(lineIndex, markup)
|
Set or replace line markup by index. The index must be in range |
textualToLocal
(pos)
|
Convert logical text position into local 2D coordinates. |
arrangeContent
()
|
Called from layout , after box and innerBox were set
|
computeBoundaries
()
|
... |
drawContent
(pr)
|
49 inherited methods