Skip to content

Commit 604cb96

Browse files
committed
getters for class
1 parent f74db71 commit 604cb96

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
@@ -97,6 +97,16 @@ func (b *Blobie) SetClassName(className string) {
9797
b.className = className
9898
}
9999

100+
// GetClassID - Return class identifier
101+
func (b *Blobie) GetClassID() int {
102+
return b.classID
103+
}
104+
105+
// GetClassName - Return class name
106+
func (b *Blobie) GetClassName() string {
107+
return b.className
108+
}
109+
100110
// Update - Update info about blob
101111
func (b *Blobie) Update(newb Blobie) {
102112
b.CurrentRect = newb.CurrentRect

0 commit comments

Comments
 (0)