summaryrefslogtreecommitdiffstats
path: root/doc/classes
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-03-21 13:08:46 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2023-04-19 08:54:53 +0300
commit520a8d8ed2f8161c94ff9d32608212faef34df14 (patch)
treea23b4f08b9c61f89ee54da647b331fcb186077d1 /doc/classes
parent1b4b8934e080ec5300c78547527517f4a5b733e9 (diff)
downloadredot-engine-520a8d8ed2f8161c94ff9d32608212faef34df14.tar.gz
Add project manager / editor initial screen settings, implement DisplayServer.get_keyboard_focus_screen method.
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/DisplayServer.xml12
-rw-r--r--doc/classes/EditorSettings.xml6
-rw-r--r--doc/classes/Window.xml12
3 files changed, 27 insertions, 3 deletions
diff --git a/doc/classes/DisplayServer.xml b/doc/classes/DisplayServer.xml
index 3311446732..924e1d5d2f 100644
--- a/doc/classes/DisplayServer.xml
+++ b/doc/classes/DisplayServer.xml
@@ -123,6 +123,12 @@
Returns the unobscured area of the display where interactive controls should be rendered. See also [method get_display_cutouts].
</description>
</method>
+ <method name="get_keyboard_focus_screen" qualifiers="const">
+ <return type="int" />
+ <description>
+ Returns the index of the screen containing the window with the keyboard focus, or the primary screen if there's no focused window.
+ </description>
+ </method>
<method name="get_name" qualifiers="const">
<return type="String" />
<description>
@@ -1571,6 +1577,12 @@
<constant name="MOUSE_MODE_CONFINED_HIDDEN" value="4" enum="MouseMode">
Confines the mouse cursor to the game window, and make it hidden.
</constant>
+ <constant name="SCREEN_WITH_MOUSE_FOCUS" value="-4">
+ Represents the screen containing the mouse pointer.
+ </constant>
+ <constant name="SCREEN_WITH_KEYBOARD_FOCUS" value="-3">
+ Represents the screen containing the window with the keyboard focus.
+ </constant>
<constant name="SCREEN_PRIMARY" value="-2">
Represents the primary screen.
</constant>
diff --git a/doc/classes/EditorSettings.xml b/doc/classes/EditorSettings.xml
index 85d5f7dd55..14ef879f95 100644
--- a/doc/classes/EditorSettings.xml
+++ b/doc/classes/EditorSettings.xml
@@ -513,6 +513,9 @@
The language to use for the editor interface.
Translations are provided by the community. If you spot a mistake, [url=$DOCS_URL/contributing/documentation/editor_and_docs_localization.html]contribute to editor translations on Weblate![/url]
</member>
+ <member name="interface/editor/editor_screen" type="int" setter="" getter="">
+ The preferred monitor to display the editor.
+ </member>
<member name="interface/editor/expand_to_title" type="bool" setter="" getter="">
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.
@@ -545,6 +548,9 @@
<member name="interface/editor/mouse_extra_buttons_navigate_history" type="bool" setter="" getter="">
If [code]true[/code], the mouse's additional side buttons will be usable to navigate in the script editor's file history. Set this to [code]false[/code] if you're using the side buttons for other purposes (such as a push-to-talk button in a VoIP program).
</member>
+ <member name="interface/editor/project_manager_screen" type="int" setter="" getter="">
+ The preferred monitor to display the project manager.
+ </member>
<member name="interface/editor/save_each_scene_on_quit" type="bool" setter="" getter="">
If [code]false[/code], the editor will save all scenes when confirming the [b]Save[/b] action when quitting the editor or quitting to the project list. If [code]true[/code], the editor will ask to save each scene individually.
</member>
diff --git a/doc/classes/Window.xml b/doc/classes/Window.xml
index 6c0d5ac2fd..87fef49aac 100644
--- a/doc/classes/Window.xml
+++ b/doc/classes/Window.xml
@@ -782,13 +782,19 @@
Initial window position is determined by [member position].
</constant>
<constant name="WINDOW_INITIAL_POSITION_CENTER_PRIMARY_SCREEN" value="1" enum="WindowInitialPosition">
- Initial window position is a center of the primary screen.
+ Initial window position is the center of the primary screen.
</constant>
<constant name="WINDOW_INITIAL_POSITION_CENTER_MAIN_WINDOW_SCREEN" value="2" enum="WindowInitialPosition">
- Initial window position is a center of the main window screen.
+ Initial window position is the center of the main window screen.
</constant>
<constant name="WINDOW_INITIAL_POSITION_CENTER_OTHER_SCREEN" value="3" enum="WindowInitialPosition">
- Initial window position is a center of [member current_screen] screen.
+ Initial window position is the center of [member current_screen] screen.
+ </constant>
+ <constant name="WINDOW_INITIAL_POSITION_CENTER_SCREEN_WITH_MOUSE_FOCUS" value="4" enum="WindowInitialPosition">
+ Initial window position is the center of the screen containing the mouse pointer.
+ </constant>
+ <constant name="WINDOW_INITIAL_POSITION_CENTER_SCREEN_WITH_KEYBOARD_FOCUS" value="5" enum="WindowInitialPosition">
+ Initial window position is the center of the screen containing the window with the keyboard focus.
</constant>
</constants>
<theme_items>