aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/control.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rework the canvas_item API for further improves to the canvas item editorGilles Roudiere2017-11-191-36/+70
|
* Add manual overrides for focus_next and focus_previous on controls similar ↵Saracen2017-11-161-1/+67
| | | | to what can already be done with focus neighbours.
* Unify degree members and propertiesletheed2017-11-101-5/+5
|
* Remove deprecated rotation methodsletheed2017-11-101-14/+0
|
* Bind unbound enums, rearrange some by valuePoommetee Ketson2017-10-221-2/+2
|
* Fixes set_anchors_and_margins_preset()Gilles Roudiere2017-09-271-35/+65
|
* Remove set_area_as_parent_rect and replace it by ↵Gilles Roudiere2017-09-221-15/+0
| | | | set_anchors_and_margins_preset(PRESET_WIDE)
* Implements set_margins_preset(...)Gilles Roudiere2017-09-221-1/+112
|
* Rename pos to position in user facing methods and variablesletheed2017-09-201-12/+12
| | | | | | | | | | | Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
* also loop for classes if there is no coustom theme fixes #11250toger52017-09-141-2/+10
|
* Fix serveral recent new clang-format errorsHein-Pieter van Braam2017-09-081-1/+1
|
* Restored auto snapping of controls to pixels, fixes #10847 and probably ↵Juan Linietsky2017-09-071-0/+4
| | | | several more issues. Made it optional in the project settings but defaults to true.
* DocData and type hints fixesIgnacio Etcheverry2017-08-291-1/+1
| | | | | | | - Makes vararg methods automatically use PROPERTY_USAGE_NIL_IS_VARIANT on return types - Completely removes the ":type" suffix for method names. Virtual methods must use the MethodInfo constructors that takes Variant::Type or PropertyHint as the first parameter for the return type (with CLASS_INFO as a helper to get the PropertyInfo). Parameters must use PROPERTY_HINT_RESOURCE_TYPE and hint string. - PROPERTY_USAGE_NIL_IS_VARIANT is no longer needed for parameters, because parameters cannot be void. - Adds missing PROPERTY_USAGE_NIL_IS_VARIANT to virtual and built-in methods that return Variant.
* 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-40/+38
| | | | | | | | | | | | 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/
* Removed unnecessary returns and break statementsWilson E. Alvarez2017-08-221-2/+0
|
* Merge pull request #10351 from neikeq/enums-are-for-the-weakJuan Linietsky2017-08-211-48/+48
|\ | | | | ClassDB: Provide the enum name of integer constants
| * ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry2017-08-201-48/+48
| |
* | Merge pull request #10319 from neikeq/pr-engine-editor-hintJuan Linietsky2017-08-201-1/+1
|\ \ | |/ |/| Adds Engine::is_editor_hint() method
| * Removes editor_hint from SceneTreeIgnacio Etcheverry2017-08-191-1/+1
| |
* | Changed anchor constants to enum, removed ANCHOR_CENTER, fixes #9889Juan Linietsky2017-08-151-4/+7
| |
* | Avoids inverted anchorsGilles Roudiere2017-08-131-10/+18
| | | | | | | | | | Add a push_opposite_anchor argument pushing the opposite anchor if needed
* | Adds a function to set Anchors with a layout presetGilles Roudiere2017-08-131-0/+132
| |
* | Handle undo/redo of anchor positioningGilles Roudiere2017-08-131-0/+11
| |
* | Add anchor visualizationGilles Roudiere2017-08-131-0/+1
| |
* | Replace GUI anchor type by a float between 0 and 1Gilles Roudiere2017-08-131-74/+29
|/
* Removes type information from method bindsIgnacio Etcheverry2017-08-101-14/+14
|
* Adds missing type information to virtual method bindsIgnacio Etcheverry2017-08-101-1/+1
|
* Makes all Godot API's methods Lower CaseIndah Sylvia2017-08-071-1/+1
|
* Fix property type expose of Control.stretch_ratio.Geequlim2017-07-311-1/+1
| | | | Fix set integer value from inspector to round instead of floor.
* -Renamed GlobalConfig to ProjectSettings, makes more sense.Juan Linietsky2017-07-191-1/+1
| | | | -Added system for feature overrides, it's pretty cool :)
* Add object type hint for docsPoommetee Ketson2017-07-191-1/+1
|
* Control: save SIZE_FILL size flag propertyPoommetee Ketson2017-07-131-2/+2
|
* removed floor so that global pos works with scalealexholly2017-07-081-2/+2
|
* More fill modes for containers, closes #9504Juan Linietsky2017-07-061-2/+4
|
* Ability to set rotation and scaling pivot for controls.Juan Linietsky2017-07-061-7/+35
|
* -Ability for controls to grow the left/top when anchored. This makes ↵Juan Linietsky2017-07-061-2/+54
| | | | anchoring controls to the right/bottom easier when they are resized.
* Properly adjust the visible editor rect and make limits respected, closes #8328Juan Linietsky2017-06-121-0/+1
|
* renamed all Rect2.pos to Rect2.positionalexholly2017-06-041-13/+13
|
* Fixing typo for rect_position in _change_notify call for ControlKristupas Stumbrys2017-05-281-1/+1
|
* Removal of InputEvent as built-in Variant type..Juan Linietsky2017-05-201-2/+2
| | | | this might cause bugs I haven't found yet..
* Rename [gs]et_pos to [gs]et_position for ControlsSergey Pusnei2017-04-101-17/+17
| | | | | | | | 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
|
* Fix more property names in _change_notify calls.Andreas Haas2017-04-031-1/+1
|
* Fixed Node2D/Control not updating propertiesRobert Hernandez2017-04-011-6/+6
|
* Fix typos in source code using codespellRémi Verschelde2017-03-241-1/+1
| | | | From https://github.com/lucasdemarchi/codespell
* Merge pull request #8023 from CrazyGuy108/masterRémi Verschelde2017-03-181-0/+2
|\ | | | | List Control::has_point as a virtual method
| * List Control::has_point as a virtual methodCrazyGuy1082017-03-141-0/+2
| | | | | | | | | | | | According to Issue #8018, a BIND_VMETHOD macro wasn't present in scene/gui/control.cpp, while it was declared to be a virtual method in scene/gui/control.h. classes.xml was updated to also list this method in Control.
* | fixed ClassDB inconsistenciesKarroffel2017-03-131-2/+2
|/ | | | fixes #7960
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-969/+810
| | | | | | | | | | | | | | | | | | | | | | | | 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