2.5
[blender-staging.git] / source / blender / editors / interface / interface_layout.c
index dc6d921bee15087c74b9670530b1e30756d8c36c..dee486b6b93379f95e0bdd5f9cf2830803626bd2 100644 (file)
@@ -1973,6 +1973,11 @@ int uiLayoutGetAlignment(uiLayout *layout)
        return layout->alignment;
 }
 
+int uiLayoutGetWidth(uiLayout *layout)
+{
+       return layout->w;
+}
+
 float uiLayoutGetScaleX(uiLayout *layout)
 {
        return layout->scale[0];