summaryrefslogtreecommitdiff
path: root/scene/gui/control.cpp
AgeCommit message (Collapse)Author
2017-11-10Unify degree members and propertiesletheed
2017-11-10Remove deprecated rotation methodsletheed
2017-10-22Bind unbound enums, rearrange some by valuePoommetee Ketson
2017-09-27Fixes set_anchors_and_margins_preset()Gilles Roudiere
2017-09-22Remove set_area_as_parent_rect and replace it by ↵Gilles Roudiere
set_anchors_and_margins_preset(PRESET_WIDE)
2017-09-22Implements set_margins_preset(...)Gilles Roudiere
2017-09-20Rename pos to position in user facing methods and variablesletheed
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.
2017-09-14also loop for classes if there is no coustom theme fixes #11250toger5
2017-09-08Fix serveral recent new clang-format errorsHein-Pieter van Braam
2017-09-07Restored auto snapping of controls to pixels, fixes #10847 and probably ↵Juan Linietsky
several more issues. Made it optional in the project settings but defaults to true.
2017-08-29DocData and type hints fixesIgnacio Etcheverry
- 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.
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-24Convert Object::cast_to() to the static versionHein-Pieter van Braam
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/
2017-08-22Removed unnecessary returns and break statementsWilson E. Alvarez
2017-08-21Merge pull request #10351 from neikeq/enums-are-for-the-weakJuan Linietsky
ClassDB: Provide the enum name of integer constants
2017-08-20ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry
2017-08-20Merge pull request #10319 from neikeq/pr-engine-editor-hintJuan Linietsky
Adds Engine::is_editor_hint() method
2017-08-19Removes editor_hint from SceneTreeIgnacio Etcheverry
2017-08-15Changed anchor constants to enum, removed ANCHOR_CENTER, fixes #9889Juan Linietsky
2017-08-13Avoids inverted anchorsGilles Roudiere
Add a push_opposite_anchor argument pushing the opposite anchor if needed
2017-08-13Adds a function to set Anchors with a layout presetGilles Roudiere
2017-08-13Handle undo/redo of anchor positioningGilles Roudiere
2017-08-13Add anchor visualizationGilles Roudiere
2017-08-13Replace GUI anchor type by a float between 0 and 1Gilles Roudiere
2017-08-10Removes type information from method bindsIgnacio Etcheverry
2017-08-10Adds missing type information to virtual method bindsIgnacio Etcheverry
2017-08-07Makes all Godot API's methods Lower CaseIndah Sylvia
2017-07-31Fix property type expose of Control.stretch_ratio.Geequlim
Fix set integer value from inspector to round instead of floor.
2017-07-19-Renamed GlobalConfig to ProjectSettings, makes more sense.Juan Linietsky
-Added system for feature overrides, it's pretty cool :)
2017-07-19Add object type hint for docsPoommetee Ketson
2017-07-13Control: save SIZE_FILL size flag propertyPoommetee Ketson
2017-07-08removed floor so that global pos works with scalealexholly
2017-07-06More fill modes for containers, closes #9504Juan Linietsky
2017-07-06Ability to set rotation and scaling pivot for controls.Juan Linietsky
2017-07-06-Ability for controls to grow the left/top when anchored. This makes ↵Juan Linietsky
anchoring controls to the right/bottom easier when they are resized.
2017-06-12Properly adjust the visible editor rect and make limits respected, closes #8328Juan Linietsky
2017-06-04renamed all Rect2.pos to Rect2.positionalexholly
2017-05-28Fixing typo for rect_position in _change_notify call for ControlKristupas Stumbrys
2017-05-20Removal of InputEvent as built-in Variant type..Juan Linietsky
this might cause bugs I haven't found yet..
2017-04-10Rename [gs]et_pos to [gs]et_position for ControlsSergey Pusnei
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
2017-04-08Add "Godot Engine contributors" copyright lineRémi Verschelde
2017-04-03Fix more property names in _change_notify calls.Andreas Haas
2017-04-01Fixed Node2D/Control not updating propertiesRobert Hernandez
2017-03-24Fix typos in source code using codespellRémi Verschelde
From https://github.com/lucasdemarchi/codespell
2017-03-18Merge pull request #8023 from CrazyGuy108/masterRémi Verschelde
List Control::has_point as a virtual method
2017-03-14List Control::has_point as a virtual methodCrazyGuy108
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.
2017-03-13fixed ClassDB inconsistenciesKarroffel
fixes #7960
2017-03-05A Whole New World (clang-format edition)Rémi Verschelde
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
2017-03-05Refactoring: rename tools/editor/ to editor/Rémi Verschelde
The other subfolders of tools/ had already been moved to either editor/, misc/ or thirdparty/, so the hiding the editor code that deep was no longer meaningful.
2017-02-28 Various fixes detected using PVS-Studio static analyzer.Thaer Razeq
- Add FIXME tags comments to some unfixed potential bugs - Remove some checks (always false: unsigned never < 0) - Fix some if statements based on reviews. - Bunch of missing `else` statements