summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-05-09 19:04:39 -0500
committerJeff Carr <[email protected]>2023-05-09 19:04:39 -0500
commit28b7470328707da8d9701c4af1493f4730bcd1f9 (patch)
treeb92d891673050347a523c3798e8e63b6a831cb77 /plugin.go
parente43f42a3ab5afa6fd72673df2a5bd9a7615694d2 (diff)
working on removing newaction()
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugin.go b/plugin.go
index 207cd4b..c9e0466 100644
--- a/plugin.go
+++ b/plugin.go
@@ -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)