Added Paragraph.Text function returning text content

This commit is contained in:
Jordi Llonch 2018-02-15 13:11:32 +11:00
parent c9f172694c
commit 7ae11755c8

View File

@ -122,6 +122,11 @@ func (p *Paragraph) SetText(text string) {
p.text = text
}
// Text sets the text content of the Paragraph.
func (p *Paragraph) Text() string {
return p.text
}
// SetEnableWrap sets the line wrapping enabled flag.
func (p *Paragraph) SetEnableWrap(enableWrap bool) {
p.enableWrap = enableWrap