Split into category packages; module github.com/ZacharyZhang-NY/MujicaUI

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 16:18:48 -04:00
1 parent 5a7e921c7e
commit 22b53e9e9e
1822 files changed
+24568 -21314

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
package core
import (
"github.com/egoist/mygo/ui"
)
// ChoiceResult is a choice control's element and whether its value changed this frame.
type ChoiceResult struct {
Element *ui.Element
changed bool
}
// Changed reports whether the user changed the value in this frame.
func (r ChoiceResult) Changed() bool { return r.changed }
// NewChoiceResult reports e and whether its value changed this frame.
func NewChoiceResult(e *ui.Element, changed bool) ChoiceResult { return ChoiceResult{e, changed} }