From bc4ba6cb78b3815dbc61f220c406974c1c518dc5 Mon Sep 17 00:00:00 2001
From: bruvzg <7645683+bruvzg@users.noreply.github.com>
Date: Tue, 23 Aug 2022 13:40:48 +0300
Subject: [macOS] Extend editor contents to the window titlebar for better
space usage.
---
doc/classes/DisplayServer.xml | 34 +++++++++++++++++++++++++++++++---
doc/classes/EditorSettings.xml | 4 ++++
doc/classes/Window.xml | 8 +++++++-
3 files changed, 42 insertions(+), 4 deletions(-)
(limited to 'doc/classes')
diff --git a/doc/classes/DisplayServer.xml b/doc/classes/DisplayServer.xml
index bcad75215a..c5f61cdfd3 100644
--- a/doc/classes/DisplayServer.xml
+++ b/doc/classes/DisplayServer.xml
@@ -1068,6 +1068,13 @@
+
+
+
+
+ Returns left and right margins of the title that are safe to use (contains no buttons or other elements) when [constant WINDOW_FLAG_EXTEND_TO_TITLE] flag is set.
+
+
@@ -1081,6 +1088,20 @@
Returns the V-Sync mode of the given window.
+
+
+
+ Returns [code]true[/code], if double-click on a window title should maximize it.
+ [b]Note:[/b] This method is implemented on macOS.
+
+
+
+
+
+ Returns [code]true[/code], if double-click on a window title should minimize it.
+ [b]Note:[/b] This method is implemented on macOS.
+
+
@@ -1316,6 +1337,9 @@
Display server supports text-to-speech. See [code]tts_*[/code] methods.
+
+ Display server supports expanding window content to the title. See [constant WINDOW_FLAG_EXTEND_TO_TITLE].
+
Makes the mouse cursor visible if it is hidden.
@@ -1446,7 +1470,11 @@
Window is part of menu or [OptionButton] dropdown. This flag can't be changed when window is visible. An active popup window will exclusively receive all input, without stealing focus from its parent. Popup windows are automatically closed when uses click outside it, or when an application is switched. Popup window must have [constant WINDOW_FLAG_TRANSPARENT] set.
-
+
+ Window content is expanded to the full size of the window. Unlike borderless window, the frame is left intact and can be used to resize the window, title bar is transparent, but have minimize/maximize/close buttons.
+ [b]Note:[/b] This flag is implemented on macOS.
+
+
@@ -1483,13 +1511,13 @@
Window handle:
- Windows: [code]HWND[/code] for the window.
- Linux: [code]X11::Window*[/code] for the window.
- - MacOS: [code]NSWindow*[/code] for the window.
+ - macOS: [code]NSWindow*[/code] for the window.
- iOS: [code]UIViewController*[/code] for the view controller.
- Android: [code]jObject[/code] for the activity.
Window view:
- - MacOS: [code]NSView*[/code] for the window main view.
+ - macOS: [code]NSView*[/code] for the window main view.
- iOS: [code]UIView*[/code] for the window main view.
diff --git a/doc/classes/EditorSettings.xml b/doc/classes/EditorSettings.xml
index d538a0af2a..56c1f6e55a 100644
--- a/doc/classes/EditorSettings.xml
+++ b/doc/classes/EditorSettings.xml
@@ -495,6 +495,10 @@
The language to use for the editor interface.
Translations are provided by the community. If you spot a mistake, [url=https://docs.godotengine.org/en/latest/community/contributing/editor_and_docs_localization.html]contribute to editor translations on Weblate![/url]
+
+ Expanding main editor window content to the title, if supported by [DisplayServer]. See [constant DisplayServer.WINDOW_FLAG_EXTEND_TO_TITLE].
+ Specific to the macOS platform.
+
FreeType's font anti-aliasing mode used to render the editor fonts. Most fonts are not designed to look good with anti-aliasing disabled, so it's recommended to leave this enabled unless you're using a pixel art font.
diff --git a/doc/classes/Window.xml b/doc/classes/Window.xml
index c3002a8a9f..2c0a694ef9 100644
--- a/doc/classes/Window.xml
+++ b/doc/classes/Window.xml
@@ -342,6 +342,9 @@
If [code]true[/code], the [Window] will be in exclusive mode. Exclusive windows are always on top of their parent and will block all input going to the parent [Window].
Needs [member transient] enabled to work.
+
+ If [code]true[/code], the [Window] contents is expanded to the full size of the window, window title bar is transparent.
+
If non-zero, the [Window] can't be resized to be bigger than this size.
[b]Note:[/b] This property will be ignored if the value is lower than [member min_size].
@@ -510,7 +513,10 @@
Whether the window is popup or a regular window. Set with [member popup_window].
-
+
+ Window contents is expanded to the full size of the window, window title bar is transparent.
+
+
Max value of the [enum Flags].
--
cgit v1.2.3