rules: define geometry properties
Signed-off-by: Cedric GESTES <ctaf42@gmail.com> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
1442687830
commit
62b0a9d8f1
|
@ -91,6 +91,11 @@ function apply(c)
|
||||||
elseif property == "switchtotag" and value
|
elseif property == "switchtotag" and value
|
||||||
and entry.properties["tag"] then
|
and entry.properties["tag"] then
|
||||||
atag.viewonly(entry.properties["tag"])
|
atag.viewonly(entry.properties["tag"])
|
||||||
|
elseif property == "height" or property == "width" or
|
||||||
|
property == "x" or property == "y" then
|
||||||
|
local geo = c:geometry();
|
||||||
|
geo[property] = value
|
||||||
|
c:geometry(geo);
|
||||||
elseif type(c[property]) == "function" then
|
elseif type(c[property]) == "function" then
|
||||||
c[property](c, value)
|
c[property](c, value)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue