MCPcopy
hub / github.com/g3n/engine / Dispose

Method Dispose

gui/image_button.go:152–159  ·  view source on GitHub ↗

Dispose releases resources used by this widget

()

Source from the content-addressed store, hash-verified

150
151// Dispose releases resources used by this widget
152func (b *ImageButton) Dispose() {
153 b.Panel.Dispose()
154 for _, tex := range b.stateImages {
155 if tex != nil {
156 tex.Dispose()
157 }
158 }
159}
160
161// SetStyles set the button styles overriding the default style
162func (b *ImageButton) SetStyles(bs *ImageButtonStyles) {

Callers

nothing calls this directly

Calls 1

DisposeMethod · 0.65

Tested by

no test coverage detected