summaryrefslogtreecommitdiffstats
path: root/scene/gui/subviewport_container.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@d09d82d433b03bb3773fd2a8cc8d6ccc2f8739ceSpartan3222024-11-261-0/+5
|\
| * Introduce a `SubViewportContainer` config for drag-and-drop targetsMarkus Sauermann2024-11-191-0/+5
| | | | | | | | | | | | | | | | | | With the drag-and-drop rewrite, `SubViewportContainer` nodes were no longer available as drop-locations. This PR introduces a configuration option, that allows `SubViewportContainer` to be considered as drop-location, but disables the `Control` nodes inside its `SubViewport` children as drop-location.
* | Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
| |
* | Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Revert "Update Node::get_configuration_warnings signature"Rémi Verschelde2024-02-171-1/+1
| | | | This reverts commit d3852deaa450d77edb30df2bb1c77bd7bc45befc.
* Update Node::get_configuration_warnings signatureRedMser2024-02-081-1/+1
|
* Enable filtering `InputEvent`-sending in `SubViewportContainer`Markus Sauermann2023-10-021-0/+2
| | | | | Introduce an user overridable function, that allows filtering, if an `InputEvent` should be sent to `SubViewport` children.
* Make `SubViewportContainer` event propagation aware of focused ControlMarkus Sauermann2023-07-171-0/+2
| | | | | | | | | | | | | | | | Propagate `InputEvents` without position either - during the Input-stage, when it has focus or - during the Unhandled-Input-stage, otherwise This makes sure that Gui-Input happens in the correct order. Move "Unhandled key Input" handling before "Unhandled Input" handling, so that Unicode input with Alt / Ctrl modifiers are sent to the nodes in the correct order. Change the default focus mode of `SubViewportContainer` from `FOCUS_NONE` to `FOCUS_CLICK`, to automatically remove focus from other `Control`-nodes, when clicking inside a `SubViewport`.
* Move call of `push_unhandled_input` from `Window` to `Viewport`Markus Sauermann2023-03-171-1/+0
| | | | | | | | | This solves the problem, that mouse events get sent to SubViewports even if they are outside of the visible area of the SubViewport. This changes makes SubViewportContainer::unhandled_input redundand. Shortcut Events now need to be distributed via push_input, in order for them to be able to reach SubViewports.
* Fix some ways to create inconsistent Viewport sizesMarkus Sauermann2023-02-131-0/+1
| | | | | | | | In the editor, it was possible to set the size of a `SubViewport` even in cases where a parent `SubViewportContainer` had stretch enabled. This PR disables editing a `SubViewport.size` while the parent disallows it and it makes necessary adjustments during `NOTIFICATION_ENTER_TREE`.
* Merge pull request #58334 from Sauermann/fix-to-gui-or-not-to-guiRémi Verschelde2023-01-271-0/+3
|\ | | | | | | Fix SubViewportContainer processing Events before other Control-Nodes
| * Adjust SubViewportContainer event handlingMarkus Sauermann2022-10-021-0/+3
| | | | | | | | | | Change SubViewportContainer, so that it processes events with a position property no longer in 'input', but in 'gui_input'. This fixes the issue, that Nodes within its SubViewport receive MouseButton events before other Control-Nodes.
* | 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".
* | Fix Viewport being visible after leaving treeMarkus Sauermann2022-11-231-0/+3
|/ | | | | | | | | When a SubViewport leaves the tree, it is still displayed in its parent SubViewportContainer until the next redraw. This PR makes sure, that the parent gets redrawn immediately. This also fixes the visibility problem when a SubViewport is added as child of a SubViewportContainer.
* Change return type of `get_configuration_warnings` to `PackedStringArray`Marc Gilleron2022-09-191-1/+1
|
* Code quality: Fix header guards consistencyRémi Verschelde2022-07-251-3/+3
| | | | | Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
* Add configuration warning for SubViewportContainerMarkus Sauermann2022-03-261-0/+2
|
* Connect notifications from Container to ViewportMarkus Sauermann2022-02-151-0/+1
| | | | mouse enter+exit
* Reorganize inspector layout workflow for Control nodesYuri Sizov2022-02-101-0/+3
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz2021-08-231-2/+2
| | | | | | | | * `_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.
* Initialize class variables with default values in scene/ [2/2]Rafał Mikrut2021-02-091-2/+2
|
* 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 🎆
* Add override keywords.Marcel Admiraal2020-07-101-1/+1
|
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-1/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Style: Add missing copyright headersRémi Verschelde2020-05-101-1/+1
|
* Rename ViewportContainer to SubViewportContainerMichael Alexsander2020-04-011-0/+61