summaryrefslogtreecommitdiffstats
path: root/scene/gui/control.h
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2024-10-15 17:35:27 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2024-10-17 07:52:07 +0800
commit009446a277683590f1bdef1e63cbcd9973602a37 (patch)
treeb699f95fc61a3a3ccbdc0d774a511601a77f3943 /scene/gui/control.h
parent04692d83cb8f61002f18ea1d954df8c558ee84f7 (diff)
downloadredot-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.h9
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 {