summaryrefslogtreecommitdiffstats
path: root/servers/display_server.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix Vulkan Instance initialized twice in ProjectDialogGaktan2024-09-171-0/+5
|
* Metal: enable for betsy and lightmapper modulesStuart Carnie2024-08-311-0/+12
| | | | | To support this, the rendering_context_driver_metal.h header was updated to recognise when it is included in non-Objective-C source files.
* Check if RD is supported in the ProjectManager and disable creating RD ↵clayjohn2024-08-021-0/+42
| | | | projects if not supported.
* Pass window exclusive and transient properties for subwindow creationAlvin Wong2024-07-251-1/+1
| | | | | | On Windows this allows to avoid having to change the owner of the window after it has been created, which in rare circumstances may cause the window to bug out.
* Always render when XR is enabled, even if no OS windows can drawDavid Snopek2024-07-171-0/+15
|
* Fix creating cursor image from AtlasTexturekleonc2024-06-051-19/+5
|
* [DisplayServer] Add method to check if window transparency is supported and ↵bruvzg2024-05-231-0/+2
| | | | enabled.
* Properly set window class in WaylandPaulo Poiati2024-05-221-2/+2
|
* [StatusIndicator] Add method to get indicator icon screen rect.bruvzg2024-05-021-0/+6
|
* Merge pull request #89588 from bruvzg/status_ind_menu_directRémi Verschelde2024-05-011-2/+7
|\ | | | | | | [StatusIndicator] Switch API to use Texture2D instead of Image, improve handling on macOS, add method to set native popup menu directly.
| * [StatusIndicator] Switch API to use Texture2D instead of Image, improve ↵bruvzg2024-03-201-2/+7
| | | | | | | | handling on macOS, add method to set native popup menu directly.
* | Fix potential infinite loop when using global menuHaoyu Qiu2024-04-171-1/+1
| |
* | Polish interaction between windowing, input and renderingPedro J. Estébanez2024-04-101-4/+0
| | | | | | | | | | - Adapt GL make/release API to the current architecture. - Fix DisplayServer being locked while dispatching input (prevent deadlocks).
* | [DisplayServer] Add separate feature flags for different native dialog types.bruvzg2024-03-261-0/+2
| |
* | 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.