MCPcopy Create free account
hub / github.com/lxn/walk / Insert

Method Insert

graphicseffects.go:250–263  ·  view source on GitHub ↗
(index int, effect WidgetGraphicsEffect)

Source from the content-addressed store, hash-verified

248}
249
250func (l *WidgetGraphicsEffectList) Insert(index int, effect WidgetGraphicsEffect) error {
251 observer := l.observer
252
253 l.insertIntoSlice(index, effect)
254
255 if observer != nil {
256 if err := observer.onInsertedGraphicsEffect(index, effect); err != nil {
257 l.items = append(l.items[:index], l.items[index+1:]...)
258 return err
259 }
260 }
261
262 return nil
263}
264
265func (l *WidgetGraphicsEffectList) Len() int {
266 return len(l.items)

Callers 1

AddMethod · 0.95

Calls 2

insertIntoSliceMethod · 0.95

Tested by

no test coverage detected