summaryrefslogtreecommitdiff
path: root/scene/main/window.cpp
AgeCommit message (Collapse)Author
2022-06-27Merge pull request #61587 from YuriSizov/control-fix-theme-owner-toplevelRémi Verschelde
Fix theme propagation for children of top level controls and windows
2022-06-20Quickfix editor hangs when rooting a window with exclusive and transient ↵Rindbee
flags enabled
2022-06-19Add explicit deferred flagsmarkdibarry
2022-06-17Fix previous min size affects _get_contents_minimum_size in AcceptDialogRindbee
2022-06-13Single-window mode popups and edited scene windows fixes.bruvzg
Fix single-window mode popup not closing when OptionBox is clicked. Fix single-window mode submenus closing when parent menu item, that was used to open it is clicked (using same safe-area logic as platform specific code). Disallow windows that are part of an edited scene from being set as exclusive or popup to prevent it from locking up the editor.
2022-06-11Add suffixes to all nodes and resourcesFireForge
2022-06-04Merge pull request #60830 from Ansraer/fix-2d-scaleRémi Verschelde
[4.x] Add viewport content scale
2022-06-01Fix theme propagation for children of top level controls and windowsYuri Sizov
2022-05-19Use range iterators for RBSet in most casesAaron Record
2022-05-16Replace most uses of Map by HashMapreduz
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
2022-05-06Add viewport content scaleAnsraer
2022-04-20Avoid setting sub-window or started project window positions, if it's ↵bruvzg
impossible to get screen rect.
2022-04-12Redesign InputEvent editor pluginFireForge
- Use vertical layout and add text wrapping - Fix Window.popup_centered() rect calculation
2022-04-11Merge pull request #54191 from Ev1lbl0w/bugfix-window_popup_ratioRémi Verschelde
2022-04-11Improvements to files_dropped signalkobewi
2022-04-10Clamp ratio from popup_centered_ratioEv1lbl0w
2022-03-30Merge pull request #59308 from Sauermann/fix-viewport-warp-mouseRémi Verschelde
2022-03-28Fix using Viewport::warp_mouse within ViewportsMarkus Sauermann
2022-03-28Send a focus-out notification when opening a Window Manager PopupMarkus Sauermann
2022-03-10Revert "Update mouse cursor shape after changes"Markus Sauermann
This reverts commit 0fce98b4b5f568298477b175c70510924793f6b0.
2022-03-09Update mouse cursor shape after changesMarkus Sauermann
This fixes some cases where the mouse cursor shape did not change automatically, but instead required a MouseMove to update.
2022-02-28Merge pull request #58282 from keptsecret/filedialog_visibility_unresponsiveRémi Verschelde
Fix to prevent AcceptDialog and children class taking over main window
2022-02-25Improve popup window handling.bruvzg
Add window FLAG_POPUP and a platform specific routines to control popup auto-hiding and event forwarding.
2022-02-18fixed wrong ifdef enclosed blockkeptsecret
2022-02-18prevent acceptdialog taking over main editor window when made visiblekeptsecret
2022-02-15Connect notifications from Container to ViewportMarkus Sauermann
mouse enter+exit
2022-02-15Use `switch` consistently in `_notification` (`scene` folder)Rémi Verschelde
2022-02-12Merge pull request #56953 from bruvzg/ex_wndRémi Verschelde
2022-02-12Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker
2022-02-12Add exclusive window handling to DisplayServer (on macOS and Windows).bruvzg
2022-02-04[Windows] Add WS_BORDER flag to windows in WINDOW_MODE_FULLSCREEN mode to ↵bruvzg
allow multi-window interface in full-screen. [Windows] Add WINDOW_MODE_EXCLUSIVE_FULLSCREEN without WS_BORDER flag enabled (no multi-window support).
2022-01-21Fix main window title translation.bruvzg
2022-01-19Merge pull request #56935 from V-Sekai/window_theme_changed_signalRémi Verschelde
2022-01-19Add missing 'theme_changed' signal to Window classSaracenOne
2022-01-18Window management improvements.bruvzg
[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`).
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2021-12-17add 2d scale factor propertyAnsraer
2021-11-22Added `reset_size` method to `Control` and `Window` classesYuri Roubinsky
2021-11-12Use "enum class" for input enumsAaron Franke
2021-10-04Add the base scale factor to the Theme resourceYuri Sizov
2021-09-02Changed Window current_screen parameter from string to intJestemStefan
2021-08-27Makes FontData importable resource.bruvzg
Adds multi-channel SDF font texture generation and rendering support. Adds per-font oversampling support. Adds FontData import plugins (for dynamic fonts, BMFonts and monospaced image fonts), font texture cache pre-generation and loading. Adds BMFont binary format and outline support.
2021-08-23Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz
* `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions. * Everything else converted to GDVIRTUAL * BIND_VMETHOD is gone, always use the new syntax from now on. Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
2021-08-17fix bug on window notification propagationJihyun Yu
2021-08-13Fix some unnecessary includesAaron Franke
2021-07-29Add `auto_translate` toggle for automatic translationMichael Alexsander
2021-07-27Multiple cosmetic fixes for embedded windowsMichael Alexsander
2021-07-25Use const references where possible for List range iteratorsRémi Verschelde
2021-07-23Use C++ iterators for Lists in many situationsAaron Franke
2021-07-20Editor StringName and Viewport optimizationsJoan Fons
* Added explicit return type to the SNAME macro. * Add some extra SNAME usages. * Change some ClassDB methods to use const StringName & arguments. * Cache the Window parent in Control because it's used in is_layout_rtl(), which is called often. * Only enable internal processing for viewports that need it. * Change CanvasItem::group to be a StringName because it's only used as that.