CopyFields copies another image label icon/image and text to this one
(other *ImageLabel)
| 174 | |
| 175 | // CopyFields copies another image label icon/image and text to this one |
| 176 | func (il *ImageLabel) CopyFields(other *ImageLabel) { |
| 177 | |
| 178 | il.label.SetText(other.label.Text()) |
| 179 | if other.icon != nil { |
| 180 | il.SetIcon(other.icon.Text()) |
| 181 | } |
| 182 | if other.image != nil { |
| 183 | // TODO li.SetImage(other.image.Clone()) |
| 184 | } |
| 185 | il.recalc() |
| 186 | } |
| 187 | |
| 188 | // applyStyle applies the specified image label style |
| 189 | func (il *ImageLabel) applyStyle(s *ImageLabelStyle) { |
no test coverage detected