Skip to content

Commit 4ed1354

Browse files
committed
getter/setter for drawing options for single Blob
1 parent 604cb96 commit 4ed1354

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

blob/blob.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,16 @@ func (b *Blobie) GetClassName() string {
107107
return b.className
108108
}
109109

110+
// SetDraw - Set options for drawing
111+
func (b *Blobie) SetDraw(drawOptions *DrawOptions) {
112+
b.drawingOptions = drawOptions
113+
}
114+
115+
// GetDraw - Return options for drawing
116+
func (b *Blobie) GetDraw() *DrawOptions {
117+
return b.drawingOptions
118+
}
119+
110120
// Update - Update info about blob
111121
func (b *Blobie) Update(newb Blobie) {
112122
b.CurrentRect = newb.CurrentRect

0 commit comments

Comments
 (0)