From c39ac8650daa2a9a8c26f56247e555472ec576d7 Mon Sep 17 00:00:00 2001 From: toger5 Date: Sat, 10 Jun 2017 11:44:35 -0700 Subject: [PATCH] Added Corner Enum --- core/math/math_2d.h | 8 ++++++++ core/method_bind.h | 1 + 2 files changed, 9 insertions(+) diff --git a/core/math/math_2d.h b/core/math/math_2d.h index b679371e032..601ab91b9f1 100644 --- a/core/math/math_2d.h +++ b/core/math/math_2d.h @@ -43,6 +43,14 @@ enum Margin { MARGIN_BOTTOM }; +enum Corner { + + CORNER_TOP_LEFT, + CORNER_TOP_RIGHT, + CORNER_BOTTOM_RIGHT, + CORNER_BOTTOM_LEFT +}; + enum Orientation { HORIZONTAL, diff --git a/core/method_bind.h b/core/method_bind.h index 3b4ff96a195..9bf0323733e 100644 --- a/core/method_bind.h +++ b/core/method_bind.h @@ -150,6 +150,7 @@ VARIANT_ENUM_CAST(Vector3::Axis); VARIANT_ENUM_CAST(Error); VARIANT_ENUM_CAST(wchar_t); VARIANT_ENUM_CAST(Margin); +VARIANT_ENUM_CAST(Corner); VARIANT_ENUM_CAST(Orientation); VARIANT_ENUM_CAST(HAlign); VARIANT_ENUM_CAST(Variant::Type);