| 171 | } |
| 172 | |
| 173 | type 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 | |
| 197 | func NewIconButton(x, y float32, iconSrc *sdl.FRect, image Image, worldSpace bool, onClicked func()) *IconButton { |
| 198 |
nothing calls this directly
no outgoing calls
no test coverage detected