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

+25
View File
@@ -0,0 +1,25 @@
package datetime
import (
"github.com/egoist/mygo/ui"
)
// DateTimeResult is a date or time component and what happened to it this frame.
type DateTimeResult struct {
Element *ui.Element
// Input is the text field inside, for labels and focus; nil without one.
Input *ui.Element
changed bool
canceled bool
}
// Changed reports whether the component wrote a new value this frame.
func (r DateTimeResult) Changed() bool { return r.changed }
// Canceled reports whether the user discarded a pending edit this frame.
func (r DateTimeResult) Canceled() bool { return r.canceled }
// NewDateTimeResult reports a date or time control built from parts in another component.
func NewDateTimeResult(e, input *ui.Element, changed, canceled bool) DateTimeResult {
return DateTimeResult{e, input, changed, canceled}
}