summaryrefslogtreecommitdiffstats
path: root/servers/display_server.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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/+94
|/ | | | | | Windows. Implement TextServer word break method.
* Rename warp mouse functions to warp_mouseMarkus Sauermann2022-03-271-3/+3
|
* [macOS] Add missing global menu features.bruvzg2022-03-221-12/+127
|
* Improve popup window handling.bruvzg2022-02-251-0/+4
| | | | Add window FLAG_POPUP and a platform specific routines to control popup auto-hiding and event forwarding.
* Fix default value for DisplayServer::virtual_keyboard_show Rect2 parameterPierre-Thomas Meisels2022-02-181-1/+1
|
* Add exclusive window handling to DisplayServer (on macOS and Windows).bruvzg2022-02-121-0/+5
|
* Merge pull request #57341 from bruvzg/win_multiwin_fsRémi Verschelde2022-02-041-0/+1
|\
| * [Windows] Add WS_BORDER flag to windows in WINDOW_MODE_FULLSCREEN mode to ↵bruvzg2022-02-041-0/+1
| | | | | | | | | | | | 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/+1
|\ \ | |/ |/|
| * Add screen_get_refresh_rate to DisplayServerjordi2022-02-031-0/+1
| |
* | Merge pull request #56785 from bruvzg/nat_handles_4Rémi Verschelde2022-01-271-0/+11
|\ \ | |/ |/|
| * Add support for getting native display, window, and view handles.bruvzg2022-01-141-0/+11
| |
* | Add `DisplayServer.clipboard_has()` to check clipboard contentHaoyu Qiu2022-01-191-0/+5
| |
* | Window management improvements.bruvzg2022-01-181-5/+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-12/+0
|\ \ | |/ |/|
| * [Windows] Improve console handling and execute/create_process.bruvzg2021-12-181-12/+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!
* Use "enum class" for input enumsAaron Franke2021-11-121-1/+1
|
* Add GLES2 2D renderer + Linux display managerlawnjelly2021-10-301-0/+4
| | | | | | | | | 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>
* Fix primary clipboard warningConteZero2021-10-231-0/+1
|
* Added primary clipboard for LinuxConteZero2021-10-181-0/+10
|
* Allow for mapping keycodes to current layoutFrixuu2021-09-211-0/+5
|
* Fix InputMap and display server not nulling singleton on freePaulb232021-09-011-0/+1
|
* Move `alert` function from `DisplayServer` to `OS`.bruvzg2021-07-221-2/+0
|
* Restructure and reimplement vsync optionsHendrik Brucker2021-07-061-32/+17
| | | | | -Add a v-sync mode setting which allows to choose between DISABLED, ON, ADAPTIVE and MAILBOX -Removed the V-Sync via Compositor option
* Use mouse and joypad enums instead of plain integersAaron Franke2021-06-201-2/+2
| | | | Also MIDIMessage
* Add MOUSE_MODE_CONFINED_HIDDENAaron Franke2021-06-031-0/+1
| | | | Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
* Move remaining dummy drivers to servers.Fabio Alessandrelli2021-06-011-5/+11
|
* OS: Remove native video API only implemented on iOSRémi Verschelde2021-05-071-28/+0
| | | | | | See discussion in #43811, it was only implemented on iOS and even that implementation was fairly limited. This would best be provided as plugins for Android and iOS without cluttering the shared OS API.
* doc: Sync classref with current sourceRémi Verschelde2021-02-191-1/+1
| | | | And fix various bogus bindings following previous PRs.
* Move tablet driver API from OS to DisplayServer.bruvzg2021-02-181-0/+5
|
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Refactor MethodBind to use variadic templatesreduz2020-10-181-1/+0
| | | | Removed make_binders and the old style generated binders.
* Add window click-through support.bruvzg2020-09-171-0/+5
|
* Re-apply "Fixes for windows in X11 tiling WMs"PouleyKetchoupp2020-08-221-0/+4
| | | | | | | From PR #38727 which was reverted in #41373 because of regressions in Ubuntu with Gnome. Co-authored-by: Lorenzo Cerqua <lorenzocerqua@tutanota.com>
* Revert "Fixes for windows in X11 tiling WMs"Juan Linietsky2020-08-191-4/+0
|
* Merge pull request #40487 from nekomatata/virtual-keyboard-enter-fixesRémi Verschelde2020-07-261-2/+3
|\ | | | | Fix Return key events in LineEdit & TextEdit on Android
| * Fix Return key events in LineEdit & TextEdit on AndroidPouleyKetchoupp2020-07-261-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Depending on the device implementation, editor actions could be received with different action ids or not at all for multi-line. Added a parameter to virtual keyboards to properly handle single-line and multi-line cases in all situations. Single-line: Input type set to text without multiline to make sure actions are sent. IME options are set to DONE action to force action id consistency. Multi-line: Input type set to text and multiline to make sure enter triggers new lines. Actions are disabled by the multiline flag, so '\n' characters are handled in text changed callbacks.
* | DisplayServer: separate window showing into another functionLorenzo Cerqua2020-07-231-0/+4
|/ | | | | | | | | | | | When creating a window, Godot would first register it to the WM(show it) and then set its flags. This works fine on a floating WM, but on tiling WMs as soon as a window gets registered the WM immediately acts on the window by scaling it up and treating it as a generic window, being registered without any special flags. This commit separates the showing of the window into another function and calls it after the most important flags are set, making windows with special flags(eg. all popups) work again on tiling WMs. Fixes #37930
* Fix spelling & grammar in comments, docs, and messagesAndy Maloney2020-07-211-1/+1
|
* Fix cancel/OK button order on macOSDaniel Ting2020-07-101-2/+2
| | | | | The macOS platform convention regarding button order is cancel on left, OK on right.
* [macOS] Implement seamless display scaling.bruvzg2020-07-041-0/+1
|
* Environment: Refactor code for readability + moreRémi Verschelde2020-07-011-2/+2
| | | | | | | | | | | | - Makes all boolean setters/getters consistent. - Fixes bug where `glow_hdr_bleed_scale` was not used. - Split CameraEffects to their own source file. - Reorder all Environment method and properties declarations, definitions and bindings to be consistent with each other and with the order of property bindings. - Bind missing enum values added with SDFGI. - Remove unused SDFGI enhance_ssr boolean. - Sync doc changes after SDFGI merge and other misc changes.
* Add keyboard layout enumeration / set / get functions (macOS, Windows, ↵bruvzg2020-06-131-11/+22
| | | | Linux/X11), remove latin variant function.
* doc: Sync classref with current sourceRémi Verschelde2020-05-201-2/+2
|
* Fix Android LineEdit editing bugsSkyJJ2020-05-161-1/+1
|
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+28
| | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.