summaryrefslogtreecommitdiffstats
path: root/servers/display_server.h
Commit message (Collapse)AuthorAgeFilesLines
* [NativeMenu] Move files to the `display` subfolder.bruvzg2024-03-261-1/+1
|
* Move `global_menu_*` methods to a separate `NativeMenu` class.bruvzg2024-03-041-0/+12
|
* Improve cursor_set_custom_image() methodkobewi2024-02-281-0/+3
|
* Merge pull request #87384 from bruvzg/sys_base_colorRémi Verschelde2024-02-131-1/+3
|\ | | | | | | 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-1/+3
| | | | | | | | change callback.
* | [macOS] Add support for native help menu search callbacks, integrate editor ↵bruvzg2024-02-131-0/+3
|/ | | | help.
* Implement support for application status indicators (tray icons).bruvzg2024-02-131-1/+10
|
* [Native File Dialog] Add support for adding custom options to the dialogs.bruvzg2024-01-241-0/+1
| | | | 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/+2
| | | | | | | 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/+2
|
* Merge pull request #81218 from bruvzg/_temp_fsRémi Verschelde2023-10-041-1/+2
|\ | | | | | | [Native File Dialogs] Improve filter list handling, add selected filter to the callback.
| * [Native File Dialogs] Improve filter list handling, add selected filter to ↵bruvzg2023-10-031-1/+2
| | | | | | | | the callback.
* | [macOS] Add `about_to_open` and `popup_hide` callback for the global menus, ↵bruvzg2023-10-041-0/+5
|/ | | | 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/+2
|\ | | | | | | Add `clipboard_has/get_image` methods to DisplayServer
| * add clipboard get image methods for windows and macosVincent D2023-07-171-0/+2
| | | | | | | | | | 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/+10
| | | | | | | | sandboxed apps.
* | Merge pull request #77993 from bruvzg/key_lbl_from_pYuri Sizov2023-07-121-0/+1
|\ \ | |/ |/| | | Implement DisplayServer.keyboard_get_label_from_physical method.
| * Implement keyboard_get_label_from_physical method.bruvzg2023-06-081-0/+1
| |
* | [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
| |