Skip to content

Commit

Permalink
Add ID setter to ImageWithRgbaWidget.
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenDang committed Jun 2, 2022
1 parent 88aaa98 commit c1ea118
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ImageWidgets.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ func ImageWithRgba(rgba image.Image) *ImageWithRgbaWidget {
}
}

// ID sets the interval id of ImageWithRgba widgets.
func (i *ImageWithRgbaWidget) ID(id string) *ImageWithRgbaWidget {
i.id = id
return i
}

// Size sets image's size.
func (i *ImageWithRgbaWidget) Size(width, height float32) *ImageWithRgbaWidget {
i.img.Size(width, height)
Expand Down

0 comments on commit c1ea118

Please sign in to comment.