[macOS] Extend editor contents to the window titlebar for better space usage.
This commit is contained in:
parent
0c639428dd
commit
bc4ba6cb78
15 changed files with 300 additions and 13 deletions
|
|
@ -1068,6 +1068,13 @@
|
|||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="window_get_safe_title_margins" qualifiers="const">
|
||||
<return type="Vector2i" />
|
||||
<param index="0" name="window_id" type="int" default="0" />
|
||||
<description>
|
||||
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.
|
||||
</description>
|
||||
</method>
|
||||
<method name="window_get_size" qualifiers="const">
|
||||
<return type="Vector2i" />
|
||||
<param index="0" name="window_id" type="int" default="0" />
|
||||
|
|
@ -1081,6 +1088,20 @@
|
|||
Returns the V-Sync mode of the given window.
|
||||
</description>
|
||||
</method>
|
||||
<method name="window_maximize_on_title_dbl_click" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Returns [code]true[/code], if double-click on a window title should maximize it.
|
||||
[b]Note:[/b] This method is implemented on macOS.
|
||||
</description>
|
||||
</method>
|
||||
<method name="window_minimize_on_title_dbl_click" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Returns [code]true[/code], if double-click on a window title should minimize it.
|
||||
[b]Note:[/b] This method is implemented on macOS.
|
||||
</description>
|
||||
</method>
|
||||
<method name="window_move_to_foreground">
|
||||
<return type="void" />
|
||||
<param index="0" name="window_id" type="int" default="0" />
|
||||
|
|
@ -1316,6 +1337,9 @@
|
|||
<constant name="FEATURE_TEXT_TO_SPEECH" value="19" enum="Feature">
|
||||
Display server supports text-to-speech. See [code]tts_*[/code] methods.
|
||||
</constant>
|
||||
<constant name="FEATURE_EXTEND_TO_TITLE" value="20" enum="Feature">
|
||||
Display server supports expanding window content to the title. See [constant WINDOW_FLAG_EXTEND_TO_TITLE].
|
||||
</constant>
|
||||
<constant name="MOUSE_MODE_VISIBLE" value="0" enum="MouseMode">
|
||||
Makes the mouse cursor visible if it is hidden.
|
||||
</constant>
|
||||
|
|
@ -1446,7 +1470,11 @@
|
|||
<constant name="WINDOW_FLAG_POPUP" value="5" enum="WindowFlags">
|
||||
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.
|
||||
</constant>
|
||||
<constant name="WINDOW_FLAG_MAX" value="6" enum="WindowFlags">
|
||||
<constant name="WINDOW_FLAG_EXTEND_TO_TITLE" value="6" enum="WindowFlags">
|
||||
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.
|
||||
</constant>
|
||||
<constant name="WINDOW_FLAG_MAX" value="7" enum="WindowFlags">
|
||||
</constant>
|
||||
<constant name="WINDOW_EVENT_MOUSE_ENTER" value="0" enum="WindowEvent">
|
||||
</constant>
|
||||
|
|
@ -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.
|
||||
</constant>
|
||||
<constant name="WINDOW_VIEW" value="2" enum="HandleType">
|
||||
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.
|
||||
</constant>
|
||||
<constant name="TTS_UTTERANCE_STARTED" value="0" enum="TTSUtteranceEvent">
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
</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.
|
||||
</member>
|
||||
<member name="interface/editor/font_antialiasing" type="int" setter="" getter="">
|
||||
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.
|
||||
</member>
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
</member>
|
||||
<member name="extend_to_title" type="bool" setter="set_flag" getter="get_flag" default="false">
|
||||
If [code]true[/code], the [Window] contents is expanded to the full size of the window, window title bar is transparent.
|
||||
</member>
|
||||
<member name="max_size" type="Vector2i" setter="set_max_size" getter="get_max_size" default="Vector2i(0, 0)">
|
||||
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 @@
|
|||
<constant name="FLAG_POPUP" value="5" enum="Flags">
|
||||
Whether the window is popup or a regular window. Set with [member popup_window].
|
||||
</constant>
|
||||
<constant name="FLAG_MAX" value="6" enum="Flags">
|
||||
<constant name="FLAG_EXTEND_TO_TITLE" value="6" enum="Flags">
|
||||
Window contents is expanded to the full size of the window, window title bar is transparent.
|
||||
</constant>
|
||||
<constant name="FLAG_MAX" value="7" enum="Flags">
|
||||
Max value of the [enum Flags].
|
||||
</constant>
|
||||
<constant name="CONTENT_SCALE_MODE_DISABLED" value="0" enum="ContentScaleMode">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue