Skip to content

Commit

Permalink
Add missing 2.1 sinces
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Aug 19, 2021
1 parent e41d39c commit 21ffbe1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions widget/richtext.go
Expand Up @@ -405,6 +405,8 @@ func (t *RichText) updateRowBounds() {
}

// RichTextBlock is an extension of a text segment that contains other segments
//
// Since: 2.1
type RichTextBlock interface {
Segments() []RichTextSegment
}
Expand Down
2 changes: 2 additions & 0 deletions widget/richtext_objects.go
Expand Up @@ -190,6 +190,8 @@ func (l *ListSegment) Unselect() {

// ParagraphSegment wraps a number of text elements in a paragraph.
// It is similar to using a list of text elements when the final style is RichTextStyleParagraph.
//
// Since: 2.1
type ParagraphSegment struct {
Texts []RichTextSegment
}
Expand Down

0 comments on commit 21ffbe1

Please sign in to comment.