summaryrefslogtreecommitdiffstats
path: root/servers/display_server.h
Commit message (Collapse)AuthorAgeFilesLines
...
* | [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/+24
|/ | | | DisplayServer.get_keyboard_focus_screen method.
* [DisplayServer] Implement screen_get_pixel method for LinuxBSD/X11, macOS ↵bruvzg2023-03-011-0/+2
| | | | and Windows.
* Add `WINDOW_FLAG_MOUSE_PASSTHROUGH` flag and enabled it for tooltips. Expose ↵bruvzg2023-01-161-0/+2
| | | | `window_set_mouse_passthrough` to `Window`.
* Add framework for avoidance of color flash in new windowsPedro J. Estébanez2023-01-121-0/+10
|
* Use BitField<> in core type masksJuan Linietsky2023-01-081-1/+1
| | | | | | | | * 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-4/+7
| | | | 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-1/+1
|/ | | | | | | | | 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
|
* Make window creation with custom position do not flashWei Guo2022-10-241-2/+2
|
* [macOS] Fix window button position and title bar size when editor scale do ↵bruvzg2022-10-101-1/+1
| | | | not match OS UI scale.
* [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-1/+2
|
* 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-7/+9
|/
* [macOS] Extend editor contents to the window titlebar for better space usage.bruvzg2022-08-261-0/+8
|
* Replace Array return types with TypedArraykobewi2022-08-221-2/+2
|
* Implement `MenuBar` control to wrap `PopupMenu`s or native menu, use native ↵bruvzg2022-08-181-9/+11
| | | | menu for editor.
* Add support for multiple virtual keyboard typesBrian Semrau2022-08-041-1/+13
|
* 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.
* | Fix screen_get_usable_rect returning display safe areaMarcel Admiraal2022-05-021-0/+1
|/
* Merge pull request #60551 from madmiraal/implement-3466Rémi Verschelde2022-05-021-0/+2
|\ | | | | Add a method for obtaining display cutouts on Android
| * Add a method for obtaining display cutouts on AndroidMarcel Admiraal2022-04-261-0/+2
| |
* | Implement text-to-speech support on Android, iOS, HTML5, Linux, macOS and ↵bruvzg2022-04-281-0/+36
|/ | | | | | Windows. Implement TextServer word break method.
* Rename warp mouse functions to warp_mouseMarkus Sauermann2022-03-271-1/+1
|
* [macOS] Add missing global menu features.bruvzg2022-03-221-8/+30
|
* Improve popup window handling.bruvzg2022-02-251-1/+7
| | | | Add window FLAG_POPUP and a platform specific routines to control popup auto-hiding and event forwarding.
* Merge pull request #56953 from bruvzg/ex_wndRémi Verschelde2022-02-121-0/+1
|\
| * Add exclusive window handling to DisplayServer (on macOS and Windows).bruvzg2022-02-121-0/+1
| |
* | Change SCREEN_GET_REFRESH_RATE_FALLBACK to -1.0jordi2022-02-111-1/+1
|/
* Merge pull request #57341 from bruvzg/win_multiwin_fsRémi Verschelde2022-02-041-1/+2
|\
| * [Windows] Add WS_BORDER flag to windows in WINDOW_MODE_FULLSCREEN mode to ↵bruvzg2022-02-041-1/+2
| | | | | | | | | | | | allow multi-window interface in full-screen. [Windows] Add WINDOW_MODE_EXCLUSIVE_FULLSCREEN without WS_BORDER flag enabled (no multi-window support).
* | Merge pull request #57335 from jordigcs/display-refresh-rateRémi Verschelde2022-02-041-0/+3
|\ \ | |/ |/|
| * Add screen_get_refresh_rate to DisplayServerjordi2022-02-031-0/+3
| |
* | Merge pull request #56785 from bruvzg/nat_handles_4Rémi Verschelde2022-01-271-0/+9
|\ \ | |/ |/|
| * Add support for getting native display, window, and view handles.bruvzg2022-01-141-0/+9
| |
* | Add `DisplayServer.clipboard_has()` to check clipboard contentHaoyu Qiu2022-01-191-0/+1
| |
* | Window management improvements.bruvzg2022-01-181-1/+0
| | | | | | | | | | | | | | | | | | | | | | [macOS] Fix transient windows not working in the full-screen mode. [macOS] Fix moving transient windows to the other screen than parent window. [macOS] Fix popup menu switch on hover. [macOS] Use content origin rect for windows position (to ensure `DS.mouse_get_position` is equal to `DS.window_get_position` + mouse position from the input events). [macOS] Fix incorrect input coordinates, when external display with different scaling in connected/disconnected. [macOS/Windows] Fix moving fullscreen windows between the screens. Add auto refocusing of the parent window, when the focused transient window is closed. Remove redundant `DS.mouse_get_absolute_position` function (returns mouse position in the screen coordinates, same as `DS.mouse_get_position`).
* | Merge pull request #56012 from bruvzg/wt🤎4Rémi Verschelde2022-01-171-4/+0
|\ \ | |/ |/|
| * [Windows] Improve console handling and execute/create_process.bruvzg2021-12-181-4/+0
| | | | | | | | | | | | | | | | | | | | Always build with the GUI subsystem. Redirect stdout and stderr output to the parent process console. Use CreateProcessW for blocking `execute` calls with piped stdout and stderr (prevent console windows for popping up when used with the GUI subsystem build, and have more consistent behavior with `create_process`). Add `open_console` argument to the `execute` and `create_process` to open a new console window. Remove `interface/editor/hide_console_window` editor setting. Remove `Toggle System Console` menu option. Remove `set_console_visible` and `is_console_visible` functions.
* | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* Add GLES2 2D renderer + Linux display managerlawnjelly2021-10-301-0/+3
| | | | | | | | | First implementation with Linux display manager. - Add single-threaded mode for EditorResourcePreview (needed for OpenGL). Co-authored-by: clayjohn <claynjohn@gmail.com> Co-authored-by: Fabio Alessandrelli <fabio.alessandrelli@gmail.com>