diff options
| author | Jeff Carr <[email protected]> | 2024-02-19 14:42:06 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-19 14:42:06 -0600 |
| commit | 64f2a2ecdd0257b25677ff783067b26c79517c3f (patch) | |
| tree | a48068633e64887bbdb85ddddbd7cf3191512d7c | |
| parent | 4bce280460a9a41b759e51fd9047d6ef4696d553 (diff) | |
| -rw-r--r-- | oneLiner.go | 10 |
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) |
