summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-19 14:42:06 -0600
committerJeff Carr <[email protected]>2024-02-19 14:42:06 -0600
commit64f2a2ecdd0257b25677ff783067b26c79517c3f (patch)
treea48068633e64887bbdb85ddddbd7cf3191512d7c
parent4bce280460a9a41b759e51fd9047d6ef4696d553 (diff)
-rw-r--r--oneLiner.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/oneLiner.go b/oneLiner.go
index 14a1af7..164184c 100644
--- a/oneLiner.go
+++ b/oneLiner.go
@@ -26,6 +26,16 @@ func (n *OneLiner) String() string {
return n.v.String()
}
+// returns a widget of the last tag that acts as a mirror
+func (n *OneLiner) MirrorLabel() *gui.Node {
+ return gui.RawMirror(n.l)
+}
+
+// returns a widget of the last tag that acts as a mirror
+func (n *OneLiner) MirrorValue() *gui.Node {
+ return gui.RawMirror(n.v)
+}
+
func (n *OneLiner) SetText(s string) *OneLiner {
log.Log(GADGETS, "OneLiner.Set() =", s)
n.v.SetLabel(s)