MCPcopy Create free account
hub / github.com/SolarLune/masterplan / IconButton

Struct IconButton

gui.go:173–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173type IconButton struct {
174 Scale Vector
175 originalSize Vector
176 Rect *sdl.FRect
177 IconSrc *sdl.FRect
178 WorldSpace bool
179 OnPressed func()
180 OnRightClickPressed func()
181 Tint Color
182 Flip sdl.FlipMode
183 Rotation float64
184 BGIconSrc *sdl.FRect
185 BGIconTint Color
186 Highlighter *Highlighter
187 HighlightingTargetColor float32
188 Active bool
189 FadeOnInactive bool
190 AlwaysHighlight bool
191 Image Image
192 CanPress bool
193
194 tween *gween.Tween
195}
196
197func NewIconButton(x, y float32, iconSrc *sdl.FRect, image Image, worldSpace bool, onClicked func()) *IconButton {
198

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected