diff options
| author | Jeff Carr <[email protected]> | 2023-05-09 19:04:39 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-05-09 19:04:39 -0500 |
| commit | 28b7470328707da8d9701c4af1493f4730bcd1f9 (patch) | |
| tree | b92d891673050347a523c3798e8e63b6a831cb77 /plugin.go | |
| parent | e43f42a3ab5afa6fd72673df2a5bd9a7615694d2 (diff) | |
working on removing newaction()
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'plugin.go')
| -rw-r--r-- | plugin.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -212,9 +212,17 @@ func newAction(n *Node, atype toolkit.ActionType) *toolkit.Action { a.Name = n.Name a.Text = n.Text a.WidgetId = n.id + a.B = n.B + a.I = n.I + a.S = n.S + a.X = n.X a.Y = n.Y + + a.AtW = n.AtW + a.AtH = n.AtH + if (n.parent != nil) { a.ParentId = n.parent.id } @@ -222,6 +230,7 @@ func newAction(n *Node, atype toolkit.ActionType) *toolkit.Action { return &a } +// sends the action/event to each toolkit via a golang plugin channel func sendAction(a *toolkit.Action) { for _, aplug := range allPlugins { log(debugPlugin, "Action() aplug =", aplug.name, "Action type=", a.ActionType) |
