summaryrefslogtreecommitdiffstats
path: root/scene/gui/container.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #78009 from YuriSizov/gui-gently-massage-minimal-sizeRémi Verschelde2023-06-121-2/+0
|\ | | | | | | Ensure that controls update all their sizing information when required
| * Ensure that controls update all their sizing information when requiredYuri Sizov2023-06-081-2/+0
| |
* | Use NULL instead of COND checks when appropriateNinni Pipping2023-06-101-1/+1
|/ | | | Restricted to scene
* Use BitField<> hint for ArrayFormatJuan Linietsky2023-01-081-6/+6
| | | | This was missing in the conversion of bitflags to BitField<>.
* 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".
* Change return type of `get_configuration_warnings` to `PackedStringArray`Marc Gilleron2022-09-191-2/+2
|
* String: Remove TTR and DTR defines in non-tools buildRémi Verschelde2022-03-281-1/+1
| | | | | This ensures we don't use TTR in runtime code, as it's specifically meant to source translations for the editor.
* Use `switch` consistently in `_notification` (`scene` folder)Rémi Verschelde2022-02-151-3/+4
|
* Reorganize inspector layout workflow for Control nodesYuri Sizov2022-02-101-0/+31
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Rename minimum_size_changed() methodkobewi2021-12-061-4/+4
|
* Add pre-sort signal and notification in ContainerPouleyKetchoupp2021-10-051-0/+6
| | | | | Allows processing before children are sorted, useful for custom containers inherited from existing ones like BoxContainer.
* Fix RTL layout Label text, VBox child, 3D node editor controls, and popup ↵bruvzg2021-09-211-2/+3
| | | | menu alignment.
* Editor StringName and Viewport optimizationsJoan Fons2021-07-201-3/+3
| | | | | | | | | | | * 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.
* Use Array for node configuration warningsNathan Franke2021-04-111-7/+5
| | | | Previously, the warnings were passed as a string and delimitation of which were hard coded at each implementation.
* Initialize class variables with default values in scene/ [2/2]Rafał Mikrut2021-02-091-1/+0
|
* 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 🎆
* Rename empty() to is_empty()Marcel Admiraal2020-12-281-1/+1
|
* [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-6/+1
| | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-1/+1
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Merge pull request #38743 from arrowinaknee/node-config-warningsRémi Verschelde2020-10-011-1/+1
|\ | | | | Update all get_configuration_warning() to retrieve warnings from the parent
| * Update all get_configuration_warning to retrieve warnings from the parentArrowInAKnee2020-05-161-1/+1
| |
* | Fix Container sorting not working when overriding _sort_children in gdscriptPouleyKetchoupp2020-05-161-3/+1
|/ | | | | | | | | | | | | | | Remove _sort_children from script bindings: _sort_children is an internal method which shouldn't be exposed to scripts. Added support for non-bound methods in MessageQueue: So we can use deferred calls without exposing internal methods to scripts. Added debug checks in CallableCustomMethodPointer: Adding method pointer callables to the message queue was causing crashes in case an object was destroyed and the same memory was allocated for another one. The new object had a valid object id but the call was erroneous. Release will be fixed later, along with Variant which has the same problem and is also fixed for debug only.
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-7/+14
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-15/+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.
* Signals: Port connect calls to use callable_mpRémi Verschelde2020-02-281-7/+6
| | | | | | | | | Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
* Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-6/+6
| | | | objects and made them default.
* Use MOUSE_FILTER_PASS for all containers (but PanelContainer)Rémi Verschelde2020-01-131-0/+2
| | | | | | | | | | Containers are meant to forward mouse input to their the Controls they contain. PanelContainer has a visible Panel stylebox, so it still defaults to STOP. Fixes #34933.
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Improve the node configuration warning displayHugo Locurcio2019-07-091-2/+2
| | | | | | | - Refer to properties explicitly when possible - When multiple warnings are returned, always separate them by one blank line to make them easier to distinguish - Improve grammar and formatting
* Fix minor typosYuri Chornoivan2019-06-171-1/+1
|
* Fix typos with codespellRémi Verschelde2019-05-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using codespell 1.15.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear doubleclick leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
* Add a warning when using plain Container, as many users seem to ↵Juan Linietsky2019-03-031-0/+13
| | | | misunderstand what this is.
* Check if p_child is not null in Container.fit_child_rect()Timo Schwarzer2019-01-031-0/+1
| | | | Fixes #24725
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-1/+1
| | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* -Ability to open resources in the same windowJuan Linietsky2018-05-171-0/+5
| | | | | -Plenty of fixes and improvements to new inspector -Fixes that were needed to make inspector work better
* -New inspector.Juan Linietsky2018-05-151-3/+3
| | | | | | | -Changed UI resizing code, gained huge amount of speed. -Reorganized timer sync to clean up behavior (sorry forgot commit this before) -
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Convert Object::cast_to() to the static versionHein-Pieter van Braam2017-08-241-3/+3
| | | | | | | | | | | | Currently we rely on some undefined behavior when Object->cast_to() gets called with a Null pointer. This used to work fine with GCC < 6 but newer versions of GCC remove all codepaths in which the this pointer is Null. However, the non-static cast_to() was supposed to be null safe. This patch makes cast_to() Null safe and removes the now redundant Null checks where they existed. It is explained in this article: https://www.viva64.com/en/b/0226/
* Removes type information from method bindsIgnacio Etcheverry2017-08-101-1/+1
|
* More fill modes for containers, closes #9504Juan Linietsky2017-07-061-3/+15
|
* renamed all Rect2.pos to Rect2.positionalexholly2017-06-041-3/+3
|
* Rename [gs]et_pos to [gs]et_position for ControlsSergey Pusnei2017-04-101-1/+1
| | | | | | | | Control set_pos -> set_position Control set_global_pos -> set_global_position [gs]et_mouse_pos -> [gs]et_mouse_position [gs]et_global_mouse_pos -> [gs]et_global_mouse_position fixes #8005
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-35/+30
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Rename the _MD macro to D_METHODHein-Pieter van Braam2017-02-131-4/+4
| | | | | | This new name also makes its purpose a little clearer This is a step towards fixing #56
* New API for visibility in both CanvasItem and SpatialJuan Linietsky2017-01-131-1/+1
| | | | | | visible (property) - access set_visible(bool) is_visible() is_visible_in_tree() - true when visible and parents visible show() hide() - for convenience