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

Struct Button

gui.go:758–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757
758type Button struct {
759 Label *Label
760 BackgroundColor Color
761 IconSrc *sdl.FRect
762 LineWidth float32
763 Disabled bool
764 WorldSpace bool
765 FadeOnInactive bool
766 OnPressed func()
767 Highlighter *Highlighter
768 TintByFontColor bool
769}
770
771func NewButton(labelText string, rect, iconSrcRect *sdl.FRect, worldSpace bool, pressedFunc func()) *Button {
772

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected