diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2024-10-15 17:35:27 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2024-10-17 07:52:07 +0800 |
commit | 009446a277683590f1bdef1e63cbcd9973602a37 (patch) | |
tree | b699f95fc61a3a3ccbdc0d774a511601a77f3943 /scene/gui/control.h | |
parent | 04692d83cb8f61002f18ea1d954df8c558ee84f7 (diff) | |
download | redot-engine-009446a277683590f1bdef1e63cbcd9973602a37.tar.gz |
Add System Locale layout direction for Control and Window
Diffstat (limited to 'scene/gui/control.h')
-rw-r--r-- | scene/gui/control.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scene/gui/control.h b/scene/gui/control.h index 6e1621ce58..6cabf10971 100644 --- a/scene/gui/control.h +++ b/scene/gui/control.h @@ -140,9 +140,14 @@ public: enum LayoutDirection { LAYOUT_DIRECTION_INHERITED, - LAYOUT_DIRECTION_LOCALE, + LAYOUT_DIRECTION_APPLICATION_LOCALE, LAYOUT_DIRECTION_LTR, - LAYOUT_DIRECTION_RTL + LAYOUT_DIRECTION_RTL, + LAYOUT_DIRECTION_SYSTEM_LOCALE, + LAYOUT_DIRECTION_MAX, +#ifndef DISABLE_DEPRECATED + LAYOUT_DIRECTION_LOCALE = LAYOUT_DIRECTION_APPLICATION_LOCALE, +#endif // DISABLE_DEPRECATED }; enum TextDirection { |