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

Method insertIntoSlice

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

Source from the content-addressed store, hash-verified

242}
243
244func (l *WidgetGraphicsEffectList) insertIntoSlice(index int, effect WidgetGraphicsEffect) {
245 l.items = append(l.items, nil)
246 copy(l.items[index+1:], l.items[index:])
247 l.items[index] = effect
248}
249
250func (l *WidgetGraphicsEffectList) Insert(index int, effect WidgetGraphicsEffect) error {
251 observer := l.observer

Callers 2

InsertMethod · 0.95
RemoveAtMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected