From 580f58c1467f5953e722a974191fb94c535f7b8e Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Wed, 4 May 2016 13:13:22 +1000 Subject: [PATCH] Support top, right, bottom and left in geckolib. --- ports/geckolib/properties.mako.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ports/geckolib/properties.mako.rs b/ports/geckolib/properties.mako.rs index dfb483ab86a..42e127ed791 100644 --- a/ports/geckolib/properties.mako.rs +++ b/ports/geckolib/properties.mako.rs @@ -476,6 +476,16 @@ fn static_assert() { % endfor +<% skip_position_longhands = " ".join(x.ident for x in SIDES) %> +<%self:impl_trait style_struct_name="Position" + skip_longhands="${skip_position_longhands}"> + + % for side in SIDES: + <% impl_style_coord("%s" % side.ident, + "mOffset.mUnits[%s]" % side.index, "mOffset.mValues[%s]" % side.index) %> + % endfor + + <%self:impl_trait style_struct_name="Outline" skip_longhands="outline-color outline-style" skip_additionals="*">