summaryrefslogtreecommitdiffstats
path: root/servers/display_server.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Return ERR_UNAVAILABLE if native dialog is not supportedHaoyu Qiu2024-03-261-4/+4
|
* Move `global_menu_*` methods to a separate `NativeMenu` class.bruvzg2024-03-041-78/+203
|
* Improve cursor_set_custom_image() methodkobewi2024-02-281-0/+38
|
* Merge pull request #87384 from bruvzg/sys_base_colorRémi Verschelde2024-02-131-0/+2
|\ | | | | | | Add method to get "base" system UI color and system theme change callback.
| * Add method to get "base" system UI color (macOS/Windows) and system theme ↵bruvzg2024-02-131-0/+2
| | | | | | | | change callback.
* | [macOS] Add support for native help menu search callbacks, integrate editor ↵bruvzg2024-02-131-0/+7
|/ | | | help.
* Implement support for application status indicators (tray icons).bruvzg2024-02-131-0/+29
|
* [Native File Dialog] Add support for adding custom options to the dialogs.bruvzg2024-01-241-0/+6
| | | | Add support for adding custom options (checkboxes and optionboxes) to the dialogs (both native and built-in).
* Implement a transient_to_focused modeJuan Linietsky2024-01-141-0/+4
| | | | | | | This intends to be the correct way to handle non-child windows becoming covered by the current window when becoming focused. Enabling this property on select windows, they will become transient to the currently focused one when becoming visible. This deprecates the "unparent_when_invisible" function introduced by #76025.
* [macOS] Add default Window and Help menus, allow special menu customization.bruvzg2023-12-131-0/+7
|
* [macOS] Add `about_to_open` and `popup_hide` callback for the global menus, ↵bruvzg2023-10-041-0/+21
| | | | move part of logic to the PopupMenu to allow live menu modification.
* [DisplayServer] Add method to estimate window title bar size.bruvzg2023-10-031-0/+1
|
* Merge pull request #63826 from deakcor/dev_clipboardYuri Sizov2023-07-271-0/+10
|\ | | | | | | Add `clipboard_has/get_image` methods to DisplayServer
| * add clipboard get image methods for windows and macosVincent D2023-07-171-0/+10
| | | | | | | | | | Co-Authored-By: RedworkDE <10944644+RedworkDE@users.noreply.github.com> Co-Authored-By: bruvzg <7645683+bruvzg@users.noreply.github.com>
* | [macOS] Implement optional native file selection dialog support for ↵bruvzg2023-07-121-0/+13
| | | | | | | | sandboxed apps.
* | Merge pull request #77993 from bruvzg/key_lbl_from_pYuri Sizov2023-07-121-0/+5
|\ \ | |/ |/| | | Implement DisplayServer.keyboard_get_label_from_physical method.
| * Implement keyboard_get_label_from_physical method.bruvzg2023-06-081-0/+5
| |
* | [DisplayServer] Add method to check if native window is focused.bruvzg2023-06-161-0/+1
|/
* Merge pull request #75142 from bruvzg/scrRémi Verschelde2023-05-161-0/+1
|\ | | | | | | [DisplayServer] Implement screen_get_image method for LinuxBSD/X11, macOS and Windows.
| * [DisplayServer] Implement screen_get_image method for LinuxBSD/X11, macOS ↵bruvzg2023-03-201-0/+1
| | | | | | | | and Windows.
* | Add project manager / editor initial screen settings, implement ↵bruvzg2023-04-191-0/+3
|/ | | | DisplayServer.get_keyboard_focus_screen method.
* [DisplayServer] Implement screen_get_pixel method for LinuxBSD/X11, macOS ↵bruvzg2023-03-011-0/+2
| | | | and Windows.
* Add a note about the parameter that global menu callbacks requireZoee Silcock2023-01-271-1/+1
|
* Silence `warp_mouse()` warning in favor of documentationHugo Locurcio2023-01-251-1/+0
| | | | | | This warning was spammed in the Android editor when using the navigation joysticks in the 3D viewport when the finger slid over the viewport's edges.
* Add `WINDOW_FLAG_MOUSE_PASSTHROUGH` flag and enabled it for tooltips. Expose ↵bruvzg2023-01-161-0/+1
| | | | `window_set_mouse_passthrough` to `Window`.
* Add framework for avoidance of color flash in new windowsPedro J. Estébanez2023-01-121-0/+20
|
* Use BitField<> in core type masksJuan Linietsky2023-01-081-2/+2
| | | | | | | | * All core types masks are now correctly marked as bitfields. * The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks. * Most bitmask operations replaced by functions in BitField<> * Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is. * Documentation and API dump updated to reflect bitfields in core types.
* Add support for the custom initial screen for the main window, fix primary ↵bruvzg2023-01-071-3/+24
| | | | screen detection.
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Improve `window_set_current_screen` and fix secondary window initial mode ↵bruvzg2022-12-291-1/+1
| | | | and positions.
* Merge pull request #69712 from bruvzg/real_sizeRémi Verschelde2022-12-071-1/+2
|\ | | | | | | Rename `window_get_real_size`, add position counterpart.
| * Rename `window_get_real_size` to `window_get_size_with_decorations`, add ↵bruvzg2022-12-071-1/+2
| | | | | | | | `window_get_position_with_decorations`.
* | Fix Determining Window for TouchscreenMarkus Sauermann2022-12-071-3/+2
|/ | | | | | | | | DisplayServer::screen_is_touchscreen will likely never utilize its parameter p_screen. This PR replaces this function by DisplayServer::is_touchscreen_available() with the same functionality. This solves the problem, that a SubViewport was used for determining the screen, which resulted in error messages.
* Add support for OpenGL to OpenXRDavid Snopek2022-11-081-0/+1
|
* Add call_deferred() method to Callablekobewi2022-11-041-9/+2
|
* [DisplayServer] Hide internal window creation/deletion methods and expose ↵bruvzg2022-10-311-4/+3
| | | | some missing methods.
* Make window creation with custom position do not flashWei Guo2022-10-241-2/+2
|
* [macOS extend-to-title] Add scene/project name to the editor title, fix ↵bruvzg2022-09-221-0/+1
| | | | incorrect window button position/order when system primary language is RTL.
* [macOS] Add an option to align window buttons in "extend to title" mode.bruvzg2022-09-201-0/+1
|
* Merge pull request #65026 from bruvzg/dark_modeRémi Verschelde2022-09-021-0/+4
|\
| * Add support for system dark mode and accent color detection (macOS and ↵bruvzg2022-08-311-0/+4
| | | | | | | | Windows). Add support for dark mode title bar on Windows.
* | [macOS] Handle accelerator and click events of the global menu items separately.bruvzg2022-09-011-14/+25
|/
* [macOS] Extend editor contents to the window titlebar for better space usage.bruvzg2022-08-261-0/+7
|
* Replace Array return types with TypedArraykobewi2022-08-221-3/+3
|
* Implement `MenuBar` control to wrap `PopupMenu`s or native menu, use native ↵bruvzg2022-08-181-9/+29
| | | | menu for editor.
* Add support for multiple virtual keyboard typesBrian Semrau2022-08-041-2/+11
|
* Improve error message when the requested V-Sync mode cannot be usedHugo Locurcio2022-08-041-2/+2
|
* Remove Signal connect bindsJuan Linietsky2022-07-291-2/+2
| | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* Merge pull request #60714 from Calinou/typedef-remove-refRémi Verschelde2022-05-031-2/+2
|\ | | | | Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`
| * Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-031-2/+2
| | | | | | | | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.